商品列表监听事件

This commit is contained in:
liuye
2023-05-23 09:16:01 +08:00
parent 2202896efd
commit f1a25179a4
6 changed files with 10 additions and 0 deletions

View File

@@ -111,6 +111,9 @@ export default {
this.$dict.load(['integralSGTypeText']).then(() => {
this.getList()
})
uni.$on('updateGoodsList', () => {
this.getListInit()
})
},
onShow() {
this.getTotal()

View File

@@ -121,6 +121,7 @@ export default {
this.$instance.post(`/app/appintegralsupermarketorder/cancelForXCX?id=${item.id}`).then(res => {
if (res.code === 0) {
this.getListInit()
uni.$emit('updateGoodsList')
}
})
},

View File

@@ -99,6 +99,7 @@ export default {
quantity: this.goodsNum
}).then(res => {
if (res.code === 0) {
uni.$emit('updateGoodsList')
this.toSuccess()
}
})

View File

@@ -111,6 +111,9 @@ export default {
this.$dict.load(['integralSGTypeText']).then(() => {
this.getList()
})
uni.$on('updateGoodsList', () => {
this.getListInit()
})
},
onShow() {
this.getTotal()

View File

@@ -121,6 +121,7 @@ export default {
this.$instance.post(`/app/appintegralsupermarketorder/cancelForXCX?id=${item.id}`).then(res => {
if (res.code === 0) {
this.getListInit()
uni.$emit('updateGoodsList')
}
})
},

View File

@@ -99,6 +99,7 @@ export default {
quantity: this.goodsNum
}).then(res => {
if (res.code === 0) {
uni.$emit('updateGoodsList')
this.toSuccess()
}
})