浏览代码

添加在线咨询模块。

lighter 4 年之前
父节点
当前提交
942e7246dc

二进制
src/assets/hospital-service/online-consult.png


+ 7 - 0
src/router/index.js

@@ -253,6 +253,13 @@ export const constantRoutes = [
       title: '新型冠状病毒感染流行病学史问卷',
     },
   },
+  {
+    path: '/onlineConsult',
+    component: () => import('../views/hospital-service/online-consult/OnlineConsult.vue'),
+    meta: {
+      title: '在线咨询',
+    },
+  },
   {
     path: '/500',
     component: () => import('../views/500.vue'),

+ 5 - 0
src/views/hospital-service/HospitalServiceHome.vue

@@ -48,6 +48,11 @@
           <img src="../../assets/hospital-service/gouwuche.png" />
           <div class="icon-label">健康商城</div>
         </van-col>
+
+        <van-col span="6" @click="routeTo('/onlineConsult')">
+          <img src="../../assets/hospital-service/online-consult.png" />
+          <div class="icon-label">在线咨询</div>
+        </van-col>
       </van-row>
     </div>
     <div

+ 12 - 0
src/views/hospital-service/online-consult/OnlineConsult.vue

@@ -0,0 +1,12 @@
+<template>
+  <window-size>
+    <iframe src="http://kht.zoosnet.net/LR/Chatpre.aspx?id=KHT61952735&lng=cn" frameborder="0"></iframe>
+  </window-size>
+</template>
+
+<style scoped>
+iframe {
+  width: 100%;
+  height: calc(100% - 45px);
+}
+</style>