|
@@ -45,7 +45,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</u-col>
|
|
</u-col>
|
|
|
<u-col span="3" text-align="right">
|
|
<u-col span="3" text-align="right">
|
|
|
- <view class="video_t2" @click="activeStatus = !activeStatus">
|
|
|
|
|
|
|
+ <view class="video_t2" @click="swipStatus">
|
|
|
共{{ chapterList.length }}章节
|
|
共{{ chapterList.length }}章节
|
|
|
<u-icon name="arrow-right" size="28" style="transition: all 0.2s;margin-left:10rpx" :class="activeStatus ? 'rotoct' : ''"></u-icon>
|
|
<u-icon name="arrow-right" size="28" style="transition: all 0.2s;margin-left:10rpx" :class="activeStatus ? 'rotoct' : ''"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
@@ -227,7 +227,8 @@ export default {
|
|
|
boxList: [], //章节弹窗列表
|
|
boxList: [], //章节弹窗列表
|
|
|
payStatus: true, //是否购买该课程
|
|
payStatus: true, //是否购买该课程
|
|
|
commendList: [], //推荐课程列表
|
|
commendList: [], //推荐课程列表
|
|
|
- collecStatus: false //收藏状态
|
|
|
|
|
|
|
+ collecStatus: false ,//收藏状态
|
|
|
|
|
+ initH4:0,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
@@ -270,6 +271,13 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ swipStatus(){
|
|
|
|
|
+ this.activeStatus = !this.activeStatus
|
|
|
|
|
+ let self = this
|
|
|
|
|
+ self.$nextTick(function(){
|
|
|
|
|
+ self.getHeight()
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
getHeight(){
|
|
getHeight(){
|
|
|
let that = this
|
|
let that = this
|
|
|
const query = uni.createSelectorQuery().in(this);
|
|
const query = uni.createSelectorQuery().in(this);
|
|
@@ -298,8 +306,10 @@ export default {
|
|
|
query
|
|
query
|
|
|
.select('#modules4')
|
|
.select('#modules4')
|
|
|
.boundingClientRect(data => {
|
|
.boundingClientRect(data => {
|
|
|
- that.h4 = data.height;
|
|
|
|
|
- console.log(data.height,4444)
|
|
|
|
|
|
|
+ // that.h4 = data.height;
|
|
|
|
|
+ if(that.h4==0){
|
|
|
|
|
+ that.h4 = data.height
|
|
|
|
|
+ }
|
|
|
that.countHeight(that);
|
|
that.countHeight(that);
|
|
|
})
|
|
})
|
|
|
.exec();
|
|
.exec();
|
|
@@ -358,6 +368,10 @@ export default {
|
|
|
};
|
|
};
|
|
|
this.$api.courseInforecommendList(data).then(res => {
|
|
this.$api.courseInforecommendList(data).then(res => {
|
|
|
self.commendList = res.data.data;
|
|
self.commendList = res.data.data;
|
|
|
|
|
+ self.$nextTick(function(){
|
|
|
|
|
+ self.getHeight()
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
activeList(item, index) {
|
|
activeList(item, index) {
|