diff --git a/pages/buyer/index.js b/pages/buyer/index.js index 1fb588c..37d4198 100644 --- a/pages/buyer/index.js +++ b/pages/buyer/index.js @@ -1878,7 +1878,7 @@ Page({ const userInfo = { // 优先使用最新获取的微信头像和昵称,如果没有获取到则使用本地存储的 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, country: (userProfile ? userProfile.userInfo.country : existingUserInfo.country) || '', province: (userProfile ? userProfile.userInfo.province : existingUserInfo.province) || '', diff --git a/pages/evaluate2/one.js b/pages/evaluate2/one.js index ed850e5..1be2c7f 100644 --- a/pages/evaluate2/one.js +++ b/pages/evaluate2/one.js @@ -703,7 +703,7 @@ Page({ const tempUserInfo = { 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, country: userProfile ? userProfile.userInfo.country : '', province: userProfile ? userProfile.userInfo.province : '', diff --git a/pages/goods-detail/goods-detail.js b/pages/goods-detail/goods-detail.js index 54a5747..3d9e21f 100644 --- a/pages/goods-detail/goods-detail.js +++ b/pages/goods-detail/goods-detail.js @@ -2882,7 +2882,7 @@ Page({ const tempUserInfo = { 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, country: userProfile ? userProfile.userInfo.country : '', province: userProfile ? userProfile.userInfo.province : '', @@ -3071,7 +3071,7 @@ Page({ }); // 检查用户身份证认证状态 - let idcardstatus = 0; + let idcardstatus = ''; const users = wx.getStorageSync('users') || {}; const userInfo = wx.getStorageSync('userInfo') || {}; diff --git a/pages/index/index.js b/pages/index/index.js index e1cad01..d1b9559 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -51,7 +51,7 @@ Page({ isLoggedIn: false, currentUserType: null, 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: '', showAuthModal: false, showOneKeyLoginModal: false, @@ -3231,7 +3231,7 @@ Page({ const tempUserInfo = { 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, country: userProfile ? userProfile.userInfo.country : '', province: userProfile ? userProfile.userInfo.province : '', @@ -4100,7 +4100,7 @@ Page({ const userInfo = { // 优先使用最新获取的微信头像和昵称,如果没有获取到则使用本地存储的 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, country: (userProfile ? userProfile.userInfo.country : existingUserInfo.country) || '', province: (userProfile ? userProfile.userInfo.province : existingUserInfo.province) || '', diff --git a/pages/profile/authentication/index.js b/pages/profile/authentication/index.js index 692d667..36bb0e5 100644 --- a/pages/profile/authentication/index.js +++ b/pages/profile/authentication/index.js @@ -165,7 +165,7 @@ Page({ const currentStatus = this.data.idcardstatus; // 如果当前状态是已通过,显示确认对话框 - if (currentStatus === ) { + if (currentStatus === '1') { wx.showModal({ title: '确认重新提交', content: '您的认证信息已审核通过,确定要重新提交审核吗?', @@ -361,7 +361,7 @@ Page({ address: userData.address || '', validStart: userData.validStart || userData.valid_start || '', validEnd: userData.validEnd || userData.valid_end || '', - idcardstatus: userData.idcardstatus || 0, + idcardstatus: userData.idcardstatus || '', reason: userData.reason || userData.reasonforfailure || '' }; diff --git a/pages/profile/index.js b/pages/profile/index.js index cea1b3f..ab6dfdd 100644 --- a/pages/profile/index.js +++ b/pages/profile/index.js @@ -712,7 +712,7 @@ Page({ const userInfo = { // 优先使用最新获取的微信头像和昵称,如果没有获取到则使用本地存储的 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, country: (userProfile ? userProfile.userInfo.country : existingUserInfo.country) || '', province: (userProfile ? userProfile.userInfo.province : existingUserInfo.province) || '', diff --git a/server-example/fix_settlement_fields.sql b/server-example/fix_settlement_fields.sql index 3694ab9..8dd7b6f 100644 --- a/server-example/fix_settlement_fields.sql +++ b/server-example/fix_settlement_fields.sql @@ -95,7 +95,7 @@ IF NOT EXISTS ( AND TABLE_NAME = 'users' AND COLUMN_NAME = 'idcardstatus' ) THEN - ALTER TABLE users ADD COLUMN idcardstatus INT DEFAULT 0 COMMENT '身份证认证状态(0:待审核,1:审核通过,2:审核失败)' AFTER reasonforfailure; + ALTER TABLE users ADD COLUMN idcardstatus INT NULL COMMENT '身份证认证状态(0:待审核,1:审核通过,2:审核失败)' AFTER reasonforfailure; END IF; -- 检查 audit_time 字段(审核时间)