|  | @@ -1,20 +1,63 @@
 | 
	
		
			
				|  |  |  <template>
 | 
	
		
			
				|  |  | -  <index-card title="生涯视频" more-text="更多" @more="handleMore"></index-card>
 | 
	
		
			
				|  |  | +  <index-card title="生涯视频" more-text="更多" @more="handleMore">
 | 
	
		
			
				|  |  | +    <index-card-content :list="list" :line-size="lineSize">
 | 
	
		
			
				|  |  | +      <template #default="{item}">
 | 
	
		
			
				|  |  | +        <index-image-item v-bind="item"></index-image-item>
 | 
	
		
			
				|  |  | +      </template>
 | 
	
		
			
				|  |  | +    </index-card-content>
 | 
	
		
			
				|  |  | +  </index-card>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  |  import IndexCard from '@/views/index/components/index-card'
 | 
	
		
			
				|  |  | +import * as career from '@/api/webApi/career-course'
 | 
	
		
			
				|  |  | +import IndexCardContent from '@/views/index/components/index-card-content'
 | 
	
		
			
				|  |  | +import IndexImageItem from '@/views/index/components/index-image-item'
 | 
	
		
			
				|  |  | +import transferMixin from '@/components/mx-transfer-mixin'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  | +  mixins: [transferMixin],
 | 
	
		
			
				|  |  |    name: 'index-card-career',
 | 
	
		
			
				|  |  | -  components: { IndexCard },
 | 
	
		
			
				|  |  | +  components: { IndexImageItem, IndexCardContent, IndexCard },
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  | -      morePath: '',
 | 
	
		
			
				|  |  | -      list: []
 | 
	
		
			
				|  |  | +      morePath: '/new-gaokao/careerVideo',
 | 
	
		
			
				|  |  | +      list: [],
 | 
	
		
			
				|  |  | +      lineSize: 6,
 | 
	
		
			
				|  |  | +      queryParams: {
 | 
	
		
			
				|  |  | +        pageNum: 1,
 | 
	
		
			
				|  |  | +        pageSize: 12,
 | 
	
		
			
				|  |  | +        type: 0
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | +  mounted() {
 | 
	
		
			
				|  |  | +    this.getList()
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  | +    getList() {
 | 
	
		
			
				|  |  | +      career.listNoToken(this.queryParams).then(res => {
 | 
	
		
			
				|  |  | +        this.list = res['rows']?.map((item, idx) => {
 | 
	
		
			
				|  |  | +          const path = '/career/plan/detail'
 | 
	
		
			
				|  |  | +          const nextParams = {
 | 
	
		
			
				|  |  | +            id: item.id,
 | 
	
		
			
				|  |  | +            aliid: item.aliid,
 | 
	
		
			
				|  |  | +            aliIdType: item.aliIdType,
 | 
	
		
			
				|  |  | +            name: item.name,
 | 
	
		
			
				|  |  | +            count: item.plays,
 | 
	
		
			
				|  |  | +            img: item.pictUrl
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          return {
 | 
	
		
			
				|  |  | +            title: item.name,
 | 
	
		
			
				|  |  | +            src: item.pictUrl,
 | 
	
		
			
				|  |  | +            path: path,
 | 
	
		
			
				|  |  | +            nextData: nextParams,
 | 
	
		
			
				|  |  | +            class: idx >= this.lineSize ? ['mt15'] : [],
 | 
	
		
			
				|  |  | +            titleClasses: ['width100', 'fx-row', 'f-666', 'pf', 'f14', 'text-ellipsis']
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      async handleMore() {
 | 
	
		
			
				|  |  |        await this.loginCheck()
 | 
	
		
			
				|  |  |        this.transferTo(this.morePath)
 |