修改跳转咖啡字段没有传入的问题

This commit is contained in:
duan
2024-05-16 09:35:37 +08:00
parent ca6380a9c0
commit c234c61dfc
3 changed files with 41 additions and 14 deletions

View File

@@ -150,11 +150,23 @@
}
},
onLoad(e) {
this.type = e.value
this.distiricttopCommon()
setTimeout(() => {
this.GetTop()
}, 1000)
let _this = this
uni.getStorage({
key: 'itemData',
success: function(res) {
console.log(res.data,'数据');
_this.type = res.data.value
_this.distiricttopCommon()
setTimeout(() => {
_this.GetTop()
}, 1000)
}
});
// this.type = e.value
// this.distiricttopCommon()
// setTimeout(() => {
// this.GetTop()
// }, 1000)
},
onShow() {
this.init_fn()