优化接口

This commit is contained in:
duan
2024-06-04 15:45:49 +08:00
parent a54580549a
commit bdd5a6a325
4 changed files with 29 additions and 11 deletions

View File

@@ -155,12 +155,12 @@
uni.getStorage({
key: 'itemData',
success: function(res) {
console.log(res.data,'数据');
_this.type = res.data.value
_this.distiricttopCommon()
setTimeout(() => {
// setTimeout(() => {
_this.GetTop()
}, 1000)
// _this.init_fn()
// }, 1000)
}
});
// this.type = e.value
@@ -170,7 +170,19 @@
// }, 1000)
},
onShow() {
this.init_fn()
let _this = this
uni.getStorage({
key: 'itemData',
success: function(res) {
_this.type = res.data.value
_this.distiricttopCommon()
// setTimeout(() => {
// _this.GetTop()
_this.init_fn()
// }, 1000)
}
});
// this.init_fn()
},
computed: {
HeighT() { //手机类型的尺寸