分离课程说明video

This commit is contained in:
2024-07-01 14:28:39 +08:00
parent bd398030ad
commit 3fe52975b5
4 changed files with 2237 additions and 1022 deletions

View File

@@ -24,7 +24,7 @@
"type" : "uni-app:app-ios"
},
{
"playground" : "custom",
"playground" : "standard",
"type" : "uni-app:app-android"
}
]

View File

@@ -5,8 +5,8 @@ if (process.env.NODE_ENV === 'development') {
// baseUrl = "http://localhost:7001/";
// socketUrl = "ws://localhost:6001/";
// baseUrl = "https://twin-ui.com/demo/";
// baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
baseUrl = "https://api.nuttyreading.com/"; // 线上正式
baseUrl = "https://testapi.nuttyreading.com/"; // 线上测试环境
// baseUrl = "https://api.nuttyreading.com/"; // 线上正式
// baseUrl = "http://192.168.110.100:9200/pb/"; // 开发用电脑
// baseUrl = "http://59.110.212.44:9200/pb/";
// baseUrl = "http://192.168.110.100:9100/pb/"; // 开发用电脑
@@ -16,8 +16,8 @@ if (process.env.NODE_ENV === 'development') {
} else if (process.env.NODE_ENV === 'production') {
// 生产环境11
// baseUrl = "http://59.110.212.44:9100/pb/";
// baseUrl = "https://testapi.nuttyreading.com/";
baseUrl = "https://api.nuttyreading.com/"; //1
baseUrl = "https://testapi.nuttyreading.com/";
// baseUrl = "https://api.nuttyreading.com/"; //1
// baseUrl = "ws://twin-ui.com:6001/";
// socketUrl = "ws://twin-ui.com:6001/";
}

File diff suppressed because it is too large Load Diff

View File

@@ -5,21 +5,48 @@
<z-nav-bar :title="courseInfo.id ? courseTitle : '课程说明'">
<!-- <uni-icons type="bars" class="topRight" slot="right" @click="showDrawer('showRight')" size="22"></uni-icons> -->
</z-nav-bar>
<view class="" style="background: #55aaff;">
<u-tabs :class="['tabList']" @click="tabChange" :current="curTagIndex"
:activeStyle="activeStyle" :scrollable="scrollable" lineColor="#ef9f00" :list="tabList" :inactiveStyle="{
color: '#fff', }"
itemStyle="padding-left: 15px; padding-right: 15px; height: 50px;"></u-tabs>
<view class="" style="background: #55aaff">
<u-tabs
:class="['tabList']"
@click="tabChange"
:current="curTagIndex"
:activeStyle="activeStyle"
:scrollable="scrollable"
lineColor="#ef9f00"
:list="tabList"
:inactiveStyle="{
color: '#fff',
}"
itemStyle="padding-left: 15px; padding-right: 15px; height: 50px;"
></u-tabs>
</view>
<view class="tabLeve1 subItem flexbox" v-if="Leve1.length > 0">
<text :class="[leve1Index == index ? 'cur' : '']" v-for="(item, index) in Leve1" :key="index" @click="leve1Click(item, index)">{{item.title}}</text>
<text
:class="[leve1Index == index ? 'cur' : '']"
v-for="(item, index) in Leve1"
:key="index"
@click="leve1Click(item, index)"
>{{ item.title }}</text
>
</view>
<view class="tabLeve2 subItem flexbox" v-if="Leve2.length > 0">
<text :class="[leve2Index == index ? 'cur' : '']" v-for="(item, index) in Leve2" :key="index" @click="leve2Click(item, index)">{{item.title}}</text>
<text
:class="[leve2Index == index ? 'cur' : '']"
v-for="(item, index) in Leve2"
:key="index"
@click="leve2Click(item, index)"
>{{ item.title }}</text
>
</view>
<view class="tabLeve3 subItem flexbox" v-if="Leve3.length > 0">
<text :class="[leve3Index == index ? 'cur' : '']" v-for="(item, index) in Leve3" :key="index" @click="leve3Click(item, index)">{{item.title}}</text>
<text
:class="[leve3Index == index ? 'cur' : '']"
v-for="(item, index) in Leve3"
:key="index"
@click="leve3Click(item, index)"
>{{ item.title }}</text
>
</view>
<view class="" v-if="courseInfo.content == '' && courseInfo.media == ''">
<u-divider text="本门课程没有编写课程说明"></u-divider>
@@ -27,90 +54,76 @@
<view class="containerBg" v-else>
<view class="infoBox" v-if="courseInfo.id">
<uni-section :title="courseTitle" type="line" titleFontSize="16px">
<view class="audio" style="margin-bottom: 20rpx;" v-if="courseInfo.mediaType == 2 && courseInfo.media != ''">
<audio style="text-align: left" :src="courseInfo.media" :poster="audioPoster" :name="courseTitle"
author="吴门医述" :action="audioAction" controls></audio>
</view>
<view>
<view class="container" v-if="courseInfo.mediaType ==1 && courseInfo.media != ''">
<div ref="videoContent" @tap="renderScript.handleClick" id="url-player-test"
:videoData="videoData"
:change:videoData="renderScript.receiveMsg"></div>
</view>
</view>
<div class="fullScreenButton-container">
<div
:class="`prism-fullscreen-btn ${isFullScreen ? 'fullscreen' : ''}`"
@tap="renderScript.changeVideoScreen"
></div>
</div>
<rich-text v-if="courseInfo.content" class="content"
:nodes="formatRichText(courseInfo.content)"></rich-text>
<curriculum-video
v-if="curriculumVideoShow"
ref="curriculumVideo"
:courseInfo="courseInfo"
></curriculum-video>
<rich-text
v-if="courseInfo.content"
class="content"
:nodes="formatRichText(courseInfo.content)"
></rich-text>
<!-- <text>超强树选择器树组件树插件无限级联树单选树多选树自定义样式树树形选择 </text> -->
</uni-section>
</view>
</view>
<z-navigation></z-navigation>
<!-- <z-navigation></z-navigation> -->
<!-- <music-play :playData="playData"></music-play> -->
</view>
</template>
<script>
// import musicPlay from '@/components/music.vue'
import $http from '@/config/requestConfig.js';
var clear;
import {
mapState
} from 'vuex';
export default {
import curriculumVideo from "./components/video.vue";
import $http from "@/config/requestConfig.js";
var clear;
import { mapState } from "vuex";
export default {
data() {
return {
curriculumVideoShow: false,
isFullScreen: false,
playData: {},
Leve1:[],
Leve2:[],
Leve3:[],
Leve1: [],
Leve2: [],
Leve3: [],
options: {}, //上个页面获取的视频参数视频id
playAuth: "", //播放凭证
videoId: "", //阿里云视频id
videoData: {}, //阿里云视频其他参数
accordionVal: '',
accordionVal: "",
// extraIcon:{
// color: '#4cd964',
// size: '100',
// }
scrollable:true,
scrollable: true,
treeList: [],
tagId: null,
pid: null,
bgiStyle: {
background: '#fff'
background: "#fff",
},
curTagIndex:0,
leve1Index:null,
leve2Index:null,
leve3Index:null,
curTagIndex: 0,
leve1Index: null,
leve2Index: null,
leve3Index: null,
iconStyle: {
fontSize: '40rpx',
fontWeight: 'bold',
color: '#258feb',
fontSize: "40rpx",
fontWeight: "bold",
color: "#258feb",
},
tabList:[
],
tabList: [],
activeStyle: {
color: '#fff',
fontWeight: 'bold', padding:'20rpx',
transform: 'scale(1.2)',
backgroundColor: '#ef9f00'
color: "#fff",
fontWeight: "bold",
padding: "20rpx",
transform: "scale(1.2)",
backgroundColor: "#ef9f00",
},
courseInfo: {},
poster:'../../static/videoF.jpg', //封面图
audioPoster:'../../static/logo.png',
poster: "../../static/videoF.jpg", //封面图
audioPoster: "../../static/logo.png",
current: {
// poster: 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/music-a.png',
// name: '致爱丽丝',
@@ -118,49 +131,50 @@
// src: 'https://web-ext-storage.dcloud.net.cn/uni-app/ForElise.mp3',
},
audioAction: {
method: 'pause'
method: "pause",
},
curId: null,
courseTitle: '',
showTemp:true,
videoContext:null,
courseTitle: "",
showTemp: true,
videoContext: null,
videoUrl:'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/2minute-demo.mp4'
videoUrl:
"https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/2minute-demo.mp4",
};
},
//第一次加载
onLoad(e) {
// 隐藏原生的tabbar
uni.hideTabBar();
this.pid = e.pid
this.tagId = e.id
console.log(e, '------')
this.videoContext = uni.createVideoContext('myVideo')
this.pid = e.pid;
this.tagId = e.id;
console.log(e, "------");
this.videoContext = uni.createVideoContext("myVideo");
},
computed: {
...mapState(['userInfo']),
...mapState(["userInfo"]),
videoHTML() {
return `<video class="video-box" poster="http://ehh-public-01.oss-cn-beijing.aliyuncs.com/wumenyishu-image/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20240606110049.jpg" src="${this.videoUrl}" enable-danmu danmu-btn controls style="width:100%;height:320rpx"></video>`
}
return `<video class="video-box" poster="http://ehh-public-01.oss-cn-beijing.aliyuncs.com/wumenyishu-image/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20240606110049.jpg" src="${this.videoUrl}" enable-danmu danmu-btn controls style="width:100%;height:320rpx"></video>`;
},
},
//页面显示
onShow() {
// 隐藏原生的tabbar
uni.hideTabBar();
this.getData()
this.getData();
},
onUnload() {
// #ifdef APP-PLUS
plus.screen.lockOrientation('portrait-primary'); // 清除横屏
plus.screen.lockOrientation("portrait-primary"); // 清除横屏
// #endif
this.showTemp = true
this.videoContext = null
this.showTemp = true;
this.videoContext = null;
},
onPullDownRefresh(){
uni.stopPullDownRefresh()
onPullDownRefresh() {
uni.stopPullDownRefresh();
},
components: {
// musicPlay
curriculumVideo,
},
//方法
methods: {
@@ -174,22 +188,25 @@
videoId: this.videoId, //阿里云视频id
playAuth: playAuth, //阿里云播放凭证
};
console.log('得到播放凭证')
console.log("得到播放凭证");
this.playAuth = playAuth;
this.$forceUpdate();
},
tabChange(e){
console.log(e,'e');
let _index = e.index
this.clickCourseInfo(this.treeList[_index])
this.curTagIndex = _index
this.leve1Index = null
this.leve2Index = null
this.leve3Index = null
if(this.treeList[_index].isLast == 0 && this.treeList[_index].children.length > 0){
this.Leve1 = this.treeList[_index].children
this.Leve2 = []
this.Leve3 = []
tabChange(e) {
console.log(e, "e");
let _index = e.index;
this.clickCourseInfo(this.treeList[_index]);
this.curTagIndex = _index;
this.leve1Index = null;
this.leve2Index = null;
this.leve3Index = null;
if (
this.treeList[_index].isLast == 0 &&
this.treeList[_index].children.length > 0
) {
this.Leve1 = this.treeList[_index].children;
this.Leve2 = [];
this.Leve3 = [];
// if(this.Leve1[0].isLast == 0 && this.Leve1[0].children.length > 0){
// this.Leve2 = this.Leve1[0].children
// this.Leve3 = []
@@ -203,230 +220,274 @@
// this.Leve2 = []
// this.Leve3 = []
// }
}else{
this.Leve1 = []
this.Leve2 = []
this.Leve3 = []
} else {
this.Leve1 = [];
this.Leve2 = [];
this.Leve3 = [];
}
},
leve1Click(val, index){
console.log(this.Leve1[index],'val');
this.leve1Index = index
this.leve2Index = null
this.leve3Index = null
this.clickCourseInfo(val)
if(this.Leve1[index].isLast == 0 && this.Leve1[index].children.length > 0){
this.Leve2 = this.Leve1[index].children
leve1Click(val, index) {
console.log(this.Leve1[index], "val");
this.leve1Index = index;
this.leve2Index = null;
this.leve3Index = null;
this.clickCourseInfo(val);
if (
this.Leve1[index].isLast == 0 &&
this.Leve1[index].children.length > 0
) {
this.Leve2 = this.Leve1[index].children;
// console.log(this.Leve2,'Leve2');
this.Leve3 = []
}else{
this.Leve2 = []
this.Leve3 = []
this.Leve3 = [];
} else {
this.Leve2 = [];
this.Leve3 = [];
}
},
leve2Click(val, index){
this.leve2Index = index
if(this.leve1Index == null){
this.leve1Index = 0
leve2Click(val, index) {
this.leve2Index = index;
if (this.leve1Index == null) {
this.leve1Index = 0;
}
this.leve3Index = null
this.leve3Index = null;
// console.log(val,'三级点击');
this.clickCourseInfo(val)
if(this.Leve2[index].isLast == 0 && this.Leve2[index].children.length > 0){
this.Leve3 = this.Leve2[index].children
}else{
this.Leve3 = []
this.clickCourseInfo(val);
if (
this.Leve2[index].isLast == 0 &&
this.Leve2[index].children.length > 0
) {
this.Leve3 = this.Leve2[index].children;
} else {
this.Leve3 = [];
}
},
leve3Click(val, index){
this.leve3Index = index
leve3Click(val, index) {
this.leve3Index = index;
// console.log(val,'四级点击');
if(this.leve2Index == null){
this.leve2Index = 0
if (this.leve2Index == null) {
this.leve2Index = 0;
}
if(this.leve1Index == null){
this.leve1Index = 0
if (this.leve1Index == null) {
this.leve1Index = 0;
}
this.clickCourseInfo(val)
this.clickCourseInfo(val);
// if(this.Leve3[index].isLast == 0){
// this.Leve3 = this.Leve2[index].children
// }
},
formatRichText(html) { //控制图片大小
formatRichText(html) {
//控制图片大小
let newContent = html.replace(/<img[^>]*>/gi, function (match, capture) {
match = match.replace(/style="[^"]+"/gi, '').replace(/style='[^']+'/gi, '');
match = match.replace(/width="[^"]+"/gi, '').replace(/width='[^']+'/gi, '');
match = match.replace(/height="[^"]+"/gi, '').replace(/height='[^']+'/gi, '');
match = match
.replace(/style="[^"]+"/gi, "")
.replace(/style='[^']+'/gi, "");
match = match
.replace(/width="[^"]+"/gi, "")
.replace(/width='[^']+'/gi, "");
match = match
.replace(/height="[^"]+"/gi, "")
.replace(/height='[^']+'/gi, "");
return match;
});
newContent = newContent.replace(/style="[^"]+"/gi, function (match, capture) {
match = match.replace(/width:[^;]+;/gi, 'max-width:100%;').replace(/width:[^;]+;/gi,
'max-width:100%;');
newContent = newContent.replace(
/style="[^"]+"/gi,
function (match, capture) {
match = match
.replace(/width:[^;]+;/gi, "max-width:100%;")
.replace(/width:[^;]+;/gi, "max-width:100%;");
return match;
});
newContent = newContent.replace(/<br[^>]*\/>/gi, '');
newContent = newContent.replace(/\<img/gi,
'<img style="max-width:100%;height:auto;display:inline-block;margin:10rpx auto;"');
}
);
newContent = newContent.replace(/<br[^>]*\/>/gi, "");
newContent = newContent.replace(
/\<img/gi,
'<img style="max-width:100%;height:auto;display:inline-block;margin:10rpx auto;"'
);
return newContent;
},
getData() {
this.$http
.post('medical/home/getCourseMedicalTree')
.then(res => {
.post("medical/home/getCourseMedicalTree")
.then((res) => {
if (res.code == 0 && res.labels.length > 0) {
this.tabList = []
this.treeList = res.labels
if(this.tagId && this.pid){
this.tabList = [];
this.treeList = res.labels;
if (this.tagId && this.pid) {
res.labels.forEach((item, index) => {
this.tabList.push({
id: item.id,
name: item.title
})
name: item.title,
});
if (item.id == this.pid) {
this.curTagIndex = index
console.log(this.curTagIndex)
this.curTagIndex = index;
console.log(this.curTagIndex);
}
})
this.getCourseInfo(this.tagId)
}else{
this.curTagIndex = 0
this.leve1Index = null
this.getCourseInfo(this.treeList[0].id)
});
this.getCourseInfo(this.tagId);
} else {
this.curTagIndex = 0;
this.leve1Index = null;
this.getCourseInfo(this.treeList[0].id);
}
// this.treeList = res.labels
if(this.treeList[this.curTagIndex].isLast == 0 && this.treeList[this.curTagIndex].children.length > 0){
this.Leve1 = this.treeList[this.curTagIndex].children
if(this.tagId){
if (
this.treeList[this.curTagIndex].isLast == 0 &&
this.treeList[this.curTagIndex].children.length > 0
) {
this.Leve1 = this.treeList[this.curTagIndex].children;
if (this.tagId) {
this.Leve1.forEach((item, index) => {
if (item.id == this.tagId) {
this.leve1Index = index
this.leve1Index = index;
}
})
if(this.Leve1[this.leve1Index].isLast == 0 && this.Leve1[this.leve1Index].children.length > 0){
this.Leve2 = this.Leve1[this.leve1Index].children
});
if (
this.Leve1[this.leve1Index].isLast == 0 &&
this.Leve1[this.leve1Index].children.length > 0
) {
this.Leve2 = this.Leve1[this.leve1Index].children;
// console.log(this.Leve2,'Leve2');
// if(this.Leve2[0].isLast == 0 && this.Leve2[0].children.length > 0){
// this.Leve3 = this.Leve2[0].children
// }else{
// this.Leve3 = []
// }
}else{
this.Leve2 = []
this.Leve3 = []
} else {
this.Leve2 = [];
this.Leve3 = [];
}
}else{
this.leve1Index = null
this.Leve2 = []
this.Leve3 = []
} else {
this.leve1Index = null;
this.Leve2 = [];
this.Leve3 = [];
}
}else{
this.Leve1 = []
this.Leve2 = []
this.Leve3 = []
} else {
this.Leve1 = [];
this.Leve2 = [];
this.Leve3 = [];
}
res.labels.forEach( item => {
this.tabList.push({id:item.id, name: item.title})
})
res.labels.forEach((item) => {
this.tabList.push({ id: item.id, name: item.title });
});
// /this.getCourseInfo(this.treeList[0].id)
// console.log(this.treeList[0].id,'+++++')
// this.showDrawer('showRight')
} else {
this.treeList = []
this.treeList = [];
}
}).catch(e => {
console.log(e, '报错')
})
.catch((e) => {
console.log(e, "报错");
});
},
// 获取课程详情
getCourseInfo(id) {
$http.request({
this.curriculumVideoShow = false;
$http
.request({
url: "medical/home/getCourseMedicalDetail",
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
data: {
id: id
id: id,
},
header: { //默认 无 说明:请求头
'Content-Type': 'application/json'
header: {
//默认 无 说明:请求头
"Content-Type": "application/json",
},
})
.then(async res => {
.then(async (res) => {
if (res.code == 0 && res.course.id) {
this.courseInfo = res.course
this.courseTitle = this.courseInfo.title + '课程说明'
this.curId = id
if (this.courseInfo.mediaType == 1 && this.courseInfo.media != '') {
this.videoId = this.courseInfo.media
this.playAuth = await this.getVideoPath(this.courseInfo.media)
this.getLive(this.playAuth)
}else{
this.courseInfo = res.course;
this.courseTitle = this.courseInfo.title + "课程说明";
this.curId = id;
if (this.courseInfo.mediaType == 1 && this.courseInfo.media != "") {
this.curriculumVideoShow = true;
this.$nextTick(() => {
this.$refs.curriculumVideo.initVideo({
videoId: this.courseInfo.media,
playAuth: this.courseInfo.media,
});
});
// this.videoId =
// this.playAuth =
// this.getLive(this.playAuth)
} else {
// this.videoUrl = ''
this.poster = ''
this.poster = "";
this.curriculumVideoShow = true;
this.$nextTick(() => {
this.$refs.curriculumVideo.initAudio();
});
}
// console.log(id, 'id')
} else {
this.courseInfo = {}
this.videoUrl = ''
this.poster = ''
this.courseInfo = {};
this.videoUrl = "";
this.poster = "";
}
}).catch(e => {
this.courseInfo = {}
this.courseTitle = ''
this.curId = null
this.poster = ''
this.videoUrl = ''
console.log(e, '课程详情报错')
})
.catch((e) => {
this.courseInfo = {};
this.courseTitle = "";
this.curId = null;
this.poster = "";
this.videoUrl = "";
console.log(e, "课程详情报错");
});
},
// 获得播放地址
async getVideoPath(str) {
// console.log(str, 'str');
let path = ''
await $http.request({
let path = "";
await $http
.request({
url: "medical/course/checkVideoByMD",
method: "POST", // POST、GET、PUT、DELETE具体说明查看官方文档
data: {
id: str
id: str,
},
header: { //默认 无 说明:请求头
'Content-Type': 'application/json'
header: {
//默认 无 说明:请求头
"Content-Type": "application/json",
},
})
.then(res => {
.then((res) => {
if (res.code == 0) {
// console.log(res, 'res');
path = res.playAuth
path = res.playAuth;
}
}).catch(e => {
console.log(e, '获取视频播放地址错误');
})
return path
.catch((e) => {
console.log(e, "获取视频播放地址错误");
});
return path;
},
clickCourseInfo(item) {
this.getCourseInfo(item.id)
this.getCourseInfo(item.id);
},
playEnd(){
this.showTemp = true
playEnd() {
this.showTemp = true;
},
clickToPlay(){
this.showTemp = false
this.videoContext.play()
}
clickToPlay() {
this.showTemp = false;
this.videoContext.play();
},
};
},
};
</script>
<script module="renderScript" lang="renderjs">
import $ from 'jquery'
// import StaticADComponent from './staticadcomponent/index.js';
/**
import $ from 'jquery'
// import StaticADComponent from './staticadcomponent/index.js';
/**
* 静态广告组件
*/
export default {
export default {
/**
* 静态广告组件
*/
@@ -886,11 +947,11 @@
// });
}
}
}
}
</script>
<style>
.fullScreenButton-container {
.fullScreenButton-container {
color: #fff;
float: right;
height: 35px;
@@ -914,56 +975,80 @@
display: block;
}
}
}}
}
}
</style>
<style lang="scss" scoped>
@import '@/style/mixin.scss';
@import "@/style/mixin.scss";
::v-deep .containerBg {
.uni-audio-default{width: 100% !important;}
::v-deep .containerBg {
.uni-audio-default {
width: 100% !important;
}
#myVideo {
width: 100% !important;
}
video{width: 100% !important; }
video {
width: 100% !important;
}
.flexbox{display: flex;}
.subItem{
background-color: #ebeef5; padding: 10rpx;
}
.flexbox {
display: flex;
}
.subItem {
background-color: #ebeef5;
padding: 10rpx;
flex-wrap: wrap;
justify-content:start;
text{display: inline-block; width: calc(25% - 8rpx); text-align: center; border-radius: 10rpx; color: #258feb; padding: 10rpx 20rpx; border: 1px solid #258feb;
margin: 6rpx 0; font-size: 26rpx; margin-right: 10rpx;
justify-content: start;
text {
display: inline-block;
width: calc(25% - 8rpx);
text-align: center;
border-radius: 10rpx;
color: #258feb;
padding: 10rpx 20rpx;
border: 1px solid #258feb;
margin: 6rpx 0;
font-size: 26rpx;
margin-right: 10rpx;
}
text:last-child {
margin-right: 0 !important;
}
.cur {
background: #258feb;
display: inline-block;
color: #fff;
border-radius: 10rpx;
padding: 10rpx 20rpx;
}
text:last-child{margin-right: 0 !important;}
.cur{background: #258feb; display: inline-block; color: #fff; border-radius: 10rpx; padding: 10rpx 20rpx; }
}
.close {
display: flex;
justify-content: right;
padding-top: 60rpx;
padding-right: 20px;
}
.infoBox {
}
.infoBox {
padding: 20rpx;
font-size: 26rpx;
}
}
// .leve2{background-color: #71a5ff; }
// .leve3{background-color: #9bbeff; }
// .leve4{background-color: #b6d0ff; }
.containerBg {
// .leve2{background-color: #71a5ff; }
// .leve3{background-color: #9bbeff; }
// .leve4{background-color: #b6d0ff; }
.containerBg {
// background-color: $containerColor;
background-color: #fff;
padding: 0 20rpx;
min-height: calc(100vh - 270rpx);
}
}
.uni-collapse-item__title-text {
.uni-collapse-item__title-text {
font-size: 30rpx;
}
}
.videoTemp {
.videoTemp {
position: relative;
.u-icon {
@@ -976,36 +1061,35 @@
image {
width: 100%;
}
}
}
.videoTemp:before {
content: '';
.videoTemp:before {
content: "";
display: block;
width: 100%;
position: absolute;
left: 0;
top: 0;
height: 100%;
background-color: rgba(0, 0, 0, .5);
background-color: rgba(0, 0, 0, 0.5);
z-index: 1;
}
}
.proTitle {
.proTitle {
text-align: center;
padding: 20rpx 0;
margin-top: 60rpx;
// margin-bottom: 20rpx;
color: #666;
font-size: 26rpx;
}
}
.sub1List {
.sub1List {
background-color: #f7f7f7;
// padding-left: 20rpx;
}
}
.content {
.content {
.item {
background-color: #fff;
line-height: 80rpx;
@@ -1016,7 +1100,7 @@
text {
padding-left: 20rpx;
}
.item:last-child{
.item:last-child {
border-bottom: 0;
}
}
@@ -1024,29 +1108,48 @@
.item.active {
// background-color: #aed1ec;
color: #fff;
background-image: linear-gradient(90deg, #258feb 0%, #00e1ec 100%) !important;
background-image: linear-gradient(
90deg,
#258feb 0%,
#00e1ec 100%
) !important;
}
.textss{display: inline-block; width: 100%; border-bottom: 1px solid #ebeef5;}
.leve2{
.textss{padding-left: 20rpx;}
.textss {
display: inline-block;
width: 100%;
border-bottom: 1px solid #ebeef5;
}
.leve2{
.textss{padding-left: 40rpx;}
}
.leve3{
.textss{padding-left: 60rpx;}
}
.leve4{
.textss{padding-left: 80rpx;}
.leve2 {
.textss {
padding-left: 20rpx;
}
}
// .textss:last-child{
// border-bottom: 0;
// }
.topRight{margin-right: 20rpx; font-size: 28rpx; display: flex;}
.leve2 {
.textss {
padding-left: 40rpx;
}
}
.leve3 {
.textss {
padding-left: 60rpx;
}
}
.leve4 {
.textss {
padding-left: 80rpx;
}
}
}
// .textss:last-child{
// border-bottom: 0;
// }
.topRight {
margin-right: 20rpx;
font-size: 28rpx;
display: flex;
}
audio {
audio {
width: 100% !important;
}
}
</style>