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