Browse Source

Merge branch 'master' into dev1.2

lianbingjie 5 years ago
parent
commit
34e4b2a506
3 changed files with 17 additions and 3 deletions
  1. 9 0
      public/index.html
  2. 7 2
      src/router/index.ts
  3. 1 1
      src/views/buy/Buy.vue

+ 9 - 0
public/index.html

@@ -36,5 +36,14 @@
     <!-- vConsole debug -->
     <!-- <script type="text/javascript" src="//cdn.bootcdn.net/ajax/libs/vConsole/3.3.4/vconsole.min.js"></script>
     <script>new VConsole()</script> -->
+    <script>
+      var _hmt = _hmt || [];
+      (function() {
+          var hm = document.createElement("script");
+          hm.src = "https://hm.baidu.com/hm.js?72331746d85dcac3dac65202d103e5d9";
+          var s = document.getElementsByTagName("script")[0]; 
+          s.parentNode.insertBefore(hm, s);
+      })();
+    </script>
   </body>
 </html>

+ 7 - 2
src/router/index.ts

@@ -2,6 +2,8 @@ import Vue from 'vue'
 import VueRouter from 'vue-router'
 import store from '@/store'
 
+declare const _hmt: any
+
 if (process.env.NODE_DEV !== 'production') {
   Vue.use(VueRouter)
 }
@@ -58,7 +60,11 @@ myRouter.beforeEach((to, from, next) => {
   // 设置页面标题
   document.title = to.meta.title
   store.commit('updatePageTitle', to.meta.title)
-
+  try {
+    ;(_hmt as any).push(['_trackPageview', to.fullPath])
+  } catch (error) {
+    console.log(error)
+  }
   // 页面切换动画
   if (to.params.direction) {
     store.commit('updateDirection', to.params.direction)
@@ -79,7 +85,6 @@ myRouter.beforeEach((to, from, next) => {
       store.commit('updateDirection', 'forward')
     }
   }
-
   next()
 })
 

+ 1 - 1
src/views/buy/Buy.vue

@@ -153,7 +153,7 @@ export default class BuyReport extends Vue {
   tipText = [
     '数据报告将以邮件形式发至您的邮箱',
     '数据报告一经购买不支持退货、退款',
-    '购买、售后等问题,请联系剑鱼标讯客服微信号:jianyu360'
+    '购买、售后等问题,请联系剑鱼标讯客服电话:400-108-6670'
   ]
 
   // 订单金额等数据