浏览代码

首页资讯类跳转

shilipojs 2 年之前
父节点
当前提交
591e0c8968

+ 1 - 1
src/views/career/index.vue

@@ -32,7 +32,7 @@
           </el-col>
         </el-row>
       </index-card>
-      <index-card-news-single class="index-block mt20" type="高考政策" morePath="/fuzhu/newGaokaoNews"  />
+      <index-card-news-single class="index-block mt20" type="填报技巧" morePath="/fuzhu/newGaokaoNews"  />
     </div>
   </div>
 </template>

+ 7 - 0
src/views/career/information/singleStroke.vue

@@ -25,8 +25,10 @@ import InfoDetail from "../components/infoDetail.vue";
 import infoList from "../components/infoList.vue";
 import InfoSample from "../components/infoSample.vue";
 import * as career from "@/api/webApi/career-news";
+import transferMixin from '@/components/mx-transfer-mixin'
 
 export default {
+  mixins:[transferMixin],
   components: { infoList, InfoSample, InfoDetail },
   data() {
     return {
@@ -45,6 +47,11 @@ export default {
     const lastSubPath = subPaths[subPaths.length - 1]
     const typeKey = lastSubPath.split("_")[lastSubPath.split("_").length - 1]
     this.type = this.category[typeKey]
+    let news = this.prevData?.news
+    if(news){
+      console.log(news)
+      this.detailList(news)
+    }
   },
   methods: {
     detailList(item) {

+ 3 - 3
src/views/index/components/index-card-news-single.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="goNewsWithType(type)">
+                    :title="news.title" @click="goNewsWithType(type,news)">
                 {{ news.title }}</span>
             </div>
           </el-col>
@@ -57,9 +57,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 })
     }
   }
 }

+ 2 - 2
src/views/index/components/index-card-subject-query.vue

@@ -25,11 +25,11 @@ export default {
       list: [{
         src: `${this.$imgBase}index/login/banner_query_major@2x.png`,
         path: '/career/subject/subjectChoice',
-        // title: '由科目选专业'
+        title: '由科目选专业'
       }, {
         src: `${this.$imgBase}index/login/banner_query_group@2x.png`,
         path: '/career/subject/majorChoice',
-        // title: '由专业选科目'
+        title: '由专业选科目'
       }]
     }
   },

+ 1 - 1
src/views/questioncenter/main.vue

@@ -6,7 +6,7 @@
     </div>
     <div class="fx-column fx-cen-cen pb20">
       <index-card title="智能练习" class="mt20 index-block">
-        <mx-image-wrap titlePostion="center" :list="zhineng"></mx-image-wrap>
+        <mx-image-wrap titlePostion="center" style="color:white" :list="zhineng"></mx-image-wrap>
       </index-card>
       <index-card title="精品试卷" class="mt20 index-block" more-text="更多" @more="more('/question-center/bestPaper')">
         <el-tabs type="card">