@@ -75,6 +75,9 @@ Component({
grade
}, 'put')
this.setUser(res)
+ setTimeout(() => {
+ this.triggerEvent('reload')
+ }, 300)
},
}
})
@@ -30,15 +30,10 @@ Page({
selected: 1
- // if (wx.getStorageSync('uid')) {
- // this.getLocUserInfo()
- // this.loadMore()
- // } else {
getApp().callBack = (res) => {
this.getLocUserInfo()
this.loadMore()
- // }
onUnload() {
this.storeBindings.destroyStoreBindings()
@@ -1,4 +1,4 @@
-<navigationBar></navigationBar>
+<navigationBar bind:reload='resetData'></navigationBar>
<view class="recommend">
<!-- 头部及轮播图 -->
<view class="header">
@@ -89,6 +89,7 @@ Page({
this.storeBindings = createStoreBindings(this, {
store,
fields: {
+ userInfo: 'userInfo',
readDetail: 'readDetail'
actions: {