111
This commit is contained in:
@@ -245,6 +245,40 @@
|
|||||||
console.log(e);
|
console.log(e);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
jian(item){
|
||||||
|
console.log("item》》》》", item)
|
||||||
|
const that = this
|
||||||
|
if (Number(item.count) == 1) {
|
||||||
|
|
||||||
|
wx.showModal({
|
||||||
|
content: '确定不要了吗',
|
||||||
|
cancelText: "再想想",
|
||||||
|
confirmText: "删除",
|
||||||
|
confirmColor: "#FF9900",
|
||||||
|
success(res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
console.log('用户点击确定')
|
||||||
|
item.count = 0
|
||||||
|
const index = that.pickingUpGoods.findIndex((info) => info.goodsSid === item.goodsSid)
|
||||||
|
console.log("index》》》》", index)
|
||||||
|
that.pickingUpGoods.splice(index, 1)
|
||||||
|
} else if (res.cancel) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if (Number(item.count) > 0) {
|
||||||
|
item.count = Number(item.count) - 1
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
jia(item){
|
||||||
|
item.count = Number(item.count) + 1
|
||||||
|
},
|
||||||
congirmExtract() {
|
congirmExtract() {
|
||||||
let _this = this
|
let _this = this
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user