From 3b9e425f0653f06690e0aa04704d3601ef179d78 Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Mon, 12 May 2025 15:58:04 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=96=B0=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E9=85=8D=E7=BD=AE=E5=92=8C=E7=94=A8=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E9=AA=8C=E8=AF=81=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将环境配置从 'dev' 更改为 'prod' - 移除用户信息验证中的手机号检查 - 在显示金额时添加默认值处理 - 注释掉微信用户信息页面中的手机号相关代码 --- config.js | 2 +- pages/index/center.vue | 4 ++-- pages_order/auth/wxUserInfo.vue | 14 +++++++++----- store/store.js | 4 ++-- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/config.js b/config.js index 5f98974..56cbd86 100644 --- a/config.js +++ b/config.js @@ -7,7 +7,7 @@ import uvUI from '@/uni_modules/uv-ui-tools' Vue.use(uvUI); // 当前环境 -const type = 'dev' +const type = 'prod' // 环境配置 diff --git a/pages/index/center.vue b/pages/index/center.vue index 080be4b..e325d8b 100644 --- a/pages/index/center.vue +++ b/pages/index/center.vue @@ -41,7 +41,7 @@ 我的佣金 -

¥{{ userInfo.money }}

+

¥{{ userInfo.money || 0 }}

@@ -50,7 +50,7 @@ 我的金额 -

¥{{ userInfo.price }}

+

¥{{ userInfo.price || 0 }}

diff --git a/pages_order/auth/wxUserInfo.vue b/pages_order/auth/wxUserInfo.vue index 0db37e1..a78b284 100644 --- a/pages_order/auth/wxUserInfo.vue +++ b/pages_order/auth/wxUserInfo.vue @@ -32,7 +32,7 @@ v-model="userInfoForm.nickName" /> - + @@ -89,6 +89,10 @@ }) }, getPhone(e){ + if(!e.detail.code){ + return + } + console.log(e); this.$api('bindPhone', { phoneCode : e.detail.code }, res => { @@ -120,15 +124,15 @@ if (self.$utils.verificationAll(self.userInfoForm, { headImage: '请选择头像', nickName: '请填写昵称', - phone: '请填写手机号', + // phone: '请填写手机号', })) { return } self.$api('updateInfo', { - avatarUrl : self.userInfoForm.headImage, + headImage : self.userInfoForm.headImage, nickName : self.userInfoForm.nickName, - phone : self.userInfoForm.phone, + // phone : self.userInfoForm.phone, }, res => { if (res.code == 200) { uni.reLaunch({ diff --git a/store/store.js b/store/store.js index 7e06f63..974f17f 100644 --- a/store/store.js +++ b/store/store.js @@ -105,8 +105,8 @@ const store = new Vuex.Store({ state.userInfo = res.result if (!state.userInfo.nickName || - !state.userInfo.headImage || - !state.userInfo.phone + !state.userInfo.headImage + // !state.userInfo.phone ) { uni.showModal({ title: '申请获取您的信息!',