diff --git a/pages/contact/index.js b/pages/contact/index.js index 0968b6a..962451d 100644 --- a/pages/contact/index.js +++ b/pages/contact/index.js @@ -32,6 +32,7 @@ Page({ this.setData({ showGetUser: false, userInfo: wx.getStorageSync('user_info'), + userAvatar: wx.getStorageSync('user_info').user_avatar || '/static/user.png', }); this.getMessages().then(() => { this.sendWelcomeMessage(); @@ -203,7 +204,8 @@ Page({ wx.setStorageSync('user_info', resp); that.setData({ showGetUser: false, - userInfo: resp + userInfo: resp, + userAvatar: resp.user_avatar || '/static/user.png', }); request('app/user/create', 'post', { "app_id": accountInfo.miniProgram.appId, @@ -312,7 +314,7 @@ Page({ return; } - const welcomeText = '你好'; + const welcomeText = '你好,我有需求'; const now = new Date(); const id = 'welcome_' + Date.now();