diff --git a/yshop-drink-uniapp-vue3/api/score.js b/yshop-drink-uniapp-vue3/api/score.js
new file mode 100644
index 0000000..dcf2880
--- /dev/null
+++ b/yshop-drink-uniapp-vue3/api/score.js
@@ -0,0 +1,52 @@
+import api from './api'
+
+/**
+ * 详情
+ */
+export function scoreShopDetail(data) {
+ return api.get('/score-product/detail', data, { login: false })
+}
+/**
+ * 列表
+ */
+export function scoreShopIndex(data) {
+ return api.get('/score-product/list', data, { login: false })
+}
+
+/**
+ * 提交
+ */
+export function scoreShopExchange(data) {
+ return api.post('/score-order/submit', data, { login: false })
+}
+
+/**
+ * 订单列表
+ */
+export function scoreShopOrder(data) {
+ return api.get('/score-order/list', data, { login: false })
+}
+
+/**
+ * 订单列表
+ */
+export function scoreShopOrderDetail(data) {
+ return api.get('/score-order/detail', data, { login: false })
+}
+
+/**
+ * 确认收货
+ */
+export function scoreShopReceive(data) {
+ return api.get('/score-order/take', data, { login: false })
+}
+
+
+/**
+ * 查询物流
+ */
+export function getLogistic(data) {
+ return api.get('/express/getLogistic', data, { login: false })
+}
+
+
diff --git a/yshop-drink-uniapp-vue3/pages.json b/yshop-drink-uniapp-vue3/pages.json
index 90b8c6d..4aca628 100644
--- a/yshop-drink-uniapp-vue3/pages.json
+++ b/yshop-drink-uniapp-vue3/pages.json
@@ -159,7 +159,43 @@
"enablePullDownRefresh": false
}
- }
+ },
+ {
+ "path": "pages/scoreproduct/list",
+ "style": {
+ "navigationBarTitleText": "积分商城",
+ "enablePullDownRefresh": true
+ }
+
+ }, {
+ "path": "pages/scoreproduct/detail",
+ "style": {
+ "navigationBarTitleText": "产品详情",
+ "enablePullDownRefresh": true
+ }
+
+ }, {
+ "path": "pages/scoreproduct/order",
+ "style": {
+ "navigationBarTitleText": "订单列表",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "pages/scoreproduct/orderDetail",
+ "style": {
+ "navigationBarTitleText": "订单详情",
+ "enablePullDownRefresh": true
+ }
+ }
+ ,{
+ "path" : "pages/scoreproduct/confirm",
+ "style" :
+ {
+ "navigationBarTitleText": "确认",
+ "enablePullDownRefresh": false
+ }
+
+ }
]
}],
"globalStyle": {
diff --git a/yshop-drink-uniapp-vue3/pages/components/pages/scoreproduct/confirm.vue b/yshop-drink-uniapp-vue3/pages/components/pages/scoreproduct/confirm.vue
new file mode 100644
index 0000000..4dd8fc3
--- /dev/null
+++ b/yshop-drink-uniapp-vue3/pages/components/pages/scoreproduct/confirm.vue
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+ {{ address.address }} {{ address.detail }}
+ {{ address.realName }} {{ address.phone }}
+
+ 请选择收货地址
+
+
+
+
+
+
+
+ 积分商城
+
+
+
+ {{ product.title }}
+
+
+ {{ product.score }}积分
+ ×1
+
+
+
+ 积分抵扣
+ {{ product.score }}
+
+ 合计:¥{{ product.score }}
+
+
+
+ 合计:¥{{ product.score }}积分
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/yshop-drink-uniapp-vue3/pages/components/pages/scoreproduct/detail.vue b/yshop-drink-uniapp-vue3/pages/components/pages/scoreproduct/detail.vue
new file mode 100644
index 0000000..04db433
--- /dev/null
+++ b/yshop-drink-uniapp-vue3/pages/components/pages/scoreproduct/detail.vue
@@ -0,0 +1,227 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{product.title}}
+
+ 积分: {{product.score}}
+ 销量: {{product.sales}}
+ 库存: {{product.stock}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/yshop-drink-uniapp-vue3/pages/components/pages/scoreproduct/list.vue b/yshop-drink-uniapp-vue3/pages/components/pages/scoreproduct/list.vue
new file mode 100644
index 0000000..d1fe5dc
--- /dev/null
+++ b/yshop-drink-uniapp-vue3/pages/components/pages/scoreproduct/list.vue
@@ -0,0 +1,215 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+ 消耗积分:{{item.score}}
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+ 消耗积分:{{item.score}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/yshop-drink-uniapp-vue3/pages/components/pages/scoreproduct/order.vue b/yshop-drink-uniapp-vue3/pages/components/pages/scoreproduct/order.vue
new file mode 100644
index 0000000..2039740
--- /dev/null
+++ b/yshop-drink-uniapp-vue3/pages/components/pages/scoreproduct/order.vue
@@ -0,0 +1,176 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 订单编号:{{ item.orderId }}
+
+
+ {{ item.statusText }}
+
+
+
+
+
+
+
+
+
+ {{ item.product.title }}
+
+ ×{{ item.product.number }} {{ item.product.score }}积分
+
+
+
+
+ {{formatDateTime(item.createTime) }}
+
+
+ 共{{item.number }}件商品,消耗积分
+ {{ item.totalScore }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/yshop-drink-uniapp-vue3/pages/components/pages/scoreproduct/orderDetail.vue b/yshop-drink-uniapp-vue3/pages/components/pages/scoreproduct/orderDetail.vue
new file mode 100644
index 0000000..2f0c991
--- /dev/null
+++ b/yshop-drink-uniapp-vue3/pages/components/pages/scoreproduct/orderDetail.vue
@@ -0,0 +1,287 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ order.product.title }}
+
+
+ x{{ order.number }}
+ {{ order.score }}
+
+
+
+
+
+
+
+
+
+
+ 消耗积分
+ {{ order.totalScore }}
+
+
+
+
+
+
+
+
+ 订单状态
+ {{ order.statusText }}
+
+
+ 下单时间
+ {{ formatDateTime(order.createTime) }}
+
+
+ 订单号
+ {{ order.orderId }}
+
+
+
+
+
+
+
+ 收货地址
+
+
+
+ {{ order.customerAddress + ' ' + order.customerName + ' ' + order.customerPhone }}
+
+
+
+
+
+
+
+
+ 快递公司
+ {{order.expressCompany }}
+
+
+ 快递单号
+ {{order.expressNumber }}复制
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/yshop-drink-uniapp-vue3/pages/index/index.vue b/yshop-drink-uniapp-vue3/pages/index/index.vue
index bcfe318..1857015 100644
--- a/yshop-drink-uniapp-vue3/pages/index/index.vue
+++ b/yshop-drink-uniapp-vue3/pages/index/index.vue
@@ -72,10 +72,25 @@
去领个券
-
+
+
+
+
+ 积分商城
+
+
+ 进入积分商城兑换奈雪券及周边好礼
+
+
+
+
+
+ 逛一逛
+
+
@@ -152,6 +167,7 @@ const goScore = () => {
})
}
+
onLoad(() => {