Commit b62968de authored by Mac's avatar Mac

1

parent 3bdafbb9
<template>
<view class="courseContent">
<view class="courseContent" v-if="loading">
<view class="course-top">
<video id="myVideo"
......@@ -96,7 +95,8 @@
},
data(){
return{
pageTitle:'',
pageTitle:'学习',
loading:false,
mc:'',
pricecolor:'',
secondary:'',
......@@ -202,6 +202,7 @@
uni.navigateBack({})
},
getGoodsCourseList(){
this.request2({
url: '/api/AppletSchool/GetAppletGoodsCourseList',
data: {GoodsId: this.id, pageIndex :1,pageSize:10000}
......@@ -213,7 +214,7 @@
this.courseList[this.index].ImageList.forEach((x) => {
this.img.push(x.Path);
});
this.loading=true;
this.setMyCourseStudyOK()//课程已阅读
}
);
......
......@@ -61,6 +61,25 @@
/>
{{ g.name }}
</view>
<view class="g-label">
<view class="gl-left">
<view class="gl-left-item" :style="{background:mc}" v-for="(x, i) in g.course_lable_list" :key="ci">
{{x}}
</view>
</view>
<view class="good-rb-box" >
<text class="good-rb-text">5分</text>
<u-rate
current='5'
active-color="#FEC471" inactive-color="#DDDDDD"
active-icon="star"
inactive-icon="star-o"
size="24"
:disabled="true"
></u-rate>
</view>
</view>
<view class="g-price-box">
<view class="left">
<view class="price u-skeleton-rect" v-if=" g.price!=0" >
......@@ -71,17 +90,7 @@
<text class="oprice" v-if="setting.is_underline_price == 1">{{ g.original_price }}</text>
</view>
<view class="sell u-skeleton-rect">
<!-- <view class="good-rb-box">
<u-rate
:current="cx.course_score!=null &&cx.course_score>0?cx.course_score:'5'"
active-color="#FEC471" inactive-color="#DDDDDD"
active-icon="star"
inactive-icon="star-o"
size="20"
:disabled="true"
></u-rate>
<text class="good-rb-text">{{cx.course_score!=null &&cx.course_score>0?cx.course_score.toFixed(1):'5.0'}}</text>
</view> -->
<text v-if="setting.is_sales == 1">{{ g.sales }}人学习过</text>
</view>
</view>
......@@ -984,4 +993,34 @@ export default {
border-radius: 6px;
}
.goods .g-label{
display: flex;
align-items: center;
padding: 5px 0;
}
.goods .gl-left{
flex: 1;
width: 1px;
display: flex;
flex-wrap: wrap;
}
.goods .gl-left-item{
padding: 2px 4px;
border-radius: 2px;
font-size: 10px;
color: #FAF8F9;
margin-right: 5px;
margin-bottom: 5px;
}
.goods .good-rb-box{
display: flex;
flex-direction: row;
align-items: center;
}
.goods .good-rb-text{
font-size: 11px;
color: #999999;
margin-top: 3px;
margin-left: 2px;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment