浏览代码

产品列表去下单添加埋点

zhujindu 1 月之前
父节点
当前提交
bc854f043d
共有 3 个文件被更改,包括 62 次插入27 次删除
  1. 21 7
      src/views/deviceOutside/index.vue
  2. 5 5
      src/views/deviceOutside/productItem.vue
  3. 36 15
      src/views/deviceWithin/index.vue

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

@@ -168,13 +168,20 @@
                       <van-icon :name="Network" size="26" />
                     </div>
                   </el-popover>
-                  <el-popover popper-class="zpover" placement="bottom" width="120" trigger="click"
-                          content="调色机当月未调色">
-                          <div v-if="item.storeLabels.stopColorMixerMonth" class="visitStoreIco"
-                            style="background-color: #fff" slot="reference">
-                            <van-icon :name="WiFi" size="26" />
-                          </div>
-                        </el-popover>
+                  <el-popover
+                    popper-class="zpover"
+                    placement="bottom"
+                    width="120"
+                    trigger="click"
+                    content="调色机当月未调色">
+                    <div
+                      v-if="item.storeLabels.stopColorMixerMonth"
+                      class="visitStoreIco"
+                      style="background-color: #fff"
+                      slot="reference">
+                      <van-icon :name="WiFi" size="26" />
+                    </div>
+                  </el-popover>
                   <el-popover
                     popper-class="zpover"
                     placement="bottom"
@@ -956,6 +963,13 @@ export default {
       });
     },
     linkList(val) {
+      this.buryingPoint({
+        systemModel: '计划外',
+        buryingPointType: 1,
+        buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+        buryingPointName: '推荐下单',
+        buryingPointPosition: this.tabVal == 1 ? '我的' : '销售部',
+      });
       this.$router.push({
         path: '/pItem',
         query: {

+ 5 - 5
src/views/deviceOutside/productItem.vue

@@ -161,11 +161,11 @@ export default {
     },
     placeOrderFn() {
       buryingPoint({
-        systemModel: '门店列表',
-        buryingPointType: 6,
-        buryingPointValue: '门店拜访-下单SKU数',
-        buryingPointName: '去下单',
-        buryingPointPosition: '门店ICON',
+        systemModel: this.$route.query.from == 'outPlan' ? '计划外' : '计划内',
+        buryingPointType: 1,
+        buryingPointValue: this.$route.query.storeName + '(' + this.$route.query.storeCode + ')',
+        buryingPointName: '建议下单-去下单',
+        buryingPointPosition: this.$route.query.from == 'outPlan' ? '计划外' : '计划内',
       });
       let loading1 = this.$toast.loading({
         duration: 0,

+ 36 - 15
src/views/deviceWithin/index.vue

@@ -175,20 +175,34 @@
                     <van-icon :name="targetOne" size="26" />
                   </div>
                 </el-popover>
-                <el-popover popper-class="zpover" placement="bottom" width="120" trigger="click"
-                          content="调色机7天未调色">
-                          <div v-if="item.storeLabels.stopColorMixerSeven" class="visitStoreIco" style="background-color: #fff"
-                            slot="reference">
-                            <van-icon :name="Network" size="26" />
-                          </div>
-                        </el-popover>
-                        <el-popover popper-class="zpover" placement="bottom" width="120" trigger="click"
-                          content="调色机当月未调色">
-                          <div v-if="item.storeLabels.stopColorMixerMonth" class="visitStoreIco"
-                            style="background-color: #fff" slot="reference">
-                            <van-icon :name="WiFi" size="26" />
-                          </div>
-                        </el-popover>
+                <el-popover
+                  popper-class="zpover"
+                  placement="bottom"
+                  width="120"
+                  trigger="click"
+                  content="调色机7天未调色">
+                  <div
+                    v-if="item.storeLabels.stopColorMixerSeven"
+                    class="visitStoreIco"
+                    style="background-color: #fff"
+                    slot="reference">
+                    <van-icon :name="Network" size="26" />
+                  </div>
+                </el-popover>
+                <el-popover
+                  popper-class="zpover"
+                  placement="bottom"
+                  width="120"
+                  trigger="click"
+                  content="调色机当月未调色">
+                  <div
+                    v-if="item.storeLabels.stopColorMixerMonth"
+                    class="visitStoreIco"
+                    style="background-color: #fff"
+                    slot="reference">
+                    <van-icon :name="WiFi" size="26" />
+                  </div>
+                </el-popover>
                 <el-popover
                   popper-class="zpover"
                   placement="bottom"
@@ -478,7 +492,7 @@ export default {
   components: { tabBar, filtrate },
   data() {
     return {
-    Network: Network,
+      Network: Network,
       WiFi: WiFi,
       xmgj: xmgj,
       bfxx: bfxx,
@@ -654,6 +668,13 @@ export default {
       });
     },
     linkList(val) {
+      buryingPoint({
+        systemModel: '计划内',
+        buryingPointType: 1,
+        buryingPointValue: val.storeName + '(' + val.storeCode + ')',
+        buryingPointName: '推荐下单',
+        buryingPointPosition: '计划内',
+      });
       this.$router.push({
         path: '/pItem',
         query: {