Browse Source

店铺操作按钮增加埋点

zhujindu 1 năm trước cách đây
mục cha
commit
30e6fc610f

+ 3 - 1
src/views/deviceOutside/projectOut.vue

@@ -252,17 +252,19 @@ export default {
         });
     },
     overbookingFn(val) {
-      this.buryingPoint({
+      buryingPoint({
         systemModel: '拜访页',
         buryingPointType: 1,
         buryingPointValue: val.storeName + '(' + val.storeCode + ')',
         buryingPointName: '去下单',
         buryingPointPosition: '拜访页',
       });
+      this.toastLoading(0, '加载中...', true);
       getOrderUrlByStoreId({
         storeId: this.$route.query.storeId,
         from: this.$route.query.from,
       }).then((res) => {
+        this.toastLoading().clear();
         if (res.code == 200 && res.data) {
           window.location.href = res.data;
         } else {

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

@@ -274,17 +274,19 @@ export default {
         });
     },
     overbookingFn(val) {
-      this.buryingPoint({
+      buryingPoint({
         systemModel: '拜访页',
         buryingPointType: 1,
         buryingPointValue: val.storeName + '(' + val.storeCode + ')',
         buryingPointName: '去下单',
         buryingPointPosition: '拜访页',
       });
+      this.toastLoading(0, '加载中...', true);
       getOrderUrlByStoreId({
         storeId: this.$route.query.storeId,
         from: this.$route.query.from,
       }).then((res) => {
+        this.toastLoading().clear();
         if (res.code == 200 && res.data) {
           window.location.href = res.data;
         } else {

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

@@ -258,17 +258,19 @@ export default {
       // +(ms<10 ? "0"+ms : ms);
     },
     overbookingFn(val) {
-      this.buryingPoint({
+      buryingPoint({
         systemModel: '拜访页',
         buryingPointType: 1,
         buryingPointValue: val.storeName + '(' + val.storeCode + ')',
         buryingPointName: '去下单',
         buryingPointPosition: '拜访页',
       });
+      this.toastLoading(0, '加载中...', true);
       getOrderUrlByStoreId({
         storeId: this.$route.query.storeId,
         from: this.$route.query.from,
       }).then((res) => {
+        this.toastLoading().clear();
         if (res.code == 200 && res.data) {
           window.location.href = res.data;
         } else {