优化接口
This commit is contained in:
@@ -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() { //手机类型的尺寸
|
||||
|
||||
Reference in New Issue
Block a user