From b9c8e026cad82b8d958e06493d8030efae678e83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?mac=C2=B7ufutx?= Date: Thu, 23 Apr 2026 16:38:20 +0800 Subject: [PATCH] 20240423 --- src/app.wpy | 2 +- src/pages/tabBar/user.wpy | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/app.wpy b/src/app.wpy index e8e44b3..9bb78be 100644 --- a/src/app.wpy +++ b/src/app.wpy @@ -35,7 +35,7 @@ wepy.app({ } }, globalData: { - versions: 'v5.6.4', // 版本号 + versions: 'v5.6.5', // 版本号 navBarHeight: 0, // 导航栏高度 navRight: 0, // 胶囊距右方间距(方保持左、右间距一致) navTop: 0, // 胶囊距顶部间距 diff --git a/src/pages/tabBar/user.wpy b/src/pages/tabBar/user.wpy index 069e6fc..b2c0268 100644 --- a/src/pages/tabBar/user.wpy +++ b/src/pages/tabBar/user.wpy @@ -54,7 +54,7 @@ - + @@ -69,7 +69,7 @@ class="icon flo_r"> - + @@ -633,17 +633,21 @@ wepy.page({ console.log(self.posterConfig1, '7777') this.init = true this.user = data.user - this.user.rank_id = data.rank_profile.rank_id - this.user.deadline = (data.rank_profile?.deadline).substring(0, 16) + this.user.rank_id = data?.rank_profile?.rank_id + // this.user.deadline = (data?.rank_profile?.deadline).substring(0, 16) || '' + this.user.deadline = data?.rank_profile?.deadline + ? String(data.rank_profile.deadline).substring(0, 16) + : ''; // this.user.card_num = data.approve_profile.card_num - this.user.is_approved = data.approve_profile.is_approved - this.user.is_real_approved = data.approve_profile.is_real_approved + this.user.is_approved = data.approve_profile.is_approved || 0 + this.user.is_real_approved = data.approve_profile.is_real_approved || 0 this.user.is_photo_audited = data.is_photo_audited // this.user.name = data.approve_profile.name this.listCount = { friend_count: data.friend_count, fans_count: data.fans_count, follow_count: data.follow_count, + preview_count: data.preview_count } console.log(this.user, 'user===')