|
@@ -2,7 +2,7 @@
|
|
|
<view class="examact">
|
|
|
<view class="examact-tname">{{ tenantInfo.name }}</view>
|
|
|
<img
|
|
|
- :src="$method.splitImgHost('oss/images/file/20230318/1679109165004.png')"
|
|
|
+ :src="$method.splitImgHost('oss/images/file/20230320/1679298401443.png')"
|
|
|
alt=""
|
|
|
srcset=""
|
|
|
/>
|
|
@@ -91,9 +91,15 @@ const map = {
|
|
|
qrcodeUrl: "yf_act.png",
|
|
|
goodsId: "8672",
|
|
|
},
|
|
|
+ "h.kw-xy.com": {
|
|
|
+ name: "深圳市凯文云学堂",
|
|
|
+ qrcodeUrl: "kw-xy.png",
|
|
|
+ goodsId: "8680",
|
|
|
+ },
|
|
|
};
|
|
|
import { actCheck } from "../../common/httpList/act";
|
|
|
import tkiQrcode from "tki-qrcode";
|
|
|
+import { tenantId, BASE_URL } from "@/common/request.js";
|
|
|
export default {
|
|
|
name: "SaasMiniprogramExamact",
|
|
|
data() {
|
|
@@ -103,13 +109,18 @@ export default {
|
|
|
example:
|
|
|
"http://localhost:8080/pages5/scan/examact?jump=www.hnjsxt.cn/detail/6",
|
|
|
jump: undefined,
|
|
|
+ sale: "",
|
|
|
tenantInfo: {},
|
|
|
+ t: "",
|
|
|
};
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
this.jump = option.jump;
|
|
|
+ this.sale = option.sale;
|
|
|
this.tenantInfo = this.backInfo();
|
|
|
this.goodsId = this.tenantInfo.goodsId;
|
|
|
+ this.t = option.t;
|
|
|
+ this.t && this.statistics();
|
|
|
},
|
|
|
methods: {
|
|
|
collectMerch() {
|
|
@@ -124,7 +135,8 @@ export default {
|
|
|
},
|
|
|
toDatail() {
|
|
|
if (this.jump) {
|
|
|
- window.location.href = this.scheme + this.jump;
|
|
|
+ window.location.href =
|
|
|
+ this.scheme + this.jump + "?sale=" + (this.sale || "");
|
|
|
return;
|
|
|
}
|
|
|
uni.navigateTo({
|
|
@@ -133,6 +145,8 @@ export default {
|
|
|
this.goodsId +
|
|
|
"&goodsType=" +
|
|
|
this.goodsType +
|
|
|
+ "&sale=" +
|
|
|
+ (this.sale || "") +
|
|
|
"&isAct=" +
|
|
|
1,
|
|
|
});
|
|
@@ -144,6 +158,17 @@ export default {
|
|
|
: "120.79.166.78:19006";
|
|
|
return map[domain];
|
|
|
},
|
|
|
+ statistics() {
|
|
|
+ uni.request({
|
|
|
+ url: BASE_URL + "/app/common/save/activity/record/" + this.t,
|
|
|
+ method: "get",
|
|
|
+ header: {
|
|
|
+ TenantId: tenantId,
|
|
|
+ },
|
|
|
+ success: (res) => {},
|
|
|
+ fail: (err) => {},
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
components: {
|
|
|
tkiQrcode,
|