|
@@ -5,24 +5,21 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view >
|
|
<view >
|
|
|
<view v-show="current === 0">
|
|
<view v-show="current === 0">
|
|
|
- <view class="content" v-for="(item,index) in list" :key="index">
|
|
|
|
|
|
|
+ <view class="content" v-for="(item,index) in list1" :key="index" @click="jumpDetail(item)">
|
|
|
<view class="c_t1">
|
|
<view class="c_t1">
|
|
|
- 2021年5月1日
|
|
|
|
|
|
|
+ {{$method.timestampToTime(item.createTime)}}
|
|
|
</view>
|
|
</view>
|
|
|
<view>
|
|
<view>
|
|
|
<u-row >
|
|
<u-row >
|
|
|
<u-col span="5" >
|
|
<u-col span="5" >
|
|
|
<view style="padding: 5rpx;">
|
|
<view style="padding: 5rpx;">
|
|
|
- <image src="/static/banner.png" class="c_img"></image>
|
|
|
|
|
|
|
+ <image :src="$method.splitImgHost(item.coverUrl)" class="c_img"></image>
|
|
|
</view>
|
|
</view>
|
|
|
</u-col>
|
|
</u-col>
|
|
|
<u-col span="7" >
|
|
<u-col span="7" >
|
|
|
<view style="position: relative;height: 134rpx;padding-left: 10rpx;">
|
|
<view style="position: relative;height: 134rpx;padding-left: 10rpx;">
|
|
|
<view class="c_title">
|
|
<view class="c_title">
|
|
|
- 二级建造师市政公用工程
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="c_log">
|
|
|
|
|
- 上次看到 2.1 二级建造师章节标题
|
|
|
|
|
|
|
+ {{item.courseName}}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</u-col>
|
|
</u-col>
|
|
@@ -32,11 +29,54 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view v-show="current === 1">
|
|
<view v-show="current === 1">
|
|
|
- 选项卡2的内容
|
|
|
|
|
|
|
+ <view class="content" v-for="(item,index) in list2" :key="index" @click="jumpDetail(item)">
|
|
|
|
|
+ <view class="c_t1">
|
|
|
|
|
+ {{$method.timestampToTime(item.createTime)}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view>
|
|
|
|
|
+ <u-row >
|
|
|
|
|
+ <u-col span="5" >
|
|
|
|
|
+ <view style="padding: 5rpx;">
|
|
|
|
|
+ <image :src="$method.splitImgHost(item.coverUrl)" class="c_img"></image>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </u-col>
|
|
|
|
|
+ <u-col span="7" >
|
|
|
|
|
+ <view style="position: relative;height: 134rpx;padding-left: 10rpx;">
|
|
|
|
|
+ <view class="c_title">
|
|
|
|
|
+ {{item.bankName}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </u-col>
|
|
|
|
|
+ </u-row>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
<view v-show="current === 2">
|
|
<view v-show="current === 2">
|
|
|
- 选项卡3的内容
|
|
|
|
|
|
|
+ <view class="content" v-for="(item,index) in list3" :key="index" @click="jumpDetail(item)">
|
|
|
|
|
+ <view class="c_t1">
|
|
|
|
|
+ {{$method.timestampToTime(item.createTime)}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view>
|
|
|
|
|
+ <u-row >
|
|
|
|
|
+ <u-col span="5" >
|
|
|
|
|
+ <view style="padding: 5rpx;">
|
|
|
|
|
+ <image :src="$method.splitImgHost(item.coverUrl)" class="c_img"></image>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </u-col>
|
|
|
|
|
+ <u-col span="7" >
|
|
|
|
|
+ <view style="position: relative;height: 134rpx;padding-left: 10rpx;">
|
|
|
|
|
+ <view class="c_title">
|
|
|
|
|
+ {{item.name}}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </u-col>
|
|
|
|
|
+ </u-row>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view v-if="paramList[current].showStatus" style="text-align: center;margin-top: 24rpx;">到底啦~</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -51,19 +91,101 @@
|
|
|
'刷题',
|
|
'刷题',
|
|
|
'重点考点'
|
|
'重点考点'
|
|
|
],
|
|
],
|
|
|
- list:[1,1,1,1,1,1,1,1,1,1,1],
|
|
|
|
|
|
|
+ list1: [],
|
|
|
|
|
+ list2: [],
|
|
|
|
|
+ list3: [],
|
|
|
|
|
+ paramList: [
|
|
|
|
|
+ {
|
|
|
|
|
+ pageNum: 1,
|
|
|
|
|
+ pageSize: 10,
|
|
|
|
|
+ total: 0,
|
|
|
|
|
+ showStatus: 0
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ pageNum: 1,
|
|
|
|
|
+ pageSize: 10,
|
|
|
|
|
+ total: 0,
|
|
|
|
|
+ showStatus: 0
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ pageNum: 1,
|
|
|
|
|
+ pageSize: 10,
|
|
|
|
|
+ total: 0,
|
|
|
|
|
+ showStatus: 0
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
|
-
|
|
|
|
|
|
|
+ this.initList()
|
|
|
},
|
|
},
|
|
|
onShow(){
|
|
onShow(){
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ jumpDetail(item) {
|
|
|
|
|
+ if (this.current == 0) {
|
|
|
|
|
+ this.$navTo.togo('/pages2/course/detail', {
|
|
|
|
|
+ id: item.courseId
|
|
|
|
|
+ });
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.current == 1) {
|
|
|
|
|
+ this.$navTo.togo('/pages2/bank/detail', {
|
|
|
|
|
+ id: item.bankId
|
|
|
|
|
+ });
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.current == 2) {
|
|
|
|
|
+ this.$navTo.togo('/pages2/course/keynote', {
|
|
|
|
|
+ id: item.fileId
|
|
|
|
|
+ });
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ initList() {
|
|
|
|
|
+ this.courseList();
|
|
|
|
|
+ this.bankList();
|
|
|
|
|
+ this.noteList();
|
|
|
|
|
+ },
|
|
|
onClickItem(e){
|
|
onClickItem(e){
|
|
|
this.current = e.currentIndex
|
|
this.current = e.currentIndex
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ //课程
|
|
|
|
|
+ courseList() {
|
|
|
|
|
+ var self = this;
|
|
|
|
|
+ var param = this.paramList[0];
|
|
|
|
|
+ this.$api.courseCollectList(param).then(res => {
|
|
|
|
|
+ self.paramList[0].total = res.data.total;
|
|
|
|
|
+ self.list1.push.apply(self.list1, res.data.rows);
|
|
|
|
|
+ if (self.list1.length === res.data.total) {
|
|
|
|
|
+ self.paramList[0].showStatus = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ //题库
|
|
|
|
|
+ bankList() {
|
|
|
|
|
+ var self = this;
|
|
|
|
|
+ var param = this.paramList[1];
|
|
|
|
|
+ this.$api.bankCollectList(param).then(res => {
|
|
|
|
|
+ self.paramList[1].total = res.data.total;
|
|
|
|
|
+ self.list2.push.apply(self.list2, res.data.rows);
|
|
|
|
|
+ if (self.list2.length === res.data.total) {
|
|
|
|
|
+ self.paramList[1].showStatus = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ //考试重点
|
|
|
|
|
+ noteList() {
|
|
|
|
|
+ var self = this;
|
|
|
|
|
+ var param = this.paramList[2];
|
|
|
|
|
+ this.$api.courseNoteList(param).then(res => {
|
|
|
|
|
+ self.paramList[2].total = res.data.total;
|
|
|
|
|
+ self.list3.push.apply(self.list3, res.data.rows);
|
|
|
|
|
+ if (self.list3.length === res.data.total) {
|
|
|
|
|
+ self.paramList[2].showStatus = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
}
|
|
}
|