|
@@ -26,10 +26,8 @@ Page({
|
|
listOptions: {},
|
|
listOptions: {},
|
|
subscribeShow: false,
|
|
subscribeShow: false,
|
|
tmplIds: [],
|
|
tmplIds: [],
|
|
- androidMask: false
|
|
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
-
|
|
|
|
this.getLocUserInfo()
|
|
this.getLocUserInfo()
|
|
if (Object.keys(this.data.userInfo).length > 0) {
|
|
if (Object.keys(this.data.userInfo).length > 0) {
|
|
this.requestAgain()
|
|
this.requestAgain()
|
|
@@ -53,10 +51,6 @@ Page({
|
|
})
|
|
})
|
|
}, 6000)
|
|
}, 6000)
|
|
}
|
|
}
|
|
-
|
|
|
|
- this.getLocUserInfo()
|
|
|
|
- this.requestAgain()
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
if (typeof this.getTabBar === 'function') {
|
|
if (typeof this.getTabBar === 'function') {
|
|
@@ -75,17 +69,10 @@ Page({
|
|
this.storeBindings = createStoreBindings(this, {
|
|
this.storeBindings = createStoreBindings(this, {
|
|
store,
|
|
store,
|
|
fields: {
|
|
fields: {
|
|
- userInfo: 'userInfo'
|
|
+ userInfo: 'userInfo',
|
|
},
|
|
},
|
|
})
|
|
})
|
|
this.storeBindings.updateStoreBindings()
|
|
this.storeBindings.updateStoreBindings()
|
|
-
|
|
|
|
- if (!wx.getStorageSync('uid')) {
|
|
|
|
- this.setData({
|
|
|
|
- androidMask: true
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
},
|
|
},
|
|
async getCategoryList() {
|
|
async getCategoryList() {
|
|
let grade = this.data.userInfo.grade
|
|
let grade = this.data.userInfo.grade
|