diff --git a/uniapp/manifest.json b/uniapp/manifest.json index d09e241..4867e42 100644 --- a/uniapp/manifest.json +++ b/uniapp/manifest.json @@ -56,7 +56,7 @@ /* 小程序特有相关 */ "mp-weixin" : { /* 微信小程序 AppID:需与平台端「微信小程序配置」(/platform/wechatMini/config)中的 AppID 一致, - 否则「微信手机号一键登录」会因 jscode2session 报 40029 而失败 */ + 否则「手机号快捷登录」会因 jscode2session 报 40029 而失败 */ "appid" : "wxd500522c8b9440a6", "setting" : { "urlCheck" : false, diff --git a/uniapp/pages/login/login.vue b/uniapp/pages/login/login.vue index 05598f7..b38c5f7 100644 --- a/uniapp/pages/login/login.vue +++ b/uniapp/pages/login/login.vue @@ -24,7 +24,7 @@ 欢迎登录 - 使用微信手机号,一键完成身份认证 + 使用手机号快捷登录,快速完成身份认证 @@ -34,16 +34,16 @@ - 首次使用请先用账号密码登录一次,自动完成微信绑定后即可一键登录 + 首次使用请先用账号密码登录一次,完成账号绑定后即可快捷登录 @@ -510,9 +510,9 @@ function uniLoginCode() { provider: 'weixin', success: (res) => { if (res && res.code) resolve(res.code) - else reject(new Error('未获取到微信登录凭证')) + else reject(new Error('未获取到登录凭证')) }, - fail: () => reject(new Error('获取微信登录凭证失败')) + fail: () => reject(new Error('获取登录凭证失败')) }) }) } @@ -532,7 +532,7 @@ async function onGetPhoneNumber(e) { const detail = (e && e.detail) || {} const errMsg = detail.errMsg || '' if (errMsg.indexOf('deny') !== -1) { - uni.showToast({ title: '你已取消手机号授权', icon: 'none' }) + uni.showToast({ title: '已取消手机号快捷登录', icon: 'none' }) return } const phoneCode = detail.code && errMsg.indexOf('fail') === -1 ? detail.code : '' @@ -597,7 +597,7 @@ function showError(err) { const raw = (err && err.message) || '' if (/url not in domain list/i.test(raw)) { errorMsg.value = - '当前小程序未配置服务器域名,请在微信公众平台「开发管理 - 开发设置 - 服务器域名」中添加 api.yunzer.cn 为 request 合法域名' + '当前小程序未配置服务器域名,请在小程序管理后台「开发管理 - 开发设置 - 服务器域名」中添加 api.yunzer.cn 为 request 合法域名' return } errorMsg.value = raw || '登录失败,请稍后重试' @@ -954,7 +954,7 @@ function goForget() { } } -.btn-wechat { +.btn-phone { margin-top: 0; height: 96rpx; border-radius: 20rpx; @@ -980,7 +980,7 @@ function goForget() { } } -.btn-wechat-text { +.btn-phone-text { font-size: 32rpx; color: #ffffff; } diff --git a/uniapp/pages/nav/nav.vue b/uniapp/pages/nav/nav.vue index 108510f..ee16543 100644 --- a/uniapp/pages/nav/nav.vue +++ b/uniapp/pages/nav/nav.vue @@ -163,8 +163,8 @@ function navUniLoginCode() { return new Promise((resolve, reject) => { uni.login({ provider: 'weixin', - success: (res) => (res && res.code ? resolve(res.code) : reject(new Error('未获取到微信登录凭证'))), - fail: () => reject(new Error('获取微信登录凭证失败')) + success: (res) => (res && res.code ? resolve(res.code) : reject(new Error('未获取到登录凭证'))), + fail: () => reject(new Error('获取登录凭证失败')) }) }) } @@ -172,7 +172,7 @@ function navUniLoginCode() { async function onGuestPhone(e) { const detail = (e && e.detail) || {} if (String(detail.errMsg || '').indexOf('ok') === -1 || !detail.code) { - uni.showToast({ title: '未获取到手机号授权', icon: 'none' }) + uni.showToast({ title: '未获取到手机号,请重试', icon: 'none' }) return } if (guestAuthLoading.value) return @@ -194,10 +194,10 @@ async function onGuestPhone(e) { if (!res || !res.token) throw new Error('未返回游客令牌') setGuestToken(res.token) guestAuthVisible.value = false - uni.showToast({ title: '授权成功,数据可保存了', icon: 'none' }) + uni.showToast({ title: '验证成功,数据可保存了', icon: 'none' }) } catch (err) { console.error('[nav] guest mini-login failed:', err) - uni.showToast({ title: (err && err.message) || '授权失败,请重试', icon: 'none' }) + uni.showToast({ title: (err && err.message) || '验证失败,请重试', icon: 'none' }) } finally { guestAuthLoading.value = false } @@ -441,7 +441,7 @@ function chooseTenant() { async function onCardPhone(e, card = null) { const detail = (e && e.detail) || {} if (String(detail.errMsg || '').indexOf('ok') === -1 || !detail.code) { - uni.showToast({ title: '需要授权手机号才能使用', icon: 'none' }) + uni.showToast({ title: '请先完成手机号验证才能使用', icon: 'none' }) return } if (phoneBusy.value) return @@ -474,7 +474,7 @@ async function onCardPhone(e, card = null) { } } catch (err) { console.error('[nav] onboarding phone failed:', err) - uni.showToast({ title: (err && err.message) || '授权失败,请重试', icon: 'none' }) + uni.showToast({ title: (err && err.message) || '验证失败,请重试', icon: 'none' }) } finally { uni.hideLoading() phoneBusy.value = false @@ -507,7 +507,7 @@ async function enter(card) { return } if (guest.value) { - uni.showToast({ title: '请先授权手机号', icon: 'none' }) + uni.showToast({ title: '请先完成手机号验证', icon: 'none' }) return } if (card.needTenant) { diff --git a/uniapp/pages/onboarding/company.vue b/uniapp/pages/onboarding/company.vue index 9e810a6..3c2606d 100644 --- a/uniapp/pages/onboarding/company.vue +++ b/uniapp/pages/onboarding/company.vue @@ -88,7 +88,7 @@ 手机号 - {{ mobileMask || '微信已验证' }}不可修改 + {{ mobileMask || '手机号已验证' }}不可修改 提交后由该企业管理员审核,通过后即可使用业务功能 diff --git a/uniapp/pages/onboarding/register.vue b/uniapp/pages/onboarding/register.vue index 0e01d18..d06e224 100644 --- a/uniapp/pages/onboarding/register.vue +++ b/uniapp/pages/onboarding/register.vue @@ -15,7 +15,7 @@ 确认密码 - 密码至少 6 位;微信号会在注册时自动绑定,下次可直接进入 + 密码至少 6 位;当前账号会在注册时自动绑定,下次可直接进入 {{ errorMsg }}