This commit is contained in:
2024-07-02 14:34:09 +08:00
parent f9d095e20b
commit 1d1c92d01b
3 changed files with 37 additions and 19 deletions

View File

@@ -53,7 +53,7 @@
{{ curriculumData.title }}
</view>
<common-curriculum-video
v-if="videoArray.length > 0"
v-if="videoArray && videoArray.length > 0"
:detailInfo="curriculumData"
:currentVideo="currentVideo"
:dataList="videoArray"
@@ -71,6 +71,8 @@
<common-rich-detail :detailInfo="{ ...curriculumData, title: '' }">
<template #richHeadImg>
<image
v-if="curriculumData.imgUrl"
@click="previewImage(curriculumData.imgUrl)"
:src="curriculumData.imgUrl"
mode="widthFix"
class="headImage"
@@ -222,7 +224,18 @@
</view>
</template>
<view style="background-color: red;position: fixed;top: 0;left: 0;right: 0;bottom: 0;" v-show="screenLoading" > </view>
<view
style="
background-color: red;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
"
v-show="screenLoading"
>
</view>
<!-- <u-modal
:show="show"
:title="modalInfo.title"
@@ -323,7 +336,16 @@ export default {
plus.screen.lockOrientation("default");
this.options = options;
this.screenLoading = false;
this.currentCateIndex = this.options.videoIndex
? this.options.videoIndex
: 0;
// #ifdef APP-PLUS
plus.screen.unlockOrientation(); //解除锁定屏幕方向
plus.screen.lockOrientation("portrait-primary");
this.getCourseDescriptionData();
// this.getUserInfo()
// this.getCateList()
},
@@ -332,21 +354,16 @@ export default {
// this.searchList = []
},
onShow() {
this.screenLoading=false
this.currentCateIndex = this.options.videoIndex?this.options.videoIndex:0;
// #ifdef APP-PLUS
plus.screen.unlockOrientation(); //解除锁定屏幕方向
plus.screen.lockOrientation("portrait-primary");
this.getCourseDescriptionData();
// #endif
},
computed: {
...mapState(["userInfo"]),
},
methods: {
//课程详情
async gotoDetail(v, index) {
// 放大图片
//课程详情
async gotoDetail(v, index) {
console.log(
this.cateList[this.currentCateIndex],
8888888888888888888888888
@@ -387,7 +404,7 @@ export default {
this.$forceUpdate();
},
initVideo() {
this.screenLoading=false;
this.screenLoading = false;
this.isfresh = false;
this.$nextTick(() => {
this.isfresh = true;
@@ -400,7 +417,7 @@ export default {
});
},
changeVideo(data) {
console.log('data at line 370:', data)
console.log("data at line 370:", data);
this.currentVideo = data;
this.initVideo();
this.isOpenMp3 = false;
@@ -830,7 +847,7 @@ export default {
// 放大图片
previewImage(url) {
console.log(url);
console.log("这是点击了图片啊啊啊啊", url);
uni.previewImage({
urls: [url],
longPressActions: {

View File

@@ -383,7 +383,7 @@
</view>
</u-popup>
<public-module></public-module>
<z-navigation></z-navigation>
<!-- <music-play :playData="playData"></music-play> -->
</view>
</view>

View File

@@ -767,8 +767,8 @@ export default {
var mynavData = JSON.stringify({
goods: [this.selectGoodsData],
typeId: 0,
navTitle: this.options.navTitle,
title: this.options.title,
navTitle: this.course.title,
title: this.course.title,
// sourceType: "curriculum",
}); // 这里转换成 字符串
uni.navigateTo({
@@ -1951,7 +1951,8 @@ export default {
}
.supermarketBox {
@include pleft_right(5px) .borderbb {
@include pleft_right(5px);
.borderbb {
background-image: linear-gradient(180deg, #468aff 0%, #46c0ff 100%);
@include pleft_right(10px);
border-radius: 20rpx;