This commit is contained in:
左哥 2025-11-06 21:49:00 +08:00
parent 38c440bd23
commit 1c2e924fcd

View File

@ -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();