diff --git a/api/login.js b/api/login.js
index 7a07d2d..5add383 100644
--- a/api/login.js
+++ b/api/login.js
@@ -91,3 +91,20 @@ export function logout () {
needToken: true,
})
}
+
+export function scannerCodeLogin(params){
+ return http.request({
+ url: '/passport/member/app_scanner',
+ method: "POST",
+ params,
+ needToken: true,
+ });
+}
+export function scannerCodeLoginConfirm(params){
+ return http.request({
+ url: '/passport/member/app_confirm',
+ method: "POST",
+ params,
+ needToken: true,
+ });
+}
diff --git a/pages.json b/pages.json
index 115501b..6838480 100644
--- a/pages.json
+++ b/pages.json
@@ -244,6 +244,8 @@
"navigationBarTitleText": "面容登录"
}
},
+
+
{
"path": "set/securityCenter/editPassword",
"style": {
@@ -455,6 +457,14 @@
"navigationStyle": "custom",
"navigationBarTextStyle": "black"
}
+ },
+ {
+ "path": "scannerCodeLoginConfirm",
+ "style": {
+ "navigationBarTitleText": "扫码登录",
+ "navigationStyle": "custom",
+ "navigationBarTextStyle": "black"
+ }
}
]
@@ -465,8 +475,8 @@
"pages": [ {
"path": "seckill",
"style": {
- "navigationBarTitleText": "限时抢购",
- "navigationStyle": "custom", // 隐藏系统导航栏
+ "navigationBarTitleText": "限时抢购",
+ "navigationStyle": "custom", // 隐藏系统导航栏
"navigationBarTextStyle": "white" ,
"app-plus": {
"titleNView": {
@@ -480,7 +490,7 @@
"path": "joinGroup",
"style": {
"navigationBarTitleText": "拼团活动",
- "navigationStyle": "custom", // 隐藏系统导航栏
+ "navigationStyle": "custom", // 隐藏系统导航栏
"navigationBarTextStyle": "white" ,
"app-plus": {
// 将回弹属性关掉
diff --git a/pages/passport/scannerCodeLoginConfirm.vue b/pages/passport/scannerCodeLoginConfirm.vue
new file mode 100644
index 0000000..66ec5b1
--- /dev/null
+++ b/pages/passport/scannerCodeLoginConfirm.vue
@@ -0,0 +1,164 @@
+
+
+
+
+
+
+
+
+
+ 电脑端登录确认
+ 为确保帐号安全,请确认是您本人操作
+
+
+
+
+ 取消登录
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/tabbar/home/views.vue b/pages/tabbar/home/views.vue
index 39c7e6d..414a9ec 100644
--- a/pages/tabbar/home/views.vue
+++ b/pages/tabbar/home/views.vue
@@ -146,6 +146,18 @@ export default {
uni.scanCode({
success: function (res) {
let path = encodeURIComponent(res.result);
+
+
+
+ if(path!=undefined && path.indexOf("QR_CODE_LOGIN_SESSION")==0){
+ console.log(path)
+ //app扫码登录
+ uni.navigateTo({
+ url:"/pages/passport/scannerCodeLoginConfirm?token="+path
+ });
+ return;
+ }
+
// WX_CODE 为小程序码
if (res.scanType == "WX_CODE") {