wangxy 2 lat temu
rodzic
commit
3674582a85

+ 2 - 3
components/bottomMenu.vue

@@ -32,13 +32,12 @@
         footerData: [
           {
             name: '电话咨询',
-            url: 'tel:400-052-2130',
+            url: 'tel:400-099-0883',
           },
           {
             name: '在线咨询',
-            url: 'https://p.qiao.baidu.com/cps/chat?siteId=17939829&userId=40179606&siteToken=35cf5be39b078111b613c15d6bab5493',
+            url: 'https://p.qiao.baidu.com/cps/chat?siteId=17851606&userId=39739427&siteToken=0288c259e4ac8be07c4c238fcc91760f',
           }
-
         ]
       }
     },

+ 22 - 4
components/common/onlineInformationBtn.vue

@@ -1,10 +1,10 @@
 <template>
-  <a class="zxzx-btn" :href="linkForKefu" target="_blank">在线咨询</a>
-
+  <a class="zxzx-btn" :href="linkForKefu" @click="btnClick">在线咨询</a>
 </template>
 
 <script>
 import {linkForKefu} from "~/defaultConfig"
+
 export default {
   name: "onlineInformation",
   props: {
@@ -19,8 +19,21 @@ export default {
     }
   },
   methods: {
+    isPC() {
+      const browserWidth = document.documentElement.clientWidth;
+      if (browserWidth <= 768) {
+        return false;
+      } else {
+        return true;
+      }
+    },
     btnClick() {
-      this.$router.push({name: 'courseware'});
+      if (this.isPC()) {
+        window.open(this.linkForKefu)
+      } else {
+        window.href = this.linkForKefu
+      }
+
     }
   },
 }
@@ -39,7 +52,12 @@ export default {
   color: #00b96b;
 
   @media (max-width: 768px) {
-    width: 44%;height:35px;line-height:35px;max-width: 120px;margin: 0 3%;font-size: 14px;
+    width: 44%;
+    height: 35px;
+    line-height: 35px;
+    max-width: 120px;
+    margin: 0 3%;
+    font-size: 14px;
   }
 }
 

+ 1 - 1
components/footer.vue

@@ -88,7 +88,7 @@
           },
           {
             name: '电话咨询',
-            url: 'tel:400-052-2130',
+            url: 'tel:400-099-0883',
           },
           {
             name: '在线咨询',

+ 1 - 1
components/sidebar.vue

@@ -5,7 +5,7 @@
       <!--        <p>在线资讯</p></a></li>-->
       <li>
         <div class="sidebar-default-box"><i></i>
-          <p>电话资讯</p></div>
+          <p>电话咨询</p></div>
         <div class="sidebar-hover-box">
           <span>服务热线</span><h4>400-099-0883</h4>
         </div>