积分兑换

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() { onLoad() {
this.getListInit() this.getListInit()
},
onShow() {
document.title = "积分代兑换"
uni.$on('updateGoodsList', () => { uni.$on('updateGoodsList', () => {
this.getListInit() this.getListInit()
}) })
}, },
onShow() {
document.title = "积分代兑换"
},
methods: { methods: {
getListInit() { getListInit() {

View File

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