From d1153659cbfa9e3ddedb57639e6c5450450d9ae5 Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Tue, 21 Jan 2025 14:44:46 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=90=8D=E5=AD=97=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commons/config.js | 2 +- manifest.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commons/config.js b/commons/config.js index c55e9fe..69fdd05 100644 --- a/commons/config.js +++ b/commons/config.js @@ -1,6 +1,6 @@ //打包时修改env的值即可 -const env='test' //test , production,local +const env='production' //test , production,local export const encryptKey='1234567890123456' // http数据加解密的key diff --git a/manifest.json b/manifest.json index bd25926..8cd2e1c 100644 --- a/manifest.json +++ b/manifest.json @@ -1,9 +1,9 @@ { - "name" : "duanju-app-v3", + "name" : "斯耀短剧", "appid" : "__UNI__E0B05B1", "description" : "", - "versionName" : "2.3.4", - "versionCode" : 234, + "versionName" : "1.2.4", + "versionCode" : 124, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { From ef55dc901e3a556481ed1fadb25b423b5d552886 Mon Sep 17 00:00:00 2001 From: GaoHao <1210693421@qq.com> Date: Tue, 21 Jan 2025 17:22:26 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/me/userInfo.vue | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/pages/me/userInfo.vue b/pages/me/userInfo.vue index d097fa2..45452ab 100644 --- a/pages/me/userInfo.vue +++ b/pages/me/userInfo.vue @@ -12,11 +12,11 @@ - + 保存 @@ -62,7 +62,8 @@ if (index === 0) { // 用户点击了预览当前图片 // 可以自己实现当前头像链接的读取 - let url = data.userInfo.avatar; + console.log() + let url = data.userInfo.avatar||'../../static/default/avatar.png'; let arr = [] arr.push(url) uni.previewImage({ @@ -108,20 +109,20 @@ }) return } - if (!data.userInfo.phone) { - uni.showToast({ - title: "手机号不能空", - icon: "none" - }) - return - } - if (checkPhone(data.userInfo.phone) == false) { - uni.showToast({ - title: "手机号格式不正确", - icon: "none" - }) - return - } + // if (!data.userInfo.phone) { + // uni.showToast({ + // title: "手机号不能空", + // icon: "none" + // }) + // return + // } + // if (checkPhone(data.userInfo.phone) == false) { + // uni.showToast({ + // title: "手机号格式不正确", + // icon: "none" + // }) + // return + // } uni.showModal({ title: '温馨提示', @@ -132,7 +133,7 @@ let res = await updateUsers({ userName: data.userInfo.userName, avatar: data.userInfo.avatar, - phone: data.userInfo.phone, + // phone: data.userInfo.phone, }) uni.showToast({ title: '保存成功', @@ -141,7 +142,7 @@ let userInfo = uni.getStorageSync('userInfo'); userInfo.userName = data.userInfo.userName userInfo.avatar = data.userInfo.avatar - userInfo.phone = data.userInfo.phone + // userInfo.phone = data.userInfo.phone uni.setStorageSync('userInfo', userInfo); setTimeout(function() { uni.navigateBack()