diff --git a/pages/shop/list.vue b/pages/shop/list.vue index 27db7ff..5a2accf 100644 --- a/pages/shop/list.vue +++ b/pages/shop/list.vue @@ -72,10 +72,10 @@ + @click="$store.commit('setCartShow',!$store.state.cartShow)" /> - + ¥{{total | formatPrice}} 还差¥{{minimumOrderDifference | formatPrice}}起送 diff --git a/store/index.js b/store/index.js index 35241d2..8439a4f 100644 --- a/store/index.js +++ b/store/index.js @@ -43,6 +43,10 @@ const store = new Vuex.Store({ }, //修改状态 mutations: { + //设置 列表页 购物车折叠显隐 + setCartShow(state,val){ + Vue.set(state,'cartShow', val) + }, //设置 标记用户登录状态 setMqttState(state,val){ Vue.set(state,'mqttState', val)