提交
This commit is contained in:
@@ -53,7 +53,7 @@
|
|||||||
{{ curriculumData.title }}
|
{{ curriculumData.title }}
|
||||||
</view>
|
</view>
|
||||||
<common-curriculum-video
|
<common-curriculum-video
|
||||||
v-if="videoArray.length > 0"
|
v-if="videoArray && videoArray.length > 0"
|
||||||
:detailInfo="curriculumData"
|
:detailInfo="curriculumData"
|
||||||
:currentVideo="currentVideo"
|
:currentVideo="currentVideo"
|
||||||
:dataList="videoArray"
|
:dataList="videoArray"
|
||||||
@@ -71,6 +71,8 @@
|
|||||||
<common-rich-detail :detailInfo="{ ...curriculumData, title: '' }">
|
<common-rich-detail :detailInfo="{ ...curriculumData, title: '' }">
|
||||||
<template #richHeadImg>
|
<template #richHeadImg>
|
||||||
<image
|
<image
|
||||||
|
v-if="curriculumData.imgUrl"
|
||||||
|
@click="previewImage(curriculumData.imgUrl)"
|
||||||
:src="curriculumData.imgUrl"
|
:src="curriculumData.imgUrl"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
class="headImage"
|
class="headImage"
|
||||||
@@ -222,7 +224,18 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</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
|
<!-- <u-modal
|
||||||
:show="show"
|
:show="show"
|
||||||
:title="modalInfo.title"
|
:title="modalInfo.title"
|
||||||
@@ -323,6 +336,15 @@ export default {
|
|||||||
plus.screen.lockOrientation("default");
|
plus.screen.lockOrientation("default");
|
||||||
|
|
||||||
this.options = options;
|
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.getUserInfo()
|
||||||
// this.getCateList()
|
// this.getCateList()
|
||||||
@@ -332,19 +354,14 @@ export default {
|
|||||||
// this.searchList = []
|
// this.searchList = []
|
||||||
},
|
},
|
||||||
onShow() {
|
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
|
// #endif
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(["userInfo"]),
|
...mapState(["userInfo"]),
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 放大图片
|
||||||
|
|
||||||
//课程详情
|
//课程详情
|
||||||
async gotoDetail(v, index) {
|
async gotoDetail(v, index) {
|
||||||
console.log(
|
console.log(
|
||||||
@@ -400,7 +417,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
changeVideo(data) {
|
changeVideo(data) {
|
||||||
console.log('data at line 370:', data)
|
console.log("data at line 370:", data);
|
||||||
this.currentVideo = data;
|
this.currentVideo = data;
|
||||||
this.initVideo();
|
this.initVideo();
|
||||||
this.isOpenMp3 = false;
|
this.isOpenMp3 = false;
|
||||||
@@ -830,7 +847,7 @@ export default {
|
|||||||
|
|
||||||
// 放大图片
|
// 放大图片
|
||||||
previewImage(url) {
|
previewImage(url) {
|
||||||
console.log(url);
|
console.log("这是点击了图片啊啊啊啊", url);
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
urls: [url],
|
urls: [url],
|
||||||
longPressActions: {
|
longPressActions: {
|
||||||
|
|||||||
@@ -383,7 +383,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
<public-module></public-module>
|
<public-module></public-module>
|
||||||
<z-navigation></z-navigation>
|
|
||||||
<!-- <music-play :playData="playData"></music-play> -->
|
<!-- <music-play :playData="playData"></music-play> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -767,8 +767,8 @@ export default {
|
|||||||
var mynavData = JSON.stringify({
|
var mynavData = JSON.stringify({
|
||||||
goods: [this.selectGoodsData],
|
goods: [this.selectGoodsData],
|
||||||
typeId: 0,
|
typeId: 0,
|
||||||
navTitle: this.options.navTitle,
|
navTitle: this.course.title,
|
||||||
title: this.options.title,
|
title: this.course.title,
|
||||||
// sourceType: "curriculum",
|
// sourceType: "curriculum",
|
||||||
}); // 这里转换成 字符串
|
}); // 这里转换成 字符串
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@@ -1951,7 +1951,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.supermarketBox {
|
.supermarketBox {
|
||||||
@include pleft_right(5px) .borderbb {
|
@include pleft_right(5px);
|
||||||
|
.borderbb {
|
||||||
background-image: linear-gradient(180deg, #468aff 0%, #46c0ff 100%);
|
background-image: linear-gradient(180deg, #468aff 0%, #46c0ff 100%);
|
||||||
@include pleft_right(10px);
|
@include pleft_right(10px);
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
|
|||||||
Reference in New Issue
Block a user