Browse Source

外部链接不使用iframe,而是直接跳转

lighter 4 years ago
parent
commit
c172b18043
1 changed files with 6 additions and 5 deletions
  1. 6 5
      src/views/hospital-service/HospitalServiceHome.vue

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

@@ -40,7 +40,7 @@
           <img src="../../assets/hospital-service/wenjuandiaocha.png" />
           <div class="icon-label">问卷调查</div>
         </van-col>
-        <van-col span="6" @click="routeTo('/physicalExamination')">
+        <van-col span="6" @click="openExternalLink">
           <img src="../../assets/hospital-service/tijianbaogao.png" />
           <div class="icon-label">体检报告</div>
         </van-col>
@@ -171,11 +171,11 @@ export default {
       router.push(val)
     }
 
+    const openExternalLink = () => {
+      window.open('http://218.104.151.241:18888', '_self')
+    }
+
     const toVaccinateAppointment = () => {
-      // Dialog.alert({
-      //   title: '提示',
-      //   message: '本院新冠疫苗已无库存,暂时无法预约,敬请谅解。',
-      // })
       routeTo(filterPath('/covidVaccinate/', '/selectCovidVaccinatePatient'))
     }
     const loading = ref(false)
@@ -198,6 +198,7 @@ export default {
       portraitWidth,
       infoStyle,
       specialtyStyle,
+      openExternalLink,
       routeTo,
       toVaccinateAppointment,
       loadingStyle,