商品列表监听事件
This commit is contained in:
@@ -111,6 +111,9 @@ export default {
|
|||||||
this.$dict.load(['integralSGTypeText']).then(() => {
|
this.$dict.load(['integralSGTypeText']).then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
|
uni.$on('updateGoodsList', () => {
|
||||||
|
this.getListInit()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getTotal()
|
this.getTotal()
|
||||||
|
|||||||
@@ -121,6 +121,7 @@ export default {
|
|||||||
this.$instance.post(`/app/appintegralsupermarketorder/cancelForXCX?id=${item.id}`).then(res => {
|
this.$instance.post(`/app/appintegralsupermarketorder/cancelForXCX?id=${item.id}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.getListInit()
|
this.getListInit()
|
||||||
|
uni.$emit('updateGoodsList')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ export default {
|
|||||||
quantity: this.goodsNum
|
quantity: this.goodsNum
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
|
uni.$emit('updateGoodsList')
|
||||||
this.toSuccess()
|
this.toSuccess()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -111,6 +111,9 @@ export default {
|
|||||||
this.$dict.load(['integralSGTypeText']).then(() => {
|
this.$dict.load(['integralSGTypeText']).then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
|
uni.$on('updateGoodsList', () => {
|
||||||
|
this.getListInit()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.getTotal()
|
this.getTotal()
|
||||||
|
|||||||
@@ -121,6 +121,7 @@ export default {
|
|||||||
this.$instance.post(`/app/appintegralsupermarketorder/cancelForXCX?id=${item.id}`).then(res => {
|
this.$instance.post(`/app/appintegralsupermarketorder/cancelForXCX?id=${item.id}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.getListInit()
|
this.getListInit()
|
||||||
|
uni.$emit('updateGoodsList')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ export default {
|
|||||||
quantity: this.goodsNum
|
quantity: this.goodsNum
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
|
uni.$emit('updateGoodsList')
|
||||||
this.toSuccess()
|
this.toSuccess()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user