Browse Source

fix: 扫码逻辑处理

chenzhen2 2 years ago
parent
commit
46622375ba
1 changed files with 13 additions and 1 deletions
  1. 13 1
      pages/ipdauth/index.js

+ 13 - 1
pages/ipdauth/index.js

@@ -32,7 +32,19 @@ Page({
   },
   // 取消登录
   cancelLoginn() {
-    router.pop();
+    let param = {
+      qrCodeId: this.data.qrCodeId,
+      macAddress: this.data.macAddress,
+      status: 0,  // 0-未扫码 1-已扫描 2-已确认 3-已经失效
+      projectId: this.data.projectId,
+      spaceId: this.data.spaceId
+    }
+    comfirmCodeLogin(param).then(res => {
+      // if (res.result === 'success') {
+      //   // Toast.success("已确认");
+      // }
+      router.pop();
+    })
   },
   /**
    * 生命周期函数--监听页面加载