Browse Source

修改购物车增减商品提示语文案

master
liutong 1 year ago
parent
commit
9c222203a1
  1. 7
      components/directionGoodsItem.vue

7
components/directionGoodsItem.vue

@ -371,9 +371,16 @@
}, },
success: ({ data }) => { success: ({ data }) => {
if (data > 0) { if (data > 0) {
if (type == 'add'){
this.$util.showToast({ this.$util.showToast({
title: '加入购物车成功' title: '加入购物车成功'
}); });
}else{
this.$util.showToast({
title: '移除购物车成功'
});
}
this.$forceUpdate(); this.$forceUpdate();
this.cartNumber += this.number; this.cartNumber += this.number;
if (this.callback) this.callback(); if (this.callback) this.callback();

Loading…
Cancel
Save