Browse Source

活动更改

谢杰标 2 years ago
parent
commit
8df1ec565d
3 changed files with 32 additions and 6 deletions
  1. 5 4
      pages3/course/detail.vue
  2. 27 2
      pages5/scan/examact.vue
  3. BIN
      static/qrcode/kw-xy.png

+ 5 - 4
pages3/course/detail.vue

@@ -270,7 +270,7 @@
     </view>
 
     <view class="bottomBox" v-if="!hideBuyState">
-      <template v-if="!isAct">
+      <template v-if="!options.isAct">
         <view class="icons">
           <view class="icon_item ones">
             <image src="/static/index/share.png" class="share"></image>
@@ -449,7 +449,7 @@ export default {
       checkedAttrs: [],
       selectGoodIndex: 0,
       specAttrPriceList: [],
-      isAct: undefined, //活动 区分是否隐藏身份证注册
+      options: {},
     };
   },
   computed: {
@@ -504,7 +504,7 @@ export default {
       // this.id => goodsId
       this.id = option.id;
       this.goodsType = option.goodsType || option.gt;
-      this.isAct = option.isAct;
+      this.options = option;
       if (option.sac) {
         uni.setStorageSync("shareActivityCode", option.sac);
         if (this.$method.isLogin()) {
@@ -948,7 +948,7 @@ export default {
     drawBuy() {
       if (!this.$method.isLogin()) {
         uni.navigateTo({
-          url: "/pages4/login/login?isBack=" + true + "&isAct=" + this.isAct,
+          url: "/pages4/login/login?isBack=" + true + "&isAct=1",
         });
         return;
       }
@@ -956,6 +956,7 @@ export default {
         .drowActGoods({
           url: location.href,
           goodsList: [this.detail],
+          sellerName: this.options.sale,
         })
         .then((res) => {
           if (res.data.code == 200) {

+ 27 - 2
pages5/scan/examact.vue

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

BIN
static/qrcode/kw-xy.png