1 Commits

Author SHA1 Message Date
@fawn-nine
6d19afdb7a 测试 2024-07-01 10:23:36 +08:00
8 changed files with 2037 additions and 3191 deletions

View File

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

View File

@@ -1,7 +1,6 @@
<template> <template>
<view> <view>
<uni-drawer ref="showRight" mode="right" :width="320" @change="changeD($event,'showRight')"> <uni-drawer ref="showRight" mode="right" :width="320" @change="changeD($event,'showRight')">
<view class="close"> <view class="close">
<view class="zhan" style="width: 100%;"></view> <view class="zhan" style="width: 100%;"></view>
<u-icon name="close" @click="closeDrawer('showRight')" color="#2979ff" size="28"></u-icon> <u-icon name="close" @click="closeDrawer('showRight')" color="#2979ff" size="28"></u-icon>
@@ -9,7 +8,6 @@
<view class="proTitle"> <view class="proTitle">
<text>请选择课程分类</text> <text>请选择课程分类</text>
</view> </view>
<scroll-view class="warp" scroll-y="true" style="max-height: 80vh;">
<uni-collapse accordion v-if="treeList.length > 0" @change="collapseChange"> <uni-collapse accordion v-if="treeList.length > 0" @change="collapseChange">
<uni-collapse-item v-for="(item, index) in treeList" :key="index" :title="item.title" <uni-collapse-item v-for="(item, index) in treeList" :key="index" :title="item.title"
:show-animation="true"> :show-animation="true">
@@ -28,14 +26,12 @@
v-for="(item2, index2) in item1.children" :key="index2" v-for="(item2, index2) in item1.children" :key="index2"
@click.stop="clickCourseInfo(item2)"> @click.stop="clickCourseInfo(item2)">
<text class="textss">{{item2.title}}</text> <text class="textss">{{item2.title}}</text>
<view class="sub3List" v-if="item2.isLast == 0 && item2.children && item2.children.length > 0"> <view class="sub3List" v-if="item2.children">
<!-- <view :class="['item', 'leve4']" --> <view :class="['item', 'leve4']"
<!-- <template> --> v-for="(item3, index3) in item2.children" :key="index3"
<text class="textss" v-for="(item3, index3) in item2.children" @click.stop="clickCourseInfo(item3)">
:key="index3" <text class="textss">{{item3.title}}33</text>
@click.stop="clickCourseInfo(item3)">{{item3.title}}</text> </view>
<!-- </view> -->
<!-- </template> -->
</view> </view>
</view> </view>
</view> </view>
@@ -44,7 +40,6 @@
</view> </view>
</uni-collapse-item> </uni-collapse-item>
</uni-collapse> </uni-collapse>
</scroll-view>
</uni-drawer> </uni-drawer>
</view> </view>
</template> </template>
@@ -108,24 +103,17 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// ::v-deep uni-drawer{ height: 50vh !important;
// .uni-drawer__content{
// overflow-y: scroll !important;
// }
// }
.sub1List { .sub1List {
background-color: #f7f7f7; background-color: #f7f7f7;
// padding-left: 20rpx; // padding-left: 20rpx;
} }
.content { .content {
.item { .item {
background-color: #fff; background-color: #fff;
line-height: 80rpx; line-height: 80rpx;
font-size: 28rpx; font-size: 26rpx;
color: #1b2a32; color: #497387;
// border-bottom: 1px solid #dae8f0; // border-bottom: 1px solid #dae8f0;
text { text {
@@ -162,13 +150,8 @@
} }
.leve3 { .leve3 {
.sub3List{
border-bottom: 1px solid #ebeef5; padding-left: 60rpx;
.textss{background-color: #ebeef5; border-radius: 20rpx; padding: 10rpx 14rpx !important;}
}
.textss { .textss {
padding-left: 60rpx; display: inline; margin-right: 20rpx; border:none !important; padding-left: 60rpx;
} }
} }
@@ -177,15 +160,14 @@
padding-left: 80rpx; padding-left: 80rpx;
} }
} }
} }
.proTitle { .proTitle {
text-align: center; text-align: center;
padding: 20rpx 0; padding: 20rpx 0;
margin-top: 60rpx; margin-top: 60rpx;
// margin-bottom: 20rpx; // margin-bottom: 20rpx;
color: #888; color: #666;
font-size: 28rpx; font-size: 26rpx;
} }
.close { .close {
display: flex; display: flex;

View File

@@ -0,0 +1,117 @@
<template>
<view class="zzc_mol" v-if="isRecording"></view>
</template>
<script>
export default {
data() {
return {
isRecording: false
}
},
created() {
this.screenInit();
},
onUnload() {
this.AllowScreenshots()
},
methods: {
screenInit() {
let _this = this;
// #ifdef H5
uni.showToast({
title: '请在APP或者小程序环境下操作',
icon: 'error'
})
// #endif
//// #ifndef H5
uni.getSystemInfo({
success: function(e) {
// #ifdef APP-PLUS
if (e.platform == 'android') {
//注意:一旦开启禁止截屏/录屏后将会全局生效,关闭页面时记得放开允许截屏/录屏
console.log('现在的操作系统是:=》',e.platform)
_this.NoscreenCapture();
} else {
//在APP IOS端截屏、录屏暂时没办法实现可以寻求原生解决
}
// #endif
// #ifdef MP-WEIXIN
if (e.platform == 'android') {
//微信小程序在安卓手机上 禁止截屏/录屏(注意:禁止后录屏动作还是会进行,但录屏后的视频是黑屏的)
wx.setVisualEffectOnCapture({
visualEffect: 'hidden', //传入 hidden 则表示在截屏/录屏时隐藏屏幕
success: (res) => {
console.log(res)
},
fail: (err) => {
console.log(err)
},
complete: (res) => {
console.log(res)
}
})
} else {
//微信小程序在IOS手机上注意目前微信小程序在ios上也只能通过监听录屏状态然后通过添加view层来进行阻止截屏暂时无法实现
//监听用户录屏事件
wx.onScreenRecordingStateChanged(function(res) {
if (res.state == 'start') {
_this.isRecording = true
} else {
_this.isRecording = false
}
})
//查询用户是否在录屏
wx.getScreenRecordingState({
success: (res) => {
if (res.state == 'on') {
_this.isRecording = true
} else if (res.state == 'off') {
_this.isRecording = false
}
},
fail: (err) => {
_this.isRecording = false
}
})
}
// #endif
}
})
//// #endif
},
//安卓端禁止截屏
NoscreenCapture() {
let osname = plus.os.name;
console.log('函数内的系统信息是=》',plus.os.name)
if (osname == "Android") {
var activity = plus.android.runtimeMainActivity();
plus.android.invoke(plus.android.invoke(activity, "getWindow"), "addFlags", 0x00002000);
// this.$emit('')
}
},
//安卓端允许截屏
AllowScreenshots() {
let osname = plus.os.name;
if (osname == "Android") {
var activity = plus.android.runtimeMainActivity();
plus.android.invoke(plus.android.invoke(activity, "getWindow"), "clearFlags", 0x00002000);
}
}
}
}
</script>
<style>
.zzc_mol {
background: #000;
width: 100%;
height: 100%;
position: fixed;
z-index: 99999;
top: 0;
left: 0;
}
</style>

View File

@@ -16,8 +16,8 @@ if (process.env.NODE_ENV === 'development') {
} else if (process.env.NODE_ENV === 'production') { } else if (process.env.NODE_ENV === 'production') {
// 生产环境11 // 生产环境11
// baseUrl = "http://59.110.212.44:9100/pb/"; // baseUrl = "http://59.110.212.44:9100/pb/";
baseUrl = "https://testapi.nuttyreading.com/"; // baseUrl = "https://testapi.nuttyreading.com/";
// baseUrl = "https://api.nuttyreading.com/"; //1 baseUrl = "https://api.nuttyreading.com/"; //1
// baseUrl = "ws://twin-ui.com:6001/"; // baseUrl = "ws://twin-ui.com:6001/";
// socketUrl = "ws://twin-ui.com:6001/"; // socketUrl = "ws://twin-ui.com:6001/";
} }

View File

@@ -10,12 +10,23 @@
}px; left: ${10}px;z-index: 999;`" }px; left: ${10}px;z-index: 999;`"
></u-icon>--> ></u-icon>-->
<view style="width: 100%; height: 200px" v-if="currentVideo.type == 1"> <view style="width: 100%; height: 200px" v-if="currentVideo.type == 1">
<div class="" style="background-color: #000" ref="videoContent" @tap="renderScript.handleClick" <div
id="url-player-test" :videoData="videoData" :winWidth="winWidth" :winHeight="winHeight" class=""
:currentVideoList="currentVideoList" :firstTime="firstTime" :change:videoData="renderScript.receiveMsg" style="background-color: #000"
:change:winWidth="renderScript.receiveWinWidth" :change:winHeight="renderScript.receiveWinHeight" ref="videoContent"
@tap="renderScript.handleClick"
id="url-player-test"
:videoData="videoData"
:winWidth="winWidth"
:winHeight="winHeight"
:currentVideoList="currentVideoList"
:firstTime="firstTime"
:change:videoData="renderScript.receiveMsg"
:change:winWidth="renderScript.receiveWinWidth"
:change:winHeight="renderScript.receiveWinHeight"
:change:firstTime="renderScript.receiveFirstTime" :change:firstTime="renderScript.receiveFirstTime"
:change:currentVideoList="renderScript.receiveVideoList"></div> :change:currentVideoList="renderScript.receiveVideoList"
></div>
<div @tap="renderScript.emitData" ref="videoContent1" v-show="false"> <div @tap="renderScript.emitData" ref="videoContent1" v-show="false">
直接调用renderjs中的emitData的方法,传递当前播放时长 直接调用renderjs中的emitData的方法,传递当前播放时长
</div> </div>
@@ -24,17 +35,26 @@
</div> </div>
<div class="fullScreenButton-container"> <div class="fullScreenButton-container">
<div :class="`prism-fullscreen-btn ${isFullScreen ? 'fullscreen' : ''}`" <div
@tap="renderScript.changeVideoScreen"></div> :class="`prism-fullscreen-btn ${isFullScreen ? 'fullscreen' : ''}`"
<!-- <div class="beisuBtn" id="beisuBtn" @tap="renderScript.changeSpeed">倍速</div> --> @tap="renderScript.changeVideoScreen"
></div>
<!-- <img class=" iconfont icon-list" src="../../../../static/icon/cate_bg.png" style="width: 60px;height: 10px;"></img> --> <!-- <img class=" iconfont icon-list" src="../../../../static/icon/cate_bg.png" style="width: 60px;height: 10px;"></img> -->
</div> </div>
<!-- <div class="beisuBtn" id="beisuBtn" @tap="renderScript.changeSpeed">倍速</div> -->
</view> </view>
<view style="width: 100%; height: 200px; position: relative" v-else> <view style="width: 100%; height: 200px; position: relative" v-else>
<video @timeupdate="videoTimeUpdateEvent($event)" ref="videos" style="width: 100%; height: 100%" autoplay <video
id="videoId" object-fit="contain" class="video-box" :src="videoUrl" @timeupdate="videoTimeUpdateEvent($event)"
:poster="`${videoUrl}?x-oss-process=video/snapshot,t_${1},f_jpg`" @play="playVideo"> ref="videos"
style="width: 100%; height: 100%"
autoplay
id="videoId"
object-fit="contain"
class="video-box"
:src="videoUrl"
:poster="`${videoUrl}?x-oss-process=video/snapshot,t_${1},f_jpg`"
@play="playVideo"
>
<cover-view style="position: absolute; top: 10px; z-index: 80"> <cover-view style="position: absolute; top: 10px; z-index: 80">
<cover-view class="returnBack" @click="goBack"> <cover-view class="returnBack" @click="goBack">
<uni-icons type="back" size="26" color="#fff"></uni-icons> <uni-icons type="back" size="26" color="#fff"></uni-icons>
@@ -60,10 +80,7 @@
</template> </template>
<script> <script>
import $http from "@/config/requestConfig.js"; import $http from "@/config/requestConfig.js";
import { import { mapState, mapMutations } from "vuex";
mapState,
mapMutations
} from "vuex";
// importScripts('@/static/aliplayer/aliplayer-min.js') // importScripts('@/static/aliplayer/aliplayer-min.js')
export default { export default {
@@ -210,9 +227,9 @@
this.videoData.userCourseVideoPositionEntity this.videoData.userCourseVideoPositionEntity
); );
if (!this.isSetFirstTime) { if (!this.isSetFirstTime) {
var netWork = this.videoData.userCourseVideoPositionEntity ? var netWork = this.videoData.userCourseVideoPositionEntity
this.videoData.userCourseVideoPositionEntity.position : ? this.videoData.userCourseVideoPositionEntity.position
0; : 0;
var list = JSON.parse(uni.getStorageSync("videoOssList")); var list = JSON.parse(uni.getStorageSync("videoOssList"));
console.log("这是获取接口 设置的起始时长", netWork); console.log("这是获取接口 设置的起始时长", netWork);
var index = list.findIndex((e) => e.id == this.videoData.id); var index = list.findIndex((e) => e.id == this.videoData.id);
@@ -366,6 +383,7 @@
</script> </script>
<script module="renderScript" lang="renderjs"> <script module="renderScript" lang="renderjs">
import $ from 'jquery' import $ from 'jquery'
// import StaticADComponent from './staticadcomponent/index.js'; // import StaticADComponent from './staticadcomponent/index.js';
/** /**
@@ -433,17 +451,33 @@
var that = this; var that = this;
// this.$emit('changeScreenLoading',true) // this.$emit('changeScreenLoading',true)
var status=this.player.fullscreenService.getIsFullScreen(); var status=this.player.fullscreenService.getIsFullScreen();
ownerInstance.callMethod('screenChange', { ownerInstance.callMethod('screenChange', {
status:status, status:status,
primary:status?'portrait':'landscape' primary:status?'portrait':'landscape'
}) })
if(status){ if(status){
setTimeout(() => { setTimeout(() => {
plus.screen.lockOrientation("portrait-primary"); //锁死屏幕方向为竖屏 plus.screen.lockOrientation("portrait-primary"); //锁死屏幕方向为竖屏
this.player.fullscreenService.cancelFullScreen() ; this.player.fullscreenService.cancelFullScreen() ;
// this.$emit('changeScreenLoading',false); // this.$emit('changeScreenLoading',false);
}, 100); }, 100);
// this.player.setPlayerSize('100%','200px'); // this.player.setPlayerSize('100%','200px');
}else{ }else{
// this.player.setPlayerSize({ // this.player.setPlayerSize({
@@ -457,11 +491,14 @@
plus.screen.lockOrientation("landscape-primary"); plus.screen.lockOrientation("landscape-primary");
}, 100); }, 100);
} }
}, },
changeSpeed(event, ownerInstance){
console.log('点击了');
},
endEmitData(event, ownerInstance) { endEmitData(event, ownerInstance) {
var that = this; var that = this;
@@ -529,8 +566,10 @@
waiting: function (player, e) { waiting: function (player, e) {
// this.$html.hide() // this.$html.hide()
}, },
timeupdate: function(player, e) {}, timeupdate: function (player, e) {
error: function(player, e) {}, },
error: function (player, e) {
},
/** /**
* 显示广告 * 显示广告
*/ */
@@ -567,17 +606,9 @@
// */ // */
// args: ['本课程版权归天津众妙之门科技有限公司所有,翻版必究!', {fontSize: '16px', color: 'red',}, 'random'] // args: ['本课程版权归天津众妙之门科技有限公司所有,翻版必究!', {fontSize: '16px', color: 'red',}, 'random']
// }, // },
{name:'adComponent',type:fullScreenButtonComponent,args:['http://101.201.146.165:8088/Pf-EH/statics/uploadFile/2024-05-10/b0f420c7-9178-41ad-9dd6-f59a64a6e190.png']},
{
name: 'adComponent',
type: fullScreenButtonComponent,
args: [
'http://101.201.146.165:8088/Pf-EH/statics/uploadFile/2024-05-10/b0f420c7-9178-41ad-9dd6-f59a64a6e190.png']
},
{
name: 'RateComponent',
type: AliPlayerComponent.RateComponent
},
// { // {
// name: 'RotateMirrorComponent', // name: 'RotateMirrorComponent',
@@ -587,77 +618,24 @@
], ],
skinLayout: [{ skinLayout:[
name: "bigPlayButton", {name: "bigPlayButton", align: "blabs", x: 30, y: 80},
align: "blabs", {name: "H5Loading", align: "cc"},
x: 30, {name: "errorDisplay", align: "tlabs", x: 0, y: 0},
y: 80 {name: "infoDisplay"},
}, {name:"tooltip", align:"blabs",x: 0, y: 56},
{name: "thumbnail"},
{ {
name: "H5Loading", name: "controlBar", align: "blabs", x: 0, y: 0,
align: "cc" children: [
}, {name: "progress", align: "blabs", x: 0, y: 44},
{ {name: "playButton", align: "tl", x: 15, y: 12},
name: "errorDisplay", {name: "timeDisplay", align: "tl", x: 10, y: 7},
align: "tlabs",
x: 0,
y: 0
},
{
name: "infoDisplay"
},
{
name: "tooltip",
align: "blabs",
x: 0,
y: 56
},
{
name: "thumbnail"
},
{
name: "controlBar",
align: "blabs",
x: 0,
y: 0,
children: [{
name: "progress",
align: "blabs",
x: 0,
y: 44
},
{
name: "playButton",
align: "tl",
x: 15,
y: 12
},
{
name: "timeDisplay",
align: "tl",
x: 10,
y: 7
},
// {name: "fullScreenButton", align: "tr", x: 10, y: 12}, // {name: "fullScreenButton", align: "tr", x: 10, y: 12},
// {name:"subtitle", align:"tr",x:15, y:12}, // {name:"subtitle", align:"tr",x:15, y:12},
{ {name:"setting", align:"tr",x:15, y:12},
name: "setting", {name:"prism-speed-selector", align:"tr",x:15, y:12},
align: "tr", {name: "volume", align: "tr", x: 5, y: 10}
x: 15,
y: 12
},
{
name: "prism-speed-selector",
align: "tr",
x: 15,
y: 12
},
{
name: "volume",
align: "tr",
x: 5,
y: 10
}
] ]
} }
] ]
@@ -777,8 +755,7 @@
s_tag.onload = () => { s_tag.onload = () => {
const s_tag1 = document.createElement('script'); // 引入播放器js const s_tag1 = document.createElement('script'); // 引入播放器js
s_tag1.type = 'text/javascript'; s_tag1.type = 'text/javascript';
s_tag1.src = s_tag1.src = 'https://player.alicdn.com/aliplayer/presentation/js/aliplayercomponents.min.js';
'https://player.alicdn.com/aliplayer/presentation/js/aliplayercomponents.min.js';
s_tag1.charset = 'utf-8'; s_tag1.charset = 'utf-8';
s_tag1.onload = () => { s_tag1.onload = () => {
this.checkValue(); this.checkValue();
@@ -823,7 +800,6 @@
.container { .container {
width: 100vw; width: 100vw;
height: auto; height: auto;
/deep/.pause { /deep/.pause {
width: 60rpx !important; width: 60rpx !important;
height: 60rpx !important; height: 60rpx !important;
@@ -878,7 +854,6 @@
white-space: nowrap; white-space: nowrap;
pointer-events: auto; pointer-events: auto;
} }
cover-view { cover-view {
visibility: visible !important; visibility: visible !important;
} }
@@ -896,7 +871,6 @@
display: flex; display: flex;
align-items: center; align-items: center;
position: relative; position: relative;
i { i {
color: #fff; color: #fff;
display: inline-block; display: inline-block;
@@ -904,34 +878,27 @@
display: block; display: block;
margin-top: 7px; margin-top: 7px;
cursor: pointer; cursor: pointer;
& + i { & + i {
margin-left: 3px; margin-left: 3px;
} }
@media (min-width: 768px) { @media (min-width: 768px) {
&:hover + .player-tooltip { &:hover + .player-tooltip {
display: block; display: block;
} }
} }
} }
.player-tooltip { .player-tooltip {
&.prev { &.prev {
left: -10px; left: -10px;
} }
&.list { &.list {
left: 5px; left: 5px;
} }
&.next { &.next {
right: -12px; right: -12px;
} }
} }
} }
.playlist-content { .playlist-content {
position: absolute; position: absolute;
right: 0; right: 0;
@@ -941,13 +908,11 @@
height: 100%; height: 100%;
transition: all 0.38s ease-in-out; transition: all 0.38s ease-in-out;
overflow: hidden; overflow: hidden;
.list { .list {
background-color: #000; background-color: #000;
background-color: rgba(0, 0, 0, 0.3); background-color: rgba(0, 0, 0, 0.3);
height: 100%; height: 100%;
overflow: auto; overflow: auto;
.video-item { .video-item {
color: #fff; color: #fff;
padding: 0px 10px; padding: 0px 10px;
@@ -957,12 +922,10 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
cursor: pointer; cursor: pointer;
&.active { &.active {
background-color: #000; background-color: #000;
color: #00ddff; color: #00ddff;
} }
@media (min-width: 768px) { @media (min-width: 768px) {
&:hover { &:hover {
background-color: #000; background-color: #000;
@@ -1003,17 +966,13 @@
text-align: center; text-align: center;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
#rotating-div { #rotating-div {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background-color: #3498db; background-color: #3498db;
transform: rotate(90deg); transform: rotate(90deg); /* 旋转90度 */
/* 旋转90度 */ transform-origin: center center; /* 设置旋转中心点在div中心 */
transform-origin: center center; position: fixed; /* 固定定位,全屏显示 */
/* 设置旋转中心点在div中心 */
position: fixed;
/* 固定定位,全屏显示 */
left: 0; left: 0;
top: 0; top: 0;
bottom: 0; bottom: 0;

View File

@@ -223,6 +223,7 @@
</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>
<yk-screenRecord></yk-screenRecord>
<!-- <u-modal <!-- <u-modal
:show="show" :show="show"
:title="modalInfo.title" :title="modalInfo.title"
@@ -238,6 +239,7 @@
<script> <script>
import courseDescription from "@/pages/component/commonComponents/list"; import courseDescription from "@/pages/component/commonComponents/list";
import ykScreenRecord from '@/components/yk-screenRecord/yk-screenRecord';
import curriculumMp3 from "./mp3Detail.vue"; import curriculumMp3 from "./mp3Detail.vue";
import price from "./price/index.vue"; import price from "./price/index.vue";
@@ -248,6 +250,7 @@ export default {
courseDescription, //课程说明 courseDescription, //课程说明
price, //课程价格 price, //课程价格
curriculumMp3, //mp3 curriculumMp3, //mp3
ykScreenRecord
}, },
data() { data() {
return { return {

File diff suppressed because it is too large Load Diff

View File

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