积分代兑换

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

View File

@@ -41,11 +41,15 @@ export default {
computed: { computed: {
...mapState(['user']), ...mapState(['user']),
}, },
onLoad() {
this.getListInit()
uni.$on('updateGoodsList', () => {
this.getListInit()
})
},
onShow() { onShow() {
document.title = "积分代兑换" document.title = "积分代兑换"
this.getListInit()
}, },
methods: { methods: {
getListInit() { getListInit() {
this.current = 1 this.current = 1

View File

@@ -110,12 +110,10 @@ 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', () => { uni.$on('updateGoodsList', () => {
console.log(456)
this.getListInit() this.getListInit()
}) })
}, },