Przeglądaj źródła

产品列表去下单添加埋点

zhujindu 1 miesiąc temu
rodzic
commit
3f0a7c6a51

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

@@ -181,13 +181,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"
@@ -963,6 +970,7 @@ export default {
           detilId: 'a',
           from: 'outPlan',
           storeCode: val.storeCode,
+          storeName: val.storeName,
           showOrderButton: val.showOrderButton,
         },
       });

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

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

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

@@ -176,20 +176,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"
@@ -483,7 +497,7 @@ export default {
   components: { tabBar, filtrate },
   data() {
     return {
-    Network: Network,
+      Network: Network,
       WiFi: WiFi,
       xmgj: xmgj,
       bfxx: bfxx,
@@ -666,6 +680,7 @@ export default {
           detilId: 'a',
           from: 'inPlan',
           storeCode: val.storeCode,
+          storeName: val.storeName,
           showOrderButton: val.showOrderButton,
         },
       });