Explorar el Código

首页跳转资讯类展开

shilipojs hace 2 años
padre
commit
8271517170

+ 7 - 3
src/views/career/information/index.vue

@@ -60,9 +60,9 @@ export default {
     }
   },
   watch: {
-    $route: function() {
-      this.getTypes()
-    }
+    // $route: function() {
+    //   this.getTypes()
+    // }
   },
   created() {
     this.getTypes()
@@ -87,6 +87,10 @@ export default {
         if (res.code == 200 || res.code == 0) {
           this.typeOptions = res.rows
           let query = this.$route.query?.name || this.prevData.type
+          let news = this.prevData?.news
+          if(news){
+            this.detailList(news)
+          }
           this.type = query || this.typeOptions.first()?.label
         } else {
           this.msgError(res.msg || 'career news types 请求异常')

+ 3 - 3
src/views/index/components/index-card-news.vue

@@ -8,7 +8,7 @@
               <i class="el-icon-alarm-clock"></i>
               <span class="ml3">{{ news.sendDate }}</span>
               <span class="ml10 fx-1 text-ellipsis new-title pointer"
-                    :title="news.title" @click="goNewsWithType(type)">
+                    :title="news.title" @click="goNewsWithType(type,news)">
                 {{ news.title }}</span>
             </div>
           </el-col>
@@ -68,9 +68,9 @@ export default {
       await this.loginCheck()
       this.transferTo(this.morePath)
     },
-    async goNewsWithType(type) {
+    async goNewsWithType(type,news) {
       await this.loginCheck()
-      this.transferTo(this.morePath, { type })
+      this.transferTo(this.morePath, { type,news })
     }
   }
 }

+ 3 - 3
src/views/index/components/index-card-top.vue

@@ -6,7 +6,7 @@
       <i class="el-icon-alarm-clock"></i>
       <span class="ml3">{{ news.sendDate }}</span>
       <span class="ml10 fx-1 text-ellipsis new-title pointer"
-            :title="news.title" @click="handleMore">
+            :title="news.title" @click="handleMore(news)">
                 {{ news.title }}</span>
     </div>
   </index-card>
@@ -48,9 +48,9 @@ export default {
         this.topNews = res.rows
       })
     },
-    async handleMore() {
+    async handleMore(news) {
       await this.loginCheck()
-      this.transferTo(this.morePath)
+      this.transferTo(this.morePath,{ news })
     }
   }
 }

+ 1 - 1
src/views/index/components/login-form-banner.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="fx-row fx-end-cen login-form-container" style="padding: 100px 0;"
-    :style="{background: `url(${$imgBase}index/login/banner.png)`} "
+    :style="{backgroundImage: `url(${$imgBase}index/login/banner.png)`} "
   >
     <!--    <el-image :src="require('@/assets/images/index/login/banner@2x.png')" class="width100" fit="contain"></el-image>-->
     <div class="bg-white" style="width:400px; padding:30px; margin-right: 150px;">

+ 0 - 6
src/views/questioncenter/components/learn-record.vue

@@ -143,12 +143,6 @@
               {{ (scope.row.rights / 10) * 100 }}%
             </template>
           </el-table-column>
-          <template slot="empty">
-            <div class="empty">
-              <img src="@/assets/images/icon_data.png" />
-              <span>没有信息</span>
-            </div>
-          </template>
         </el-table>
       </div>
     </div>