|
@@ -278,7 +278,7 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!-- 我的题库 -->
|
|
<!-- 我的题库 -->
|
|
- <view class="my_courses">
|
|
|
|
|
|
+ <!-- <view class="my_courses">
|
|
<text class="titles">我的题库</text>
|
|
<text class="titles">我的题库</text>
|
|
<view class="bottoms">
|
|
<view class="bottoms">
|
|
<navigator hover-class="none" url="/pages2/subject/collect">
|
|
<navigator hover-class="none" url="/pages2/subject/collect">
|
|
@@ -346,7 +346,7 @@
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
</view>
|
|
</view>
|
|
<!-- 没有学习的课程 -->
|
|
<!-- 没有学习的课程 -->
|
|
<view v-if="!allLoading && !allCourse" class="no_datas">
|
|
<view v-if="!allLoading && !allCourse" class="no_datas">
|
|
@@ -452,7 +452,6 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</u-popup>
|
|
</u-popup>
|
|
- <!-- <tab-bar v-model="current" :list="tabbarlist" :mid-button="true" :mid-button-size="50" class="tab_items"></tab-bar> -->
|
|
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -480,12 +479,12 @@ export default {
|
|
gradeValue: -1,
|
|
gradeValue: -1,
|
|
sysTime: 0,
|
|
sysTime: 0,
|
|
courseLists: [], // 课程列表
|
|
courseLists: [], // 课程列表
|
|
- questionLists: [], // 题库列表
|
|
|
|
- paramQ: {
|
|
|
|
- pageNum: 1,
|
|
|
|
- pageSize: 50
|
|
|
|
- },
|
|
|
|
- queitemIndex:'',
|
|
|
|
|
|
+ // questionLists: [], // 题库列表
|
|
|
|
+ // paramQ: {
|
|
|
|
+ // pageNum: 1,
|
|
|
|
+ // pageSize: 50
|
|
|
|
+ // },
|
|
|
|
+ // queitemIndex:'',
|
|
livingLists: [], // 直播列表
|
|
livingLists: [], // 直播列表
|
|
allLoading: false, // 加载样式
|
|
allLoading: false, // 加载样式
|
|
current: 2,
|
|
current: 2,
|
|
@@ -507,7 +506,7 @@ export default {
|
|
computed: {
|
|
computed: {
|
|
...mapGetters(['userInfo']),
|
|
...mapGetters(['userInfo']),
|
|
allCourse() {
|
|
allCourse() {
|
|
- return this.courseLists.length || this.questionLists.length || this.livingLists.length ? true : false
|
|
|
|
|
|
+ return this.courseLists.length || this.livingLists.length ? true : false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -567,9 +566,9 @@ export default {
|
|
// 查询直播课
|
|
// 查询直播课
|
|
getCourseLiveQues() {
|
|
getCourseLiveQues() {
|
|
this.allLoading = true
|
|
this.allLoading = true
|
|
|
|
+ // this.$api.listUserFreeUnionBuyGoodsList(this.paramQ), // 查询用户拥有免费+自购题库商品 /bank/question/listUserFreeUnionBuyGoodsList
|
|
let arrs = [
|
|
let arrs = [
|
|
this.$api.listUserVideoLive(this.paramC), // 查询用户拥有视频+直播商品 /goods/listUserVideoLive
|
|
this.$api.listUserVideoLive(this.paramC), // 查询用户拥有视频+直播商品 /goods/listUserVideoLive
|
|
- this.$api.listUserFreeUnionBuyGoodsList(this.paramQ), // 查询用户拥有免费+自购题库商品 /bank/question/listUserFreeUnionBuyGoodsList
|
|
|
|
this.$api.getgoodsLiveList({
|
|
this.$api.getgoodsLiveList({
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 3 // 默认3条
|
|
pageSize: 3 // 默认3条
|
|
@@ -578,17 +577,17 @@ export default {
|
|
wx.stopPullDownRefresh()
|
|
wx.stopPullDownRefresh()
|
|
Promise.all(arrs).then((res) => {
|
|
Promise.all(arrs).then((res) => {
|
|
// if (res.data.code == 200) {
|
|
// if (res.data.code == 200) {
|
|
- const [{ data: res1}, { data: res2}, {data: res3}] = res
|
|
|
|
|
|
+ const [{ data: res1}, { data: res2}] = res
|
|
if (res1.code == 200) {
|
|
if (res1.code == 200) {
|
|
this.courseLists = res1.rows || []
|
|
this.courseLists = res1.rows || []
|
|
}
|
|
}
|
|
|
|
+ // if (res2.code == 200) {
|
|
|
|
+ // this.questionLists = res2.rows || []
|
|
|
|
+ // }
|
|
if (res2.code == 200) {
|
|
if (res2.code == 200) {
|
|
- this.questionLists = res2.rows || []
|
|
|
|
- }
|
|
|
|
- if (res3.code == 200) {
|
|
|
|
- this.livingLists = res3.rows || []
|
|
|
|
|
|
+ this.livingLists = res2.rows || []
|
|
} else {
|
|
} else {
|
|
- this.$u.toast(res3.msg)
|
|
|
|
|
|
+ this.$u.toast(res2.msg)
|
|
}
|
|
}
|
|
this.allLoading = false
|
|
this.allLoading = false
|
|
// }
|
|
// }
|
|
@@ -895,21 +894,6 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- // 进入练习
|
|
|
|
- studyques(item,index){
|
|
|
|
- this.queitemIndex = index;
|
|
|
|
- let sysTime = this.$method.timest()
|
|
|
|
- if (item.serviceStartTime && item.serviceEndTime && (sysTime <= item.serviceStartTime || sysTime >= item.serviceEndTime)) {
|
|
|
|
- uni.showToast({
|
|
|
|
- icon: 'none',
|
|
|
|
- title: '不在学习服务期,不能进入学习'
|
|
|
|
- })
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url:'/pages2/bank/question_detail?id='+item.goodsId+'&orderGoodsId='+item.orderGoodsId
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
radioGroupChange(e) {
|
|
radioGroupChange(e) {
|
|
// console.log(e)
|
|
// console.log(e)
|
|
},
|
|
},
|
|
@@ -1010,7 +994,6 @@ export default {
|
|
this.appointTestShow = false
|
|
this.appointTestShow = false
|
|
},
|
|
},
|
|
appointment(item, appoint) {
|
|
appointment(item, appoint) {
|
|
- console.log('====', item.examApplyGoodsList, this.userInfo)
|
|
|
|
this.appointItemIndex = item
|
|
this.appointItemIndex = item
|
|
if (item.examApplyGoodsList.length > 1) { // 多个考试预约
|
|
if (item.examApplyGoodsList.length > 1) { // 多个考试预约
|
|
this.appointTestList = item.examApplyGoodsList
|
|
this.appointTestList = item.examApplyGoodsList
|
|
@@ -1021,7 +1004,6 @@ export default {
|
|
this.appoint_an(item, appoint_item)
|
|
this.appoint_an(item, appoint_item)
|
|
},
|
|
},
|
|
appoint_an(item, appoint) {
|
|
appoint_an(item, appoint) {
|
|
- // console.log('==appoint=', appoint)
|
|
|
|
var data = {
|
|
var data = {
|
|
goodsId: item.goodsId,
|
|
goodsId: item.goodsId,
|
|
gradeId: item.gradeId,
|
|
gradeId: item.gradeId,
|