From ae141cfd4fe915922488ec7ca3e6f5fb95988d95 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Wed, 6 Sep 2023 12:02:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=9F=BA=E7=A1=80=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=A1=AB=E5=86=99=E6=98=B5=E7=A7=B0=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=98=B5=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/user-base/user-base.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/user-base/user-base.vue b/components/user-base/user-base.vue index 6fe47eba..7957719c 100644 --- a/components/user-base/user-base.vue +++ b/components/user-base/user-base.vue @@ -96,6 +96,11 @@ if (this.pages.indexOf(type) != -1 && this.client.indexOf(this.application_client_type) != -1) { // 当前缓存用户 var user = app.globalData.get_user_cache_info() || {}; + // 默认昵称则赋空值 + var arr = ['支付宝用户', '百度用户', '头条用户', 'QQ用户', '快手用户', '微信用户', 'WeChat User', 'Usuarios de Wechat']; + if((user.nickname || null) != null && arr.indexOf(user.nickname) != -1) { + user.nickname = ''; + } // 头像是默认则置为空 if (user != null && (user.avatar || null) != null && user.avatar.indexOf('default-user-avatar') != - 1) {