谢杰标 vor 2 Jahren
Ursprung
Commit
0dc6e821bd
2 geänderte Dateien mit 19 neuen und 7 gelöschten Zeilen
  1. 5 2
      pages4/login/login.vue
  2. 14 5
      pages5/scan/examact.vue

+ 5 - 2
pages4/login/login.vue

@@ -229,14 +229,17 @@ export default {
       shareActivityCode: "", // 用户扫码进来详情页获取的
       isBack: false,
       isDualAuth: false,
-      isAct: undefined,
+      isAct: "",
     };
   },
   onLoad(option) {
     if (option.isBack) {
       this.isBack = option.isBack;
     }
-    this.isAct = option.isAct;
+    if (option.isAct) {
+      this.isAct = option.isAct;
+    }
+
     if (uni.getStorageSync("newUser_sc")) {
       this.newUser_sc = uni.getStorageSync("newUser_sc");
     }

+ 14 - 5
pages5/scan/examact.vue

@@ -94,7 +94,6 @@ export default {
         "http://localhost:8080/pages5/scan/examact?jump=www.hnjsxt.cn/detail/6",
       jump: undefined,
       tenantInfo: {},
-      val: "",
     };
   },
   onLoad(option) {
@@ -107,15 +106,14 @@ export default {
         if (res.data.code === 200) {
           //跳转去对应域名
           this.toDatail();
-        }else{
+        } else {
           this.$u.toast(res.data.msg);
         }
       });
     },
     toDatail() {
       if (this.jump) {
-        window.location.href =
-          (this.tenantInfo.scheme || "https://") + this.jump;
+        window.location.href = this.scheme + this.jump;
         return;
       }
       uni.navigateTo({
@@ -133,13 +131,24 @@ export default {
       domain = this.$method.checkDomain(domain)
         ? domain
         : "120.79.166.78:19006";
-      this.val = this.jump || domain + "/pages/questionBank/index?isAct=1";
       return map[domain];
     },
   },
   components: {
     tkiQrcode,
   },
+  computed: {
+    scheme() {
+      return this.tenantInfo.scheme || "https://";
+    },
+    val() {
+      return (
+        this.scheme +
+        (this.jump ||
+          window.location.host + "/pages/questionBank/index?isAct=1")
+      );
+    },
+  },
 };
 </script>