diff --git a/yshop-drink-uniapp-vue3/pages.json b/yshop-drink-uniapp-vue3/pages.json
index 900ef0f..8131e3a 100644
--- a/yshop-drink-uniapp-vue3/pages.json
+++ b/yshop-drink-uniapp-vue3/pages.json
@@ -41,6 +41,8 @@
"style" :
{
"navigationBarTitleText": "购物车",
+ "navigationBarBackgroundColor": "#fff3e6",
+ "backgroundColor": "#fff3e6",
"enablePullDownRefresh": false
}
diff --git a/yshop-drink-uniapp-vue3/pages/cart/cart.vue b/yshop-drink-uniapp-vue3/pages/cart/cart.vue
index 170f75c..5abe556 100644
--- a/yshop-drink-uniapp-vue3/pages/cart/cart.vue
+++ b/yshop-drink-uniapp-vue3/pages/cart/cart.vue
@@ -1,260 +1,539 @@
-
-
-
-
-
-
-
- {{ item.name }}
- {{ item.valueStr }}
+
+
+
+
+
+
+
-
- ¥{{ item.price }}
+
+
+ {{ store.name || '未选择门店' }}
+ {{ orderTypeLabel }}
+
+
+ {{ storeHint }}
+
-
-
- {{ item.number }}
-
+
+ 切换
+
-
-
-
-
-
- 应付:¥{{ getCartGoodsPrice }}
-
-
-
+
+
+
+
+
+
+ 请先选择门店
+ 选择门店后即可点餐结算
+
+
+ 去选择
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+ ¥{{ item.price }}
+
+ {{ item.valueStr }}
+
+
+ {{ item.number }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ store.name }} · {{ orderTypeLabel }}
+
+
+ 合计
+ ¥
+ {{ getCartGoodsPrice }}
+
+
+
+
+
+
+
diff --git a/yshop-drink-uniapp-vue3/store/store.js b/yshop-drink-uniapp-vue3/store/store.js
index 738dc0b..36dcf44 100644
--- a/yshop-drink-uniapp-vue3/store/store.js
+++ b/yshop-drink-uniapp-vue3/store/store.js
@@ -51,6 +51,7 @@ export const useMainStore = defineStore('main', {
},
SET_STORE(store) {
this.store = store
+ uni.setStorageSync('store', store || {})
},
SET_CART(cart) {
this.cart = cart