1111111
This commit is contained in:
@@ -11,13 +11,13 @@ interface FamilyMember {
|
||||
notes: string;
|
||||
}
|
||||
|
||||
const MEMBER_KEY = 'family_member';
|
||||
const EDIT_URL = '/pages/tab-bar/profile/edit/index';
|
||||
const RED_HISTORY_URL = '/pages/live/red-history/red-history';
|
||||
|
||||
Page({
|
||||
data: {
|
||||
member: {} as FamilyMember,
|
||||
},
|
||||
onLoad() {},
|
||||
onShow() {
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().setData({ selected: 3 });
|
||||
@@ -25,10 +25,13 @@ Page({
|
||||
this.loadMember();
|
||||
},
|
||||
loadMember() {
|
||||
const member = wx.getStorageSync(MEMBER_KEY) || {};
|
||||
const member = wx.getStorageSync('family_member') || {};
|
||||
this.setData({ member });
|
||||
},
|
||||
goEdit() {
|
||||
wx.navigateTo({ url: '/pages/tab-bar/profile/edit/index' });
|
||||
wx.navigateTo({ url: EDIT_URL });
|
||||
},
|
||||
});
|
||||
goRedHistory() {
|
||||
wx.navigateTo({ url: RED_HISTORY_URL });
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user