|
|
@@ -38,7 +38,6 @@
|
|
|
<button class="edit-btn" @click="modifyBirthday">填写</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
<view class="confirm-btn-wrap">
|
|
|
<button class="confirm-btn" @click="goBack" style="width:230upx;">返回</button>
|
|
|
</view>
|
|
|
@@ -66,11 +65,15 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onLoad(){
|
|
|
+
|
|
|
//返回上一页时刷新
|
|
|
let pages = getCurrentPages();
|
|
|
let prevPage = pages[ pages.length - 2 ];
|
|
|
prevPage.$vm.pageAction = {refresh:1}
|
|
|
- this.init()
|
|
|
+
|
|
|
+ },
|
|
|
+ onShow(){
|
|
|
+ this.getUserInfo()
|
|
|
},
|
|
|
methods: {
|
|
|
init(){
|
|
|
@@ -133,10 +136,10 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
goBack(){
|
|
|
- uni.navigateBack()
|
|
|
+ this.pageTo({url:"/pages/home/recent",type:3})
|
|
|
},
|
|
|
modifyBirthday(){
|
|
|
- this.pageTo({url:"/pages/user/edit"})
|
|
|
+ this.pageTo({url:"/pages/user/birthday"})
|
|
|
}
|
|
|
},
|
|
|
};
|