update: 优化提示文案长度
This commit is contained in:
parent
8aa7027bf6
commit
86f3712098
@ -1882,7 +1882,7 @@ export default {
|
||||
addCart2(){
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
title: this.$.__("亲~商品没有库存啦!")
|
||||
title: this.$.__("商品库存不足")
|
||||
});
|
||||
},
|
||||
|
||||
@ -1893,8 +1893,6 @@ addCart2(){
|
||||
let step = parseInt(e.currentTarget.dataset.step);
|
||||
let user_cart_quantity = parseInt(e.currentTarget.dataset.num);
|
||||
|
||||
console.log(`sku${e.currentTarget.dataset.skuid}`);
|
||||
|
||||
let params = {
|
||||
item_id: e.currentTarget.dataset.skuid,
|
||||
cart_quantity: step,
|
||||
@ -1904,7 +1902,7 @@ addCart2(){
|
||||
};
|
||||
|
||||
if (e.currentTarget.dataset.stock == user_cart_quantity) {
|
||||
that.$.alert(that.$.__("亲~商品没有库存啦!"));
|
||||
that.$.alert(that.$.__("商品库存不足"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user