ewew
This commit is contained in:
parent
38c440bd23
commit
1c2e924fcd
@ -32,6 +32,7 @@ Page({
|
|||||||
this.setData({
|
this.setData({
|
||||||
showGetUser: false,
|
showGetUser: false,
|
||||||
userInfo: wx.getStorageSync('user_info'),
|
userInfo: wx.getStorageSync('user_info'),
|
||||||
|
userAvatar: wx.getStorageSync('user_info').user_avatar || '/static/user.png',
|
||||||
});
|
});
|
||||||
this.getMessages().then(() => {
|
this.getMessages().then(() => {
|
||||||
this.sendWelcomeMessage();
|
this.sendWelcomeMessage();
|
||||||
@ -203,7 +204,8 @@ Page({
|
|||||||
wx.setStorageSync('user_info', resp);
|
wx.setStorageSync('user_info', resp);
|
||||||
that.setData({
|
that.setData({
|
||||||
showGetUser: false,
|
showGetUser: false,
|
||||||
userInfo: resp
|
userInfo: resp,
|
||||||
|
userAvatar: resp.user_avatar || '/static/user.png',
|
||||||
});
|
});
|
||||||
request('app/user/create', 'post', {
|
request('app/user/create', 'post', {
|
||||||
"app_id": accountInfo.miniProgram.appId,
|
"app_id": accountInfo.miniProgram.appId,
|
||||||
@ -312,7 +314,7 @@ Page({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const welcomeText = '你好';
|
const welcomeText = '你好,我有需求';
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
const id = 'welcome_' + Date.now();
|
const id = 'welcome_' + Date.now();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user