|
@@ -15,7 +15,22 @@
|
|
|
<view class="had_courses">
|
|
|
<!-- 直播 -->
|
|
|
<view class="lives">
|
|
|
-
|
|
|
+ <view class="live_item">
|
|
|
+ <view class="live_con">
|
|
|
+ <view class="live_status">
|
|
|
+ <image src="/static/learn/living.png" class="liv_icon"></image>
|
|
|
+ <!-- <image src="/static/learn/wlive.png" class="my_bg"></image> -->
|
|
|
+ <text class="status_s">正在直播中...</text>
|
|
|
+ <view class="look_bt">点击观看</view>
|
|
|
+ </view>
|
|
|
+ <view class="liv_time">
|
|
|
+ 7月19日 15:00
|
|
|
+ </view>
|
|
|
+ <view class="liv_title">一级建造师《水利实务》拔高训练直播</view>
|
|
|
+ </view>
|
|
|
+ <!-- <image src="/static/learn/wlive_bg.png" class="my_bg"></image> -->
|
|
|
+ <image src="/static/learn/living_bg.png" class="my_bg"></image>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<!-- 我的课程 -->
|
|
|
<view class="my_courses">
|
|
@@ -172,7 +187,7 @@ export default {
|
|
|
url:'/pages/course/index'
|
|
|
})
|
|
|
},
|
|
|
- // 商品/课程列表
|
|
|
+ // 查询用户拥有的商品/课程列表/course/goodsList
|
|
|
getcourseList() {
|
|
|
this.$api.courseGoodsList(this.paramC).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
@@ -196,12 +211,15 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
async studyIn(v, i, item, index) {
|
|
|
+ console.log('item', item)
|
|
|
this.activeItem = item
|
|
|
if (item.interfaceAccountId > 0) { //学习账号已开通
|
|
|
|
|
|
if (item.learnStatus == 1) { //跳转第三方h5
|
|
|
// this.showMark = true;
|
|
|
+ console.log('dshfisdgfo')
|
|
|
uni.navigateTo({
|
|
|
+
|
|
|
url: `/pages3/polyv/detail?goodsId=${item.goodsId}&orderGoodsId=${item.orderGoodsId}&isOther=1`
|
|
|
})
|
|
|
return;
|
|
@@ -261,16 +279,17 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- var confirmDetail = true
|
|
|
- if (item.educationName == '继续教育') {
|
|
|
- if(item.officialName && item.businessName == '二级' && item.projectName == '建造师') {
|
|
|
- confirmDetail = await this.userConfirmInfoDetail()
|
|
|
- }
|
|
|
- }
|
|
|
+ // 这里的一建先不用
|
|
|
+ // var confirmDetail = true
|
|
|
+ // if (item.educationName == '继续教育') {
|
|
|
+ // if(item.officialName && item.businessName == '二级' && item.projectName == '建造师') {
|
|
|
+ // confirmDetail = await this.userConfirmInfoDetail()
|
|
|
+ // }
|
|
|
+ // }
|
|
|
|
|
|
- if(!confirmDetail) {
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if(!confirmDetail) {
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
|
|
|
// //内部系统
|
|
|
// if (item.interfacePushId > 0 && item.officialStatus != 1) {
|
|
@@ -281,17 +300,16 @@ export default {
|
|
|
// return;
|
|
|
// }
|
|
|
|
|
|
+ // 这里的一建先不用
|
|
|
+ // this.itemIndex = index;
|
|
|
+ // if (item.gradeStatus == 1 && item.status == 1 && (item.serviceEndTime > this.sysTime) && (item
|
|
|
+ // .classEndTime && (item.classEndTime < this.sysTime)) && (item.periodStatus == 0 || item
|
|
|
+ // .periodStatus == -1) && item.studyCount > 0) {
|
|
|
+ // this.selectClass(item, index);
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
|
|
|
- this.itemIndex = index;
|
|
|
-
|
|
|
- if (item.gradeStatus == 1 && item.status == 1 && (item.serviceEndTime > this.sysTime) && (item
|
|
|
- .classEndTime && (item.classEndTime < this.sysTime)) && (item.periodStatus == 0 || item
|
|
|
- .periodStatus == -1) && item.studyCount > 0) {
|
|
|
- this.selectClass(item, index);
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
+ // /course/goodsRebuildStatus查询用户商品重修状态
|
|
|
let rebuildStatus = await this.courseGoodsRebuildStatus(item.goodsId, item.gradeId)
|
|
|
|
|
|
if (rebuildStatus == 0) {
|
|
@@ -318,8 +336,8 @@ export default {
|
|
|
})
|
|
|
} else if (res.data.code == 500) { //可以学习
|
|
|
|
|
|
- if (item.courseNum == 1) {
|
|
|
-
|
|
|
+ if (item.courseNum == 1) { // 课程数量
|
|
|
+ // /course/courseList查询商品下的课程列表
|
|
|
this.$api.courseCourseList({
|
|
|
pageNum: 1,
|
|
|
pageSize: 1,
|
|
@@ -465,238 +483,5 @@ page {
|
|
|
}
|
|
|
</style>
|
|
|
<style lang="scss" scoped>
|
|
|
-.contents {
|
|
|
- width: 100%;
|
|
|
- .diatance {
|
|
|
- width: 100%;
|
|
|
- height: 85rpx;
|
|
|
- background-color: #007AFF;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- margin-top: 8rpx;
|
|
|
- .clock {
|
|
|
- width: 44rpx;
|
|
|
- height: 41rpx;
|
|
|
- margin: 0rpx 22rpx 0rpx 65rpx;
|
|
|
- }
|
|
|
- >text {
|
|
|
- color: #fff;
|
|
|
- font-size: 28rpx;
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-.had_courses{
|
|
|
- width: 100%;
|
|
|
- padding: 39rpx 24rpx 31rpx;
|
|
|
- .lives {
|
|
|
- widows: 100%;
|
|
|
- height: 150rpx;
|
|
|
- }
|
|
|
-}
|
|
|
-.my_courses {
|
|
|
-
|
|
|
- .titles {
|
|
|
- font-size: 32rpx;
|
|
|
- color: #333333;
|
|
|
- margin: 44rpx 0rpx 24rpx 43rpx;
|
|
|
- font-weight: bold;
|
|
|
- display: block;
|
|
|
- }
|
|
|
- .course_item {
|
|
|
- width: 100%;
|
|
|
- height: 278rpx;
|
|
|
- background: #FFFFFF;
|
|
|
- box-shadow: 0rpx 0rpx 20rpx 1rpx rgba(1,99,235,0.1000);
|
|
|
- border-radius: 24rpx;
|
|
|
- padding: 29rpx 29rpx 20rpx 24rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- margin-bottom: 20rpx;
|
|
|
- }
|
|
|
- .lefts {
|
|
|
- width: 202rpx;
|
|
|
- height: 223rpx;
|
|
|
- border-radius: 12rpx;
|
|
|
- margin-right: 35rpx;
|
|
|
- position: relative;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- border: 1rpx solid #ddd;
|
|
|
- .lefet_img {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- display: block;
|
|
|
- }
|
|
|
- .live_icon {
|
|
|
- width: 65rpx;
|
|
|
- height: 35rpx;
|
|
|
- line-height: 35rpx;
|
|
|
- border-radius: 22rpx 0rpx 22rpx 0rpx;
|
|
|
- background-color: #FFB102;
|
|
|
- color: #fff;
|
|
|
- font-size: 20rpx;
|
|
|
- text-align: center;
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- }
|
|
|
- }
|
|
|
- .rights {
|
|
|
- width: 400rpx;
|
|
|
- height: 223rpx;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- justify-content: space-between;;
|
|
|
- .cou_titles {
|
|
|
- margin-top: 14rpx;
|
|
|
- color: #333333;
|
|
|
- font-size: 28rpx;
|
|
|
- font-weight: bold;
|
|
|
- width: 100%;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- white-space: nowrap;
|
|
|
- }
|
|
|
- .learn_ranges {
|
|
|
- color: #999;
|
|
|
- font-size: 24rpx;
|
|
|
- margin-top: 24rpx;
|
|
|
- .l_range {
|
|
|
- width: 20rpx;
|
|
|
- height: 24rpx;
|
|
|
- margin-right: 9rpx;
|
|
|
- }
|
|
|
- .l_time {
|
|
|
- color: #333;
|
|
|
- }
|
|
|
- }
|
|
|
- .learn_progress {
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
- .progress_up {
|
|
|
- font-size: 24rpx;
|
|
|
- // font-weight: 400;
|
|
|
- color: #999999;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- .wk_icon {
|
|
|
- width: 24rpx;
|
|
|
- height: 24rpx;
|
|
|
- margin-right: 8rpx;
|
|
|
- }
|
|
|
- }
|
|
|
- .progress_down {
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
- }
|
|
|
- .enter_into {
|
|
|
- width: 165rpx;
|
|
|
- height: 48rpx;
|
|
|
- line-height: 48rpx;
|
|
|
- background: #FFB102;
|
|
|
- border-radius: 0rpx 16rpx 16rpx 16rpx;
|
|
|
- font-size: 24rpx;
|
|
|
- font-weight: 400;
|
|
|
- color: #FFFFFF;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
- }
|
|
|
- // 收藏集,做题记录
|
|
|
- .bottoms {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- margin-bottom: 32rpx;
|
|
|
- .item {
|
|
|
- width: 335rpx;
|
|
|
- &.collect {
|
|
|
- position: relative;
|
|
|
- font-size: 32rpx;
|
|
|
- color: #FFFFFF;
|
|
|
- height: 240rpx;
|
|
|
- border-radius: 24rpx;
|
|
|
- padding:32rpx;
|
|
|
-
|
|
|
- .text {
|
|
|
- position:relative;
|
|
|
- z-index: 10;
|
|
|
- font-size: 32rpx;
|
|
|
- font-weight: bold;
|
|
|
- color: #FFFFFF;
|
|
|
- }
|
|
|
-
|
|
|
- .img {
|
|
|
- position:absolute;
|
|
|
- left:0;
|
|
|
- top:0;
|
|
|
- width:100%;
|
|
|
- height:100%;
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- &.list {
|
|
|
- .list-in {
|
|
|
- position:relative;
|
|
|
- width: 335rpx;
|
|
|
- height: 112rpx;
|
|
|
- background: #007AFF;
|
|
|
- border-radius: 24rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- font-size: 32rpx;
|
|
|
- color: #fff;
|
|
|
-
|
|
|
- &:first-of-type {
|
|
|
- margin-bottom:16rpx;
|
|
|
- }
|
|
|
-
|
|
|
- .text {
|
|
|
- padding-left:91rpx;
|
|
|
- position:relative;
|
|
|
- z-index: 10;
|
|
|
- font-size: 32rpx;
|
|
|
- font-weight: bold;
|
|
|
- color: #FFFFFF;
|
|
|
- }
|
|
|
-
|
|
|
- .img {
|
|
|
- position:absolute;
|
|
|
- left:0;
|
|
|
- top:0;
|
|
|
- width:100%;
|
|
|
- height:100%;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-.no_datas {
|
|
|
- margin-top: 70rpx;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
- .courses {
|
|
|
- width: 360rpx;
|
|
|
- height: 349rpx;
|
|
|
- }
|
|
|
- .no_learns {
|
|
|
- font-size: 32rpx;
|
|
|
- color: #999;
|
|
|
- margin: 46rpx 0rpx 56rpx;
|
|
|
- }
|
|
|
- .choose {
|
|
|
- width: 280rpx;
|
|
|
- height: 64rpx;
|
|
|
- line-height: 64rpx;
|
|
|
- border-radius: 32rpx;
|
|
|
- background-color: #007AFF;
|
|
|
- color: #fff;
|
|
|
- font-size: 30rpx;
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
+@import './index.scss';
|
|
|
</style>
|