浏览代码

首页删除多余的注释代码
首页部分图标禁止跳转页面提示

DESKTOP-6ESHLVF\admin 4 年之前
父节点
当前提交
08dd883a81
共有 1 个文件被更改,包括 15 次插入60 次删除
  1. 15 60
      src/views/patient/reservation/specialist.vue

+ 15 - 60
src/views/patient/reservation/specialist.vue

@@ -2,7 +2,7 @@
 <template>
   <div class="main">
     <!-- banner -->
-    <div class="swiper">
+    <div class="swiper" @click="jumpTo()">
       <van-image
         :src="require('../../../assets/images/banner/banner1.png')"
         v-if="!images.length"
@@ -33,7 +33,7 @@
     </div>
 
     <!-- nav -->
-    <div class="nav">
+    <div class="nav" @click="jumpTo()">
       <!-- 大图标 -->
       <div class="icon_big">
         <div class="item" @click="jumpTo()"></div>
@@ -50,65 +50,16 @@
         <div class="item" @click="tiaozhuan()"></div>
         <div class="item" @click="jumpTo('surgery')"></div>
         <div class="item" @click="jumpTo('healthInquiry')"></div>
-        <div class="item" @click="goHome()"></div>
+        <div class="item" @click="jumpTo()"></div>
       </div>
       <!-- 推荐视频 -->
       <div
         class="recommends"
         @click="$router.push({ name: 'SearchVideo' })"
       ></div>
-      <!-- <div class="icon-big">
-        <div
-          class="item"
-          @click="jumpTo('nearbySpecialist', { tabIndex: 2 })"
-          style="width:2.7rem;height:2.4rem"
-      >-->
-      <!-- 拼优医活动 -->
-      <!-- </div>
-        <div
-          style="width:4.2rem;height:2.4rem;display:flex; flex-direction: column;justify-content:space-between;"
-      >-->
-      <!-- 坐诊到家 -->
-      <!-- <div
-            class="item"
-            @click="jumpTo('nearbySpecialist', { tabIndex: 1 })"
-            style="height:1.1rem"
-      ></div>-->
-      <!-- 找专家 || 专家问诊 -->
-      <!-- <div class="item" @click="jumpTo('home')" style="height:1.1rem"></div>
-        </div>
-      </div>-->
-
-      <!-- 小图标 -->
-      <!-- <div class="icon-small">
-        <div
-          class="item"
-          @click="jumpTo('//v.360lj.com/source.html?keyword=https://ue.github.com')"
-      ></div>-->
-      <!-- departmentId:科室id -->
-      <!-- <div class="item" @click="jumpTo('searchExpert',{departmentId:5004})"></div> -->
-      <!-- <div class="item" @click="jumpTo('surgery')"></div>
-        <div class="item" @click="jumpTo('healthInquiry')"></div>
-        <div class="item" @click="jumpTo()"></div>
-      </div>-->
+    
     </div>
 
-    <!-- 分割 -->
-    <!-- <div class="partition"></div> -->
-
-    <!-- 推荐视频 -->
-    <!-- <div class="recommend">
-      <div>
-        <div class="star">
-          <van-icon name="play-circle" color="#fff" />
-        </div>推荐视频
-      </div>
-      <div style="font-size: .2rem;color: #666666;" @click="$router.push({ name: 'healthyVideo' })">
-        查看更多
-        <van-icon name="arrow" />
-      </div>
-    </div>-->
-
     <ShortWaterfallFlow
       style="padding: .1rem .36rem"
       :isShow="true"
@@ -174,16 +125,20 @@ export default {
     },
     jumpTo(url, query = {}) {
       // url  => 字符串
-      if (!url) {
-        return this.$toast("功能正在开发中,敬请期待~~~");
-      }
-      if (url.search("http") >= 0) {
-        return (location.href = url);
-      }
-      this.$router.push({ name: url, query: query });
+
+      this.$toast("功能正在开发中,敬请期待~~~")
+
+      // if (!url) {
+      //   return this.$toast("功能正在开发中,敬请期待~~~");
+      // }
+      // if (url.search("http") >= 0) {
+      //   return (location.href = url);
+      // }
+      // this.$router.push({ name: url, query: query });
     },
     // 获取首页轮播图
     GetRotationChartList() {
+      return
       this.$http.GetRotationChartList(1).then(({ data }) => {
         if (data.isSuccess) {
           var arr = data.resultObject.filter((a) => !a.IsDelete);