Commit cadf60c4 by 肖康

Merge branch 'h5_zyly_vue_0517' into Development

parents 0cd1c4d5 c716b6b8
...@@ -13,7 +13,7 @@ const state = { ...@@ -13,7 +13,7 @@ const state = {
const mutations = { const mutations = {
cartCount(state, payload) { cartCount(state, payload) {
state.cartCount = payload.data ?payload.data : ''; state.cartCount = payload.data ?payload.data : 0;
}, },
loginCheck(state, payload) { loginCheck(state, payload) {
if (payload.data.err_code == 0) { if (payload.data.err_code == 0) {
......
...@@ -37,7 +37,8 @@ const actions = { ...@@ -37,7 +37,8 @@ const actions = {
const toast = Toast.loading({ const toast = Toast.loading({
message: '加载中...', message: '加载中...',
duration: 0, duration: 0,
forbidClick: true forbidClick: true,
loadingType: 'spinner'
}); });
state.zygoodDetail = {}; state.zygoodDetail = {};
state.lygoodDetail = {}; state.lygoodDetail = {};
......
...@@ -116,6 +116,9 @@ export default { ...@@ -116,6 +116,9 @@ export default {
isShowAlert(now) { isShowAlert(now) {
if (now) { if (now) {
this.detailsData = { isShow: false, id: "" }; this.detailsData = { isShow: false, id: "" };
this.$store.dispatch({
type: "cartCount"
});
} }
}, },
supplierList(val) { supplierList(val) {
......
...@@ -264,6 +264,9 @@ export default { ...@@ -264,6 +264,9 @@ export default {
isShowAlert(now) { isShowAlert(now) {
if (now) { if (now) {
this.detailsData = { isShow: false, id: "" }; this.detailsData = { isShow: false, id: "" };
this.$store.dispatch({
type: "cartCount"
});
} }
}, },
loading(now) { 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