Kaynağa Gözat

店铺操作按钮增加埋点

zhujindu 1 yıl önce
ebeveyn
işleme
faeec192cc

+ 21 - 0
src/views/deviceOutside/index.vue

@@ -786,6 +786,13 @@ export default {
         });
     },
     orderFn(val) {
+      this.buryingPoint({
+        systemModel: '计划外',
+        buryingPointType: 1,
+        buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+        buryingPointName: '去下单',
+        buryingPointPosition: this.tabVal == 1 ? '我的' : '销售部',
+      });
       getOrderUrlByStoreId({
         storeId: val.storeId,
         from: 'outPlan',
@@ -1958,6 +1965,13 @@ export default {
       localStorage.removeItem('visitId');
       localStorage.setItem('tabVal', this.tabVal);
       checkVisit({ storeId: val.storeId }).then((res) => {
+        this.buryingPoint({
+          systemModel: '计划外',
+          buryingPointType: 1,
+          buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+          buryingPointName: '异常拜访',
+          buryingPointPosition: this.tabVal == 1 ? '我的' : '销售部',
+        });
         if (res.code == 200 || val.stateString.indexOf('拜访中') != -1) {
           if (localStorage.getItem('loginType') == 'cs') {
             var lat = '';
@@ -2194,6 +2208,13 @@ export default {
       });
     },
     visitFn(val) {
+      this.buryingPoint({
+        systemModel: '计划外',
+        buryingPointType: 1,
+        buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+        buryingPointName: '客户信息',
+        buryingPointPosition: this.tabVal == 1 ? '我的' : '销售部',
+      });
       this.$router.push({
         path: '/storeDetail',
         query: { id: val.storeId, detilId: 'a' },

+ 10 - 2
src/views/deviceOutside/projectOut.vue

@@ -28,8 +28,8 @@
           plain
           v-if="showOrderButton"
           class="centerBtn"
-          @click="overbookingFn"
-          >微信下单</van-button
+          @click="overbookingFn(urlParameter)"
+          >下单</van-button
         >
         <van-button
           type="info"
@@ -96,6 +96,7 @@ import {
   editDwellTime,
   suishenbangStoreSale,
   stopVisit,
+  buryingPoint,
 } from '@/api/index';
 import axios from 'axios';
 import { getOrderUrlByStoreId } from '@/api/inventory';
@@ -251,6 +252,13 @@ export default {
         });
     },
     overbookingFn(val) {
+      this.buryingPoint({
+        systemModel: '拜访页',
+        buryingPointType: 1,
+        buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+        buryingPointName: '去下单',
+        buryingPointPosition: '拜访页',
+      });
       getOrderUrlByStoreId({
         storeId: this.$route.query.storeId,
         from: this.$route.query.from,

+ 10 - 3
src/views/deviceOutside/suishenbangOutstoreVisit.vue

@@ -43,8 +43,8 @@
           plain
           v-if="showOrderButton"
           class="centerBtn"
-          @click="overbookingFn"
-          >微信下单</van-button
+          @click="overbookingFn(urlParameter)"
+          >下单</van-button
         >
         <van-button
           type="info"
@@ -272,7 +272,14 @@ export default {
           });
         });
     },
-    overbookingFn() {
+    overbookingFn(val) {
+      this.buryingPoint({
+        systemModel: '拜访页',
+        buryingPointType: 1,
+        buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+        buryingPointName: '去下单',
+        buryingPointPosition: '拜访页',
+      });
       getOrderUrlByStoreId({
         storeId: this.$route.query.storeId,
         from: this.$route.query.from,

+ 21 - 0
src/views/deviceOutside/topStore.vue

@@ -965,6 +965,13 @@ export default {
       localStorage.setItem('outvstoreName', '');
     },
     orderFn(val) {
+      this.buryingPoint({
+        systemModel: '高销额门店推荐',
+        buryingPointType: 1,
+        buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+        buryingPointName: '去下单',
+        buryingPointPosition: '高销额门店推荐',
+      });
       getOrderUrlByStoreId({
         storeId: val.storeId,
         from: 'topStore',
@@ -2103,6 +2110,13 @@ export default {
       localStorage.removeItem('visitId');
       localStorage.setItem('tabVal', this.tabVal);
       checkVisit({ storeId: val.storeId }).then((res) => {
+        this.buryingPoint({
+          systemModel: '高销额门店推荐',
+          buryingPointType: 1,
+          buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+          buryingPointName: '异常拜访',
+          buryingPointPosition: '高销额门店推荐',
+        });
         if (res.code == 200 || val.stateString.indexOf('拜访中') != -1) {
           if (localStorage.getItem('loginType') == 'cs') {
             var lat = '';
@@ -2342,6 +2356,13 @@ export default {
       });
     },
     visitFn(val) {
+      this.buryingPoint({
+        systemModel: '高销额门店推荐',
+        buryingPointType: 1,
+        buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+        buryingPointName: '客户信息',
+        buryingPointPosition: '高销额门店推荐',
+      });
       this.$router.push({
         path: '/storeDetail',
         query: { id: val.storeId, detilId: 'a' },

+ 28 - 0
src/views/deviceWithin/index.vue

@@ -529,6 +529,13 @@ export default {
         });
     },
     orderFn(val) {
+      this.buryingPoint({
+        systemModel: '计划内',
+        buryingPointType: 1,
+        buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+        buryingPointName: '去下单',
+        buryingPointPosition: '计划内',
+      });
       getOrderUrlByStoreId({
         storeId: val.storeId,
         from: 'inPlan',
@@ -703,6 +710,13 @@ export default {
       var that = this;
       localStorage.removeItem('visitId');
       checkVisit({ storeId: val.storeId }).then((res) => {
+        this.buryingPoint({
+          systemModel: '计划内',
+          buryingPointType: 1,
+          buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+          buryingPointName: '进店拜访',
+          buryingPointPosition: '计划内',
+        });
         if (res.code == 200 || val.stateString.indexOf('拜访中') != -1) {
           if (localStorage.getItem('loginType') == 'cs') {
             var lat = '';
@@ -1398,6 +1412,13 @@ export default {
     abnormalVisit(val) {
       localStorage.removeItem('visitId');
       checkVisit({ storeId: val.storeId }).then((res) => {
+        this.buryingPoint({
+          systemModel: '计划内',
+          buryingPointType: 1,
+          buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+          buryingPointName: '异常拜访',
+          buryingPointPosition: '计划内',
+        });
         if (res.code == 200 || val.stateString.indexOf('拜访中') != -1) {
           if (localStorage.getItem('loginType') == 'cs') {
             var lat = '';
@@ -1615,6 +1636,13 @@ export default {
       }
     },
     visitFn(val) {
+      this.buryingPoint({
+        systemModel: '计划内',
+        buryingPointType: 1,
+        buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+        buryingPointName: '客户信息',
+        buryingPointPosition: '计划内',
+      });
       this.$router.push({
         path: '/storeDetail',
         query: { id: val.storeId, detilId: 'a' },

+ 10 - 3
src/views/deviceWithin/storeVisit.vue

@@ -40,8 +40,8 @@
           plain
           v-if="showOrderButton"
           class="centerBtn"
-          @click="overbookingFn"
-          >微信下单</van-button
+          @click="overbookingFn(urlParameter)"
+          >下单</van-button
         >
         <van-button
           v-if="insert"
@@ -256,7 +256,14 @@ export default {
       // +":"
       // +(ms<10 ? "0"+ms : ms);
     },
-    overbookingFn() {
+    overbookingFn(val) {
+      this.buryingPoint({
+        systemModel: '拜访页',
+        buryingPointType: 1,
+        buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+        buryingPointName: '去下单',
+        buryingPointPosition: '拜访页',
+      });
       getOrderUrlByStoreId({
         storeId: this.$route.query.storeId,
         from: this.$route.query.from,