From df9530e48fcf83a7ff46538fcbc4f50ec65d659b Mon Sep 17 00:00:00 2001 From: yeliang-king <2244255345@qq.com> Date: Mon, 9 May 2022 09:34:49 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B4=A6=E5=8F=B7=20=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E7=99=BB=E5=BD=95=20=E4=B8=8E=20=E8=8E=B7=E5=8F=96=E6=9D=83?= =?UTF-8?q?=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tabbar/home/web-view.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pages/tabbar/home/web-view.vue b/pages/tabbar/home/web-view.vue index 5cd9a9c..d300adf 100644 --- a/pages/tabbar/home/web-view.vue +++ b/pages/tabbar/home/web-view.vue @@ -21,11 +21,7 @@ export default { }; }, onLoad(params) { - params.IM - ? (this.src = `${configs.imWebSrc}?token=${storage.getAccessToken()}&id=${ - params.IM - }`) - : (this.src = decodeURIComponent(params.src)); + params.IM ? (this.src = `${configs.imWebSrc}?token=${storage.getAccessToken()}&id=${params.IM}`): (this.src = decodeURIComponent(params.src)); console.log(this.src); }, }; From 5dcb364469228b5862e9fa5acbb0453117e1fc75 Mon Sep 17 00:00:00 2001 From: yeliang-king <2244255345@qq.com> Date: Mon, 9 May 2022 09:36:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E7=99=BB=E5=BD=95=20=E5=92=8C=20=E8=8E=B7=E5=8F=96=E6=9D=83?= =?UTF-8?q?=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + api/login.js | 17 ++ manifest.json | 11 +- pages/passport/login.vue | 376 +++++++++++++++++++++++++++------------ 4 files changed, 295 insertions(+), 110 deletions(-) diff --git a/.gitignore b/.gitignore index 75c76a4..f4e4c6b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # OSX # .DS_Store +node_modules/ #Intellij idea .idea/ diff --git a/api/login.js b/api/login.js index 64df2b7..7a07d2d 100644 --- a/api/login.js +++ b/api/login.js @@ -14,6 +14,23 @@ export function resetByMobile(params) { }); } +/** + * 账号密码登陆 + * @params password + * @params username + */ + export function userLogin(params){ + return http.request({ + method: "POST", + url:`/passport/member/userLogin`, + data: params, + header: { + "content-type": "application/x-www-form-urlencoded", + }, + }) +} + + /** * 发送验证码 * @param mobile diff --git a/manifest.json b/manifest.json index 919295f..a66d28b 100644 --- a/manifest.json +++ b/manifest.json @@ -63,7 +63,16 @@ "" ], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], - "schemes" : "lilishop" + "schemes" : "lilishop", + "permissionExternalStorage" : { + "request" : "none", + "prompt" : "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。" + }, + "permissionPhoneState" : { + "request" : "none", + "prompt" : "为保证您正常、安全地使用,需要获取设备识别码(部分手机提示为获取手机号码)使用权限,请允许" + }, + "autoSdkPermissions" : false }, "ios" : { "idfa" : false, diff --git a/pages/passport/login.vue b/pages/passport/login.vue index 9b39122..08aa056 100644 --- a/pages/passport/login.vue +++ b/pages/passport/login.vue @@ -10,67 +10,111 @@ -
- -
- 获取验证码 +
+
+ +
+ 获取验证码 +
-
- - - -
- 未注册的手机号验证后将自动创建用户账号,登录即代表您已同意《使用条款及隐私协议》 +
+ + +
+ + + {{ tips }}
- -
- +
+ + -
- - {{ tips }} +
+ 帐号密码登录
+
+ + + +
+ 未注册的手机号验证后将自动创建用户账号,登录即代表您已同意《隐私协议》 + + 《用户协议》 + +
+
+ +
+ {{ !enableUserPwdBox ? "帐号密码" : "手机号" }}登录 +
+