From 9384c6866242800c1667a00646b0f08136368534 Mon Sep 17 00:00:00 2001 From: Kroytz Date: Fri, 24 Jul 2026 11:46:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(uniapp):=20=E7=BE=8E=E5=8C=96=E8=B4=AD?= =?UTF-8?q?=E7=89=A9=E8=BD=A6=E9=A1=B5=E5=B9=B6=E5=B1=95=E7=A4=BA=E6=89=80?= =?UTF-8?q?=E5=B1=9E=E9=97=A8=E5=BA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 重构购物车页样式,展示门店与取餐方式;门店信息本地持久化,结算逻辑保持原行为。 Co-authored-by: Cursor --- yshop-drink-uniapp-vue3/pages.json | 2 + yshop-drink-uniapp-vue3/pages/cart/cart.vue | 629 ++++++++++++++------ yshop-drink-uniapp-vue3/store/store.js | 1 + 3 files changed, 457 insertions(+), 175 deletions(-) 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 @@ 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