积分兑换

This commit is contained in:
liuye
2023-05-23 09:23:35 +08:00
parent 4f40ebce05
commit f736ca52ce
2 changed files with 9 additions and 6 deletions

View File

@@ -43,13 +43,13 @@ export default {
},
onLoad() {
this.getListInit()
},
onShow() {
document.title = "积分代兑换"
uni.$on('updateGoodsList', () => {
this.getListInit()
})
},
onShow() {
document.title = "积分代兑换"
},
methods: {
getListInit() {

View File

@@ -110,9 +110,14 @@ export default {
...mapState(['user']),
},
onLoad() {
console.log(123)
this.$dict.load(['integralSGTypeText']).then(() => {
this.getListInit()
})
uni.$on('updateGoodsList', () => {
console.log(456)
this.getListInit()
})
},
onShow() {
document.title = '积分商城'
@@ -121,9 +126,7 @@ export default {
this.total = this.user.girdIntegral || 0
})
})
uni.$on('updateGoodsList', () => {
this.getListInit()
})
},
methods: {
...mapActions(['getAccount']),