|
@@ -1,11 +1,129 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
- 普通AI助学 微课视频
|
|
|
+ <div class="app-container">
|
|
|
+ <el-card class="mb20">
|
|
|
+ <mx-condition ref="condition" :query-params="queryParams" :require-fields="requireFields" @query="handleQuery"
|
|
|
+ @invalid="handleInvalidQuery"
|
|
|
+ ></mx-condition>
|
|
|
+ </el-card>
|
|
|
+ <el-card class="box-card">
|
|
|
+ <div slot="header">
|
|
|
+ <mx-search-group justify="end" :span="6" v-model="sectionName" placeholder="请输入搜索内容" @search="getList">
|
|
|
+ </mx-search-group>
|
|
|
+ </div>
|
|
|
+ <el-card class="video_content" v-if="videoList.length">
|
|
|
+ <el-row :span="24">
|
|
|
+ <el-col
|
|
|
+ :span="6"
|
|
|
+ class="video_item"
|
|
|
+ v-for="item in videoList"
|
|
|
+ :key="item.id"
|
|
|
+ >
|
|
|
+ <img
|
|
|
+ :src="item.img"
|
|
|
+ alt=""
|
|
|
+ @click="
|
|
|
+ toVideoDetail(
|
|
|
+ item.pack_id,
|
|
|
+ item.chapter_id,
|
|
|
+ item.id,
|
|
|
+ item.section_aliId,
|
|
|
+ item.aliIdType
|
|
|
+ )
|
|
|
+ "
|
|
|
+ />
|
|
|
+ <p class="fx-row jc-between ai-center">
|
|
|
+ <span> {{ item.section_name }} </span>
|
|
|
+ <span class="pointer iconfont icon-shoucang"></span>
|
|
|
+ </p>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <!-- 分页 -->
|
|
|
+ <div class="split_page">
|
|
|
+ <pagination
|
|
|
+ v-show="total > 0"
|
|
|
+ :total="total"
|
|
|
+ :page.sync="pageForm.pageNum"
|
|
|
+ :limit.sync="pageForm.pageSize"
|
|
|
+ :pageSizes="[16,32]"
|
|
|
+ @pagination="getVideoList"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+ <evaluation-empty v-else/>
|
|
|
+ </el-card>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import MxSearchGroup from '@/components/MxSearch/mx-search-group'
|
|
|
+import MxCondition from '@/components/MxCondition/mx-condition'
|
|
|
+import { videoList } from '@/api/webApi/webVideo'
|
|
|
|
|
|
+export default {
|
|
|
+ components: { MxSearchGroup, MxCondition },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ pageForm: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 16
|
|
|
+ },
|
|
|
+ videoList:[],
|
|
|
+ sectionName: '',
|
|
|
+ queryParams: {
|
|
|
+ videoTypeFixed: 0,
|
|
|
+ videoCourseFixed: ''
|
|
|
+ },
|
|
|
+ requireFields: ['videoCourseFixed']
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ toVideoDetail(id, chapter_id, childrenId, section_aliId, aliIdType) {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/video_course/detail', query: {
|
|
|
+ packId: id,
|
|
|
+ chapter_id: chapter_id,
|
|
|
+ childrenId: childrenId,
|
|
|
+ section_aliId,
|
|
|
+ aliIdType: aliIdType
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleInvalidQuery() {
|
|
|
+
|
|
|
+ },
|
|
|
+ getList() {
|
|
|
+
|
|
|
+ },
|
|
|
+ handleQuery() {
|
|
|
+ this.getList()
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</script>
|
|
|
<style scoped>
|
|
|
+.video_content p {
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+ text-align: left;
|
|
|
+ height: 27px;
|
|
|
+ font-size: 14px;
|
|
|
+ font-family: PingFangSC-Regular, PingFang SC;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #343434;
|
|
|
+ line-height: 20px;
|
|
|
+ margin-top: 11px;
|
|
|
+}
|
|
|
+
|
|
|
+.video_item > img {
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
|
|
|
+.video_content .el-col {
|
|
|
+ margin-bottom: 42px;
|
|
|
+}
|
|
|
+.video_item{
|
|
|
+ padding-right: 22px;
|
|
|
+}
|
|
|
+.video_item > img {
|
|
|
+ width: 100%;
|
|
|
+}
|
|
|
</style>
|