|
@@ -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>
|
|
|
|