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