@@ -11,7 +11,7 @@ Page({
appointmentList: [],
currentPage: 1,
hasNext: false,
- globalDataUserName: app.globalData.userInfo.userName,
+ globalDataUserName: '',
appointmentId: ''
},
@@ -20,7 +20,8 @@ Page({
*/
onShow() {
this.setData({
- navItemActive: '0'
+ navItemActive: '0',
+ globalDataUserName: wx.getStorageSync('userName')
})
this.getAppointmentList()