Commit cadf60c4 by 肖康

Merge branch 'h5_zyly_vue_0517' into Development

parents 0cd1c4d5 c716b6b8
......@@ -13,7 +13,7 @@ const state = {
const mutations = {
cartCount(state, payload) {
state.cartCount = payload.data ?payload.data : '';
state.cartCount = payload.data ?payload.data : 0;
},
loginCheck(state, payload) {
if (payload.data.err_code == 0) {
......
......@@ -37,7 +37,8 @@ const actions = {
const toast = Toast.loading({
message: '加载中...',
duration: 0,
forbidClick: true
forbidClick: true,
loadingType: 'spinner'
});
state.zygoodDetail = {};
state.lygoodDetail = {};
......
......@@ -116,6 +116,9 @@ export default {
isShowAlert(now) {
if (now) {
this.detailsData = { isShow: false, id: "" };
this.$store.dispatch({
type: "cartCount"
});
}
},
supplierList(val) {
......
......@@ -264,6 +264,9 @@ export default {
isShowAlert(now) {
if (now) {
this.detailsData = { isShow: false, id: "" };
this.$store.dispatch({
type: "cartCount"
});
}
},
loading(now) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment