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 33d1dd9..119a102 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 ? "帐号密码" : "手机号" }}登录 +
+