diff --git a/JC-Salon-WeChat/pages/login/index.js b/JC-Salon-WeChat/pages/login/index.js index 302d4f39..6279f833 100644 --- a/JC-Salon-WeChat/pages/login/index.js +++ b/JC-Salon-WeChat/pages/login/index.js @@ -124,8 +124,8 @@ Page({ return new Promise(resolve => wx.showModal({ title: '记住登录', content: loginFlow.REMEMBER_LOGIN_PROMPT, - confirmText: '记住', - cancelText: '不记住', + confirmText: '确认', + cancelText: '取消', success: result => resolve(loginFlow.resolveRememberChoice(result)), fail: () => resolve(null) })) diff --git a/JC-Salon-WeChat/pages/login/index.wxml b/JC-Salon-WeChat/pages/login/index.wxml index e338dc94..c558128e 100644 --- a/JC-Salon-WeChat/pages/login/index.wxml +++ b/JC-Salon-WeChat/pages/login/index.wxml @@ -3,7 +3,7 @@ {{appName}}Salon 门店工作台 {{loginState.status === 'PENDING_REVIEW' ? '申请审核中' : loginState.status === 'REJECTED' ? '申请需要修改' : loginState.status === 'DISABLED' ? '账号暂不可用' : loginState.status === 'ERROR' ? '连接失败' : '账号状态'}}{{loginState.registrationRejectReason || loginState.message}} - + {{rememberMe ? '✓' : ''}}记住登录,后续可快速登录 diff --git a/JC-Salon-WeChat/pages/profile-edit/index.wxml b/JC-Salon-WeChat/pages/profile-edit/index.wxml index fbccba0a..9313a9aa 100644 --- a/JC-Salon-WeChat/pages/profile-edit/index.wxml +++ b/JC-Salon-WeChat/pages/profile-edit/index.wxml @@ -15,11 +15,11 @@ - 昵 + 使用微信昵称 diff --git a/JC-Salon-WeChat/utils/login-flow.js b/JC-Salon-WeChat/utils/login-flow.js index f4de34a2..c1da1917 100644 --- a/JC-Salon-WeChat/utils/login-flow.js +++ b/JC-Salon-WeChat/utils/login-flow.js @@ -1,4 +1,4 @@ -const REMEMBER_LOGIN_PROMPT = '勾选记住登录之后,后续可快速登录。' +const REMEMBER_LOGIN_PROMPT = '是否保存登录状态,后续可快速登录' function shouldAutoLogin(preference, status) { return Boolean(preference && preference.rememberMe && status && status.status === 'READY') diff --git a/JC-Salon-WeChat/utils/login-flow.test.js b/JC-Salon-WeChat/utils/login-flow.test.js index ee5d3ef0..f6ae8abd 100644 --- a/JC-Salon-WeChat/utils/login-flow.test.js +++ b/JC-Salon-WeChat/utils/login-flow.test.js @@ -2,7 +2,7 @@ const assert = require('assert') const loginFlow = require('./login-flow') -assert.strictEqual(loginFlow.REMEMBER_LOGIN_PROMPT, '勾选记住登录之后,后续可快速登录。') +assert.strictEqual(loginFlow.REMEMBER_LOGIN_PROMPT, '是否保存登录状态,后续可快速登录') assert.strictEqual(loginFlow.shouldAutoLogin({ rememberMe: true }, { status: 'READY' }), true) assert.strictEqual(loginFlow.shouldAutoLogin({ rememberMe: false }, { status: 'READY' }), false) assert.strictEqual(loginFlow.shouldAutoLogin({ rememberMe: true }, { status: 'PENDING_REVIEW' }), false)