Browse Source

会员开通埋点

ccf 4 years ago
parent
commit
f5ec6e5bb6
2 changed files with 5 additions and 0 deletions
  1. 2 0
      pages/type/vip/developer.vue
  2. 3 0
      pages/type/vip/enterprise.vue

+ 2 - 0
pages/type/vip/developer.vue

@@ -141,12 +141,14 @@
                 this.type = type;
                 this.item = this.vipList[1];
                 this.buyDialog = true;
+                this.cnzz("会员购买","开发者会员","");
             },
             handleClose() {
                 this.buyDialog = false;
             },
             gotoPay(number) {
                 const item = this.item;
+                this.cnzz("会员购买","开发者会员","前往支付页");
                 location.href = `/vip/pay?product_id=${item.id}&number=${number}&next=/type/vip/`;
             },
             // 点击会员计划

+ 3 - 0
pages/type/vip/enterprise.vue

@@ -195,10 +195,12 @@ export default {
         case "com":
           this.item = this.vipList[0];
           this.type = "com";
+          this.cnzz("会员购买","初创版开通","");
           break;
         case "pre":
           this.item = this.vipList[2];
           this.type = "pre";
+          this.cnzz("会员购买","企业版开通","");
           break;
       }
       this.buyDialog = true;
@@ -208,6 +210,7 @@ export default {
     },
     gotoPay(number) {
       const item = this.item;
+      this.cnzz("会员购买",item.id==1?"初创版":"企业版","前往支付页");
       location.href = `/vip/pay?product_id=${item.id}&number=${number}&next=/type/vip/`;
     },
     // 点击会员计划