|  | @@ -11,13 +11,14 @@
 | 
	
		
			
				|  |  |        :changeKeycode="changeKeycode"
 | 
	
		
			
				|  |  |        :keycode="keycode"
 | 
	
		
			
				|  |  |        title="搜索结果"
 | 
	
		
			
				|  |  | +      :classilfyID="classilfyID"
 | 
	
		
			
				|  |  |      />
 | 
	
		
			
				|  |  |      <!-- <div class="top">
 | 
	
		
			
				|  |  |        <div class="title">SEARCH RESULT</div>
 | 
	
		
			
				|  |  |      </div> -->
 | 
	
		
			
				|  |  |      <div class="main">
 | 
	
		
			
				|  |  |        <!-- 搜索结果分类 -->
 | 
	
		
			
				|  |  | -      <!-- <div class="classilfy">
 | 
	
		
			
				|  |  | +      <div class="classilfy">
 | 
	
		
			
				|  |  |          <div
 | 
	
		
			
				|  |  |            v-for="(item, i) in classilfyList"
 | 
	
		
			
				|  |  |            :key="i + item"
 | 
	
	
		
			
				|  | @@ -26,7 +27,7 @@
 | 
	
		
			
				|  |  |          >
 | 
	
		
			
				|  |  |            {{ item }}
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  | -      </div> -->
 | 
	
		
			
				|  |  | +      </div>
 | 
	
		
			
				|  |  |        <template v-if="dataList.total_count != 0">
 | 
	
		
			
				|  |  |          <div class="class_list" v-if="dataList">
 | 
	
		
			
				|  |  |            <!-- 根据课程和教材进行分别传值 -->
 | 
	
	
		
			
				|  | @@ -130,6 +131,7 @@ export default {
 | 
	
		
			
				|  |  |        loading: false,
 | 
	
		
			
				|  |  |        classilfyList: ["课程", "教材"],
 | 
	
		
			
				|  |  |        classilfyIndex: 0,
 | 
	
		
			
				|  |  | +      classilfyID: null,
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    computed: {
 | 
	
	
		
			
				|  | @@ -231,14 +233,15 @@ export default {
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    created() {
 | 
	
		
			
				|  |  |      this.keycode = this.$route.query.keycode;
 | 
	
		
			
				|  |  | +    this.classilfyID = this.$route.query.id;
 | 
	
		
			
				|  |  |      // classilfyIndex
 | 
	
		
			
				|  |  | -    if (this.$route.query.id == "COURSE") {
 | 
	
		
			
				|  |  | -      this.classilfyIndex = 0;
 | 
	
		
			
				|  |  | -      this.getData("课程");
 | 
	
		
			
				|  |  | -    } else {
 | 
	
		
			
				|  |  | -      this.getData("教材");
 | 
	
		
			
				|  |  | -      this.classilfyIndex = 1;
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | +    // if (this.$route.query.id == "COURSE") {
 | 
	
		
			
				|  |  | +    this.classilfyIndex = 0;
 | 
	
		
			
				|  |  | +    this.getData("课程");
 | 
	
		
			
				|  |  | +    // } else {
 | 
	
		
			
				|  |  | +    //   this.getData("教材");
 | 
	
		
			
				|  |  | +    //   this.classilfyIndex = 1;
 | 
	
		
			
				|  |  | +    // }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |  };
 | 
	
		
			
				|  |  |  </script>
 |