|
|
@ -51,7 +51,7 @@ Page({ |
|
|
isLoggedIn: false, |
|
|
isLoggedIn: false, |
|
|
currentUserType: null, |
|
|
currentUserType: null, |
|
|
showUserInfoForm: false, |
|
|
showUserInfoForm: false, |
|
|
avatarUrl: 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0', |
|
|
avatarUrl: 'https://my-supplier-photos.oss-cn-chengdu.aliyuncs.com/products/%E6%B5%B7%E8%93%9D%E7%81%B0/image/7a2a8a17a83ba4d3d4270828531e2041.jpeg', |
|
|
name: '', |
|
|
name: '', |
|
|
showAuthModal: false, |
|
|
showAuthModal: false, |
|
|
showOneKeyLoginModal: false, |
|
|
showOneKeyLoginModal: false, |
|
|
@ -3231,7 +3231,7 @@ Page({ |
|
|
const tempUserInfo = { |
|
|
const tempUserInfo = { |
|
|
name: userProfile ? (userProfile.userInfo.name || userProfile.userInfo.nickName) : '微信用户', |
|
|
name: userProfile ? (userProfile.userInfo.name || userProfile.userInfo.nickName) : '微信用户', |
|
|
// 获取微信头像失败时使用微信默认头像,而不是本地头像
|
|
|
// 获取微信头像失败时使用微信默认头像,而不是本地头像
|
|
|
avatarUrl: userProfile ? userProfile.userInfo.avatarUrl : 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0', |
|
|
avatarUrl: userProfile ? userProfile.userInfo.avatarUrl : 'https://my-supplier-photos.oss-cn-chengdu.aliyuncs.com/products/%E6%B5%B7%E8%93%9D%E7%81%B0/image/7a2a8a17a83ba4d3d4270828531e2041.jpeg', |
|
|
gender: userProfile ? userProfile.userInfo.gender : 0, |
|
|
gender: userProfile ? userProfile.userInfo.gender : 0, |
|
|
country: userProfile ? userProfile.userInfo.country : '', |
|
|
country: userProfile ? userProfile.userInfo.country : '', |
|
|
province: userProfile ? userProfile.userInfo.province : '', |
|
|
province: userProfile ? userProfile.userInfo.province : '', |
|
|
@ -4100,7 +4100,7 @@ Page({ |
|
|
const userInfo = { |
|
|
const userInfo = { |
|
|
// 优先使用最新获取的微信头像和昵称,如果没有获取到则使用本地存储的
|
|
|
// 优先使用最新获取的微信头像和昵称,如果没有获取到则使用本地存储的
|
|
|
name: (userProfile ? (userProfile.userInfo.name || userProfile.userInfo.nickName) : existingUserInfo.name) || '微信用户', |
|
|
name: (userProfile ? (userProfile.userInfo.name || userProfile.userInfo.nickName) : existingUserInfo.name) || '微信用户', |
|
|
avatarUrl: (userProfile ? userProfile.userInfo.avatarUrl : existingUserInfo.avatarUrl) || 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0', |
|
|
avatarUrl: (userProfile ? userProfile.userInfo.avatarUrl : existingUserInfo.avatarUrl) || 'https://my-supplier-photos.oss-cn-chengdu.aliyuncs.com/products/%E6%B5%B7%E8%93%9D%E7%81%B0/image/7a2a8a17a83ba4d3d4270828531e2041.jpeg', |
|
|
gender: (userProfile ? userProfile.userInfo.gender : existingUserInfo.gender) || 0, |
|
|
gender: (userProfile ? userProfile.userInfo.gender : existingUserInfo.gender) || 0, |
|
|
country: (userProfile ? userProfile.userInfo.country : existingUserInfo.country) || '', |
|
|
country: (userProfile ? userProfile.userInfo.country : existingUserInfo.country) || '', |
|
|
province: (userProfile ? userProfile.userInfo.province : existingUserInfo.province) || '', |
|
|
province: (userProfile ? userProfile.userInfo.province : existingUserInfo.province) || '', |
|
|
|