|
@@ -198,8 +198,38 @@
|
|
|
>
|
|
|
</div>
|
|
|
|
|
|
- <div class="course_list">
|
|
|
+ <div v-if="courseList.length" class="course_list">
|
|
|
+ <div class="course__header">
|
|
|
+ <div class="title">相关推荐</div>
|
|
|
+ </div>
|
|
|
+ <div class="course__body">
|
|
|
+ <!-- <p
|
|
|
+ v-if="
|
|
|
+ !courseList.length
|
|
|
+ "
|
|
|
+ class="text_align"
|
|
|
+ >
|
|
|
+ 无推荐课程
|
|
|
+ </p> -->
|
|
|
+ <ul class="list clearfix">
|
|
|
+ <template v-for="(item, index) in courseList">
|
|
|
+ <li class="course-item" :key="index">
|
|
|
+ <GoodsItem :item="item"></GoodsItem>
|
|
|
+ </li>
|
|
|
+ </template>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
|
|
|
+ <div class="pagination">
|
|
|
+ <el-pagination
|
|
|
+ @current-change="currentChangeCou"
|
|
|
+ background
|
|
|
+ layout="prev, pager, next"
|
|
|
+ :total="total"
|
|
|
+ :page-size="pageSize"
|
|
|
+ >
|
|
|
+ </el-pagination>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</section>
|
|
@@ -246,6 +276,7 @@
|
|
|
import Footer from "@/components/footer/index";
|
|
|
import Header from "@/components/header/index";
|
|
|
import ToolBar from "@/components/toolbar/index";
|
|
|
+import GoodsItem from "@/components/goodsItem/index";
|
|
|
import { mapGetters, mapActions } from "vuex";
|
|
|
export default {
|
|
|
name: "BankExplain",
|
|
@@ -253,6 +284,7 @@ export default {
|
|
|
Footer,
|
|
|
Header,
|
|
|
ToolBar,
|
|
|
+ GoodsItem,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -267,6 +299,10 @@ export default {
|
|
|
eachExamId: 0,
|
|
|
subscribeId: 0,
|
|
|
subscribeInfo: {},
|
|
|
+ courseList: [],
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ total: 0,
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -277,6 +313,7 @@ export default {
|
|
|
this.examId = this.$route.query.examId;
|
|
|
this.recordId = this.$route.query.recordId;
|
|
|
this.subscribeId = this.$route.query.subscribeId;
|
|
|
+ this.getcourList()
|
|
|
this.setSystemTime();
|
|
|
this.mockSubscribeInfo();
|
|
|
this.mockWrongRecordWrongNum();
|
|
@@ -285,6 +322,26 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(["setSystemTime"]),
|
|
|
+ getcourList() {
|
|
|
+ this.$axios({
|
|
|
+ url: '/apply/recommend/goodsList',
|
|
|
+ method: 'post',
|
|
|
+ data: {
|
|
|
+ examId: this.examId,
|
|
|
+ pageNum: this.pageNum,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ }
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.courseList = res.rows || []
|
|
|
+ this.total = res.total
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ currentChangeCou(val) {
|
|
|
+ this.pageNum = val
|
|
|
+ this.getcourList()
|
|
|
+ },
|
|
|
goLive() {
|
|
|
this.$router.push({
|
|
|
path: "/living-room/" + this.subscribeInfo.liveUrl,
|
|
@@ -732,6 +789,50 @@ export default {
|
|
|
margin: 0 4px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ .course_list {
|
|
|
+ .course {
|
|
|
+ background: #f5f7fa;
|
|
|
+ padding-top: 40px;
|
|
|
+
|
|
|
+ &__header {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+
|
|
|
+ .title {
|
|
|
+ background: url("~@/assets/video.png") no-repeat left center;
|
|
|
+ padding-left: 36px;
|
|
|
+ font-size: 24px;
|
|
|
+ font-family: YouSheBiaoTiHei;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #333333;
|
|
|
+ text-shadow: 0px 6px 6px rgba(249, 113, 13, 0.08);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ &__body {
|
|
|
+ .list {
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
+ .course-item {
|
|
|
+ float: left;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ .pagination {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ margin: 20px 0px;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.info {
|