1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054 |
- <template>
- <view>
- <view style="position: fixed;width: 100%;z-index: 999;background: #FFFFFF;top: 0;" id="top">
- <view class="video_box" v-if="!startStatus">
- <image :src="$method.splitImgHost(detail.coverUrl)" style="width: 100%;height: 460rpx;"></image>
- <image v-if="false" class="video_play" src="/static/play.png" @click="startVideo"></image>
- </view>
- <view v-else class="video_box" style="width: 100%;height: 460rpx;">
- <polyv-player
- id="playerVideo"
- playerId="playerVideo"
- height="460rpx"
- :vid="vid"
- :showSettingBtn="true"
- :enablePlayGesture="true"
- @statechange="onStateChange"
- :autoplay="autoplay"
- :isAllowSeek="isAllowSeek"
- :playbackRate="playbackRate"
- ></polyv-player>
- </view>
- <view>
- <u-row>
- <u-col span="10">
- <view class="video_t1">{{ detail.courseName }}</view>
- </u-col>
- <u-col span="2">
- <view class="video_t1_t" @click="openPhoto">
- <image src="/static/icon/jy_icon.png" style="width: 40rpx;height: 40rpx;"></image>
- 讲义
- </view>
- </u-col>
- </u-row>
- </view>
- <u-line color="#D6D6DB" />
- <view style="display: flex;justify-content: center;">
- <view style="width: 280px;">
- <u-tabs :list="list" font-size="24" bar-width="80" :current="current" @change="change" active-color="#007AFF"></u-tabs>
- </view>
- </view>
- <u-line color="#D6D6DB" />
- </view>
- <view class="box">
- <!--目录 -->
- <view v-show="current == 0">
- <view class="menuBox" v-for="(item, index) in reMenuList">
- <!--模块 -->
- <view v-if="item.type == 1"><courseModule :gradeId="gradeId" :isRebuild="true" :isBuy="true" :menuItem="item" :levelId="item.menuId"></courseModule></view>
- <!--章 -->
- <view v-if="item.type == 2"><courseChapter :gradeId="gradeId" :isRebuild="true" :isBuy="true" :menuItem="item" :levelId="'0-'+item.menuId"></courseChapter></view>
- <!--节 -->
- <view v-if="item.type == 3"><courseSection :gradeId="gradeId" :isRebuild="true" :isBuy="true" :menuItem="item" :levelId="'0-0-'+item.menuId"></courseSection></view>
- </view>
- </view>
- <!--目录 -->
- <view v-show="current == 1">
- <view class="menuBox" v-for="(item, index) in menuList">
- <!--模块 -->
- <view v-if="item.type == 1"><courseModule :isBuy="true" :menuItem="item" :levelId="item.menuId"></courseModule></view>
- <!--章 -->
- <view v-if="item.type == 2"><courseChapter :isBuy="true" :menuItem="item" :levelId="'0-'+item.menuId"></courseChapter></view>
- <!--节 -->
- <view v-if="item.type == 3"><courseSection :isBuy="true" :menuItem="item" :levelId="'0-0-'+item.menuId"></courseSection></view>
- </view>
- </view>
- <!--笔记 -->
- <view v-show="current == 2">
- <view class="inputBottom">
- <view style="width: 10%;"><image src="/static/icon/note3.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image></view>
- <view style="width: 73%;height: 88rpx;margin-bottom: 15rpx;">
- <u-input height="78" fixed="true" :placeholder="placeholder" type="textarea" :custom-style="inputStyle" v-model="value" />
- </view>
- <view style="color: #007AFF;font-size: 30rpx;font-weight: bold;width: 15%;text-align: center;">提交</view>
- </view>
- <view v-for="(item, index) in menuList">
- <view class="dateBox">2021年10月30日</view>
- <view class="noteBox">
- <view class="tBox">
- <image src="/static/icon/note1.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
- <view class="title leftPadding">施工承发包模式-施工合同与物资采购合同</view>
- </view>
- <view class="tBox2">
- <view class="title" style="width: 39rpx;height: 39rpx;margin:0 29rpx;">00:20</view>
- <view class="t2Content leftPadding">这是一段用户记录的笔记本文,当内容过长时 需要换行,完整显示文字内容。</view>
- </view>
- <view class="tBox">
- <image src="/static/icon/note2.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
- <view class="title leftPadding">施工承发包模式-施工合同与物资采购合同</view>
- </view>
- <view style="margin-left: 97rpx;" class="t2Content leftPadding">这是一段用户记录的笔记本文,当内容过长时 需要换行,完整显示文字内容。</view>
- </view>
- </view>
- </view>
- <!--答疑 -->
- <view v-show="current == 3">
- <view class="inputBottom">
- <view style="width: 73%;height: 88rpx;margin-bottom: 15rpx;margin-left: 10% ;">
- <u-input height="78" fixed="true" placeholder="您可以在这里输入答疑内容" type="textarea" :custom-style="inputStyle" v-model="value" />
- </view>
- <view style="color: #007AFF;font-size: 30rpx;font-weight: bold;width: 15%;text-align: center;" @click="postContent">提交</view>
- </view>
- <view v-for="(item, index) in answerList" style="background-color: #FFFFFF;">
- <view class="chat_box">
- <view style="display: flex;">
- <view><image :src="$method.splitImgHost(item.avatar)" style="width: 64rpx;height: 64rpx;"></image></view>
- <view style="margin-left: 15rpx;">
- <view class="chat1">{{item.realname}}</view>
- <view class="chat2">{{$method.timestampToTime(item.createTime)}}</view>
- <view class="chat3">{{item.answerText}}</view>
- </view>
- </view>
- <view class="btnReply" @click="replyContent(item)" v-if="item.userId!=userInfo.userId">回复</view>
- <view v-else class="btnDel" @click="delContent(item)">删除</view>
- </view>
- <u-line color="#D6D6DB" />
- </view>
- <view v-if="answerList.length==0" style="text-align: center;">
- 暂无记录
- </view>
- </view>
- </view>
- <!-- 播放前拍照start -->
- <u-popup v-model="photoPopup" mode="bottom" border-radius="32" :mask-close-able="false">
- <view class="photoBox">
- <view class="photoTop">
- <view class="sqzz" v-if="true">
- <u-icon name="close" color="#333333" size="30" @click="closePhoto"></u-icon>
- </view>
- <view class="centersq">
- 请正视手机屏幕
- </view>
- <view class="sqzz">
-
- </view>
- </view>
- <view class="photoCenter">
- <camera device-position="front" flash="off" @error="error" style="width: 100%; height: 100%" v-if="photoPopup"></camera>
- <view class="custom">
- <image src="@/pages2/static/zhezhao.png" mode=""></image>
- </view>
- </view>
- <view class="btnResult" @click="takePhoto">
- 拍照
- </view>
- </view>
- </u-popup>
- <!-- 播放前拍照end -->
- </view>
- </template>
- <script>
- import eventHub from '@/common/eventHub.js';
- import courseModule from '@/components/course/courseModule.vue';
- import courseChapter from '@/components/course/courseChapter.vue';
- import courseSection from '@/components/course/courseSection.vue';
- import { mapGetters } from 'vuex';
- export default {
- components: {
- courseModule,
- courseChapter,
- courseSection
- },
- data() {
- return {
- startStatus: false,
- detail: {},
- courseId: 0,
- placeholder: '您可以在这里输入笔记内容\n还可以点击左侧图标为笔记加上时间标记',
- inputStyle: {
- background: 'rgba(244, 244, 244, 0.98)',
- borderRadius: '24rpx',
- padding: '8rpx',
- marginBottom: '10rpx'
- },
- playbackRate: [0.5, 0.8, 1.0],
- list: [
- {
- name: '重修目录'
- },
- {
- name: '目录'
- },
- {
- name: '笔记'
- },
- {
- name: '答疑'
- }
- ],
- menuList: [
- ],
- current: 1,
- vid:'',
- goodsId:0,
- goodsData:{},
- photoPopup:false,
- goodsPlayConfig:null,
- autoplay:false,
- isAllowSeek:'no',
- playbackRate: [1.0],
- timer:null,
- goodsPhotographConfig:null,
- intervalTimeList:[],// 间隔拍照时长
- intervalTimeIndex:0 ,//当前处于哪个时间段拍照
- playTime:0 ,//页面播放时长,不含暂停
- currentTime:0,
- avatarUrl:'',
- ossAvatarUrl:'',
- studyDuration:0, // 当前视频时长
- gradeId:0,
- chapterId:0,
- moduleId:0,
- reMenuList: [],
- answerList: []
- };
- },
- onUnload() {},
- computed: { ...mapGetters(['userInfo','playSectionId']) },
- onLoad(option) {
- this.courseId = option.id;
- this.goodsId = uni.getStorageSync('courseGoodsId');
- this.courseDetail();
- this.getGoodsDetail()
- this.getAnswerList()
-
- },
- onShow() {},
- onUnload() {
- if(this.playSectionId>0){
- //退出提交记录
- this.ossAvatarUrl = ""
- this.postStudyRecord()
- //清除正在播放的节ID
- this.$store.commit('setPlaySectionId', {playSectionId :0});
- }
-
- },
- mounted() {
- eventHub.$on('getSection', item => {
- if(this.timer){
- clearInterval(this.timer);
- }
- if(this.vid){
- //切换视频
- var polyvPlayerContext = this.selectComponent('#playerVideo');
- polyvPlayerContext.changeVid(item.recordingUrl)
- }else{
- this.vid = item.recordingUrl
- }
- this.startStatus = true
- this.startTime = 0
- });
- eventHub.$on('levelId', item => {
- let arr = item.split('-')
- //点击节获取的各层级ID
- this.moduleId = arr[0]
- this.chapterId = arr[1]
- console.log(item,99)
- });
- },
- methods: {
- replyContent(item){
-
- },
- delContent(item){
-
- },
- postAnswer() {
- let self = this;
- this.$api.postAnswer({ courseId: this.courseId,answerText:this.value }).then(res => {
- if (res.data.code == 200) {
- this.$u.toast('发布成功');
- self.getAnswerList()
- self.value = ''
- }
- });
- },
- postContent(){
- if(!this.value){
- this.$u.toast('请输入内容');
- }
- this.postAnswer()
- },
- postStudyRecord(status=0) {
- let self = this;
- let data = {
- photo:self.ossAvatarUrl,
- sectionId:parseInt(self.playSectionId),
- goodsId:parseInt(self.goodsId),
- courseId:parseInt(self.courseId),
- studyDuration:parseInt(self.studyDuration),
- gradeId:parseInt(self.gradeId),
- chapterId:parseInt(self.chapterId),
- moduleId:parseInt(self.moduleId)
- }
- if(status>0){
- data.status = status
- }
- console.log("提交接口",data)
- this.$api.studyRecord(data).then(res => {
- console.log(res)
- });
- },
- uploadFile(options, int) {
- var self = this;
- return new Promise((resolve, reject) => {
- var data = {
- imageStatus: int
- };
- self.$api.aliyunpolicy(data).then(res => {
- if(res.data.code!=200){
- self.$method.showToast('签名错误'+JSON.stringify(res.data))
- return
- }
- var ossToken = res.data.data.resultContent;
- if(ossToken.host==null||ossToken.host==undefined){
- self.$method.showToast('上传路径报错'+JSON.stringify(res.data))
- return
- }
- uni.uploadFile({
- url: ossToken.host,
- name: 'file',
- filePath: options,
- fileType: 'image',
- header: {
- AuthorizationToken: 'WX ' + uni.getStorageSync('token')
- },
- formData: {
- key: ossToken.dir,
- OSSAccessKeyId: ossToken.accessid,
- policy: ossToken.policy,
- Signature: ossToken.signature,
- callback: ossToken.callback,
- success_action_status: 200
- },
- success: result => {
- if (result.statusCode === 200) {
- self.ossAvatarUrl = ossToken.dir;
- resolve();
- } else {
- uni.showToast({
- title: '上传失败',
- icon: 'none'
- });
- return;
- }
- },
- fail: error => {
- uni.showToast({
- title: '上传接口报错'+error,
- icon: 'none'
- });
- return;
- }
- });
- });
- });
- },
- imageInfos(){
- var self = this
- return new Promise((resolve, reject) => {
- uni.getImageInfo({
- src: self.avatarUrl,
- success: async res => {
- let canvasWidth = res.width; //图片原始长宽
- let canvasHeight = res.height;
- if (canvasWidth > 1000 || canvasHeight > 1000) {
- uni.compressImage({
- src: self.avatarUrl,
- quality: 75,
- width: '50%',
- height: '50%',
- success: async rest => {
- const waitUpload = await self.uploadFile(rest.tempFilePath, 0);
- resolve()
- }
- });
- } else {
- console.log('无需压缩');
- const waitUpload = await self.uploadFile(self.avatarUrl, 0);
- resolve()
- }
- }
- });
- });
- },
- timeEvent() {
- let self = this
- var polyvPlayerContext = this.selectComponent('#playerVideo');
- if (polyvPlayerContext != null) {
- let PlayCurrentTime = polyvPlayerContext.getCurrentTime();
- this.studyDuration = PlayCurrentTime
- if(this.currentTime<PlayCurrentTime){
- this.playTime+=(PlayCurrentTime-this.currentTime)
- this.currentTime = PlayCurrentTime
- }else{
- this.currentTime = PlayCurrentTime
- }
- //判断是否需要拍照
- if(this.intervalTimeList.length>this.intervalTimeIndex){
- let photoTime = Number(this.intervalTimeList[this.intervalTimeIndex]) * 60 //获取拍照秒数
- if(photoTime<this.playTime){
- //启动拍照
- //暂停
- polyvPlayerContext.exitFullScreen()
- polyvPlayerContext.pause()
- this.openPhoto();
- this.intervalTimeIndex++
- }
- }
-
- }
- },
- onStateChange(newstate, oldstate) {
- if (newstate.detail.newstate == 'playing') {
- //开始播放
- if(this.timer){
- clearInterval(this.timer);
- }
- this.timer = setInterval(this.timeEvent, 1500);//定时器
- }
- if (newstate.detail.newstate == 'pause') {
- //暂停提交记录
- /* this.ossAvatarUrl = ""
- this.postStudyRecord() */
- }
- if (newstate.detail.newstate == 'ended') {
- this.ossAvatarUrl = ""
- this.postStudyRecord(1)
- }
-
-
- },
- //拍照
- openPhoto(){
- this.photoPopup = true
- },
- async submit(){
- const waitYS = await this.imageInfos();
- this.postStudyRecord()//提交记录
- //恢复播放
- var polyvPlayerContext = this.selectComponent('#playerVideo');
- if (polyvPlayerContext != null) {
- polyvPlayerContext.play();
- }
- console.log(this.ossAvatarUrl,"拍照完成456")
- },
- //确认拍照
- takePhoto() {
- var self = this
- const ctx = uni.createCameraContext();
- ctx.takePhoto({
- quality: 'high',
- success: res => {
- console.log(res.tempImagePath)
- self.avatarUrl = res.tempImagePath
- self.submit()
-
- self.photoPopup = false
- },
- fail: err => {
- console.log(err)
- }
- });
- },
- //拍照报错
- error(e) {
- console.log(e.detail);
- },
- //关闭相机
- closePhoto(){
- this.photoPopup = false
- },
- getGoodsDetail(){
- let self = this
- this.$api.goodsDetail(this.goodsId).then(res => {
- self.goodsData = res.data.data;
- self.gradeId = self.goodsData.gradeId
- self.getMenuList();
- self.getReMenuList() //获取重修目录
- if(self.goodsData.goodsPlayConfig){
- self.goodsPlayConfig = JSON.parse(self.goodsData.goodsPlayConfig);
- if(self.goodsPlayConfig.autoPlay>0){
- self.autoplay = true
- }
- if(self.goodsPlayConfig.drag>0){
- self.isAllowSeek = "yes"
- }
- if(self.goodsPlayConfig.speed>0){
- self.playbackRate = [0.5,0.8,1.0,1.25,1.5,2.0]
- }
- }
- if(self.goodsData.goodsPhotographConfig){
- self.goodsPhotographConfig = JSON.parse(self.goodsData.goodsPhotographConfig);
- if(self.goodsPhotographConfig.intervalTime){
- self.intervalTimeList = self.goodsPhotographConfig.intervalTime.split(',')
- }
- }
- })
- },
- startVideo() {
- this.startStatus = true;
- },
- getAnswerList() {
- let self = this;
- this.$api.answerList({ courseId: this.courseId }).then(res => {
- if (res.data.code == 200) {
- self.answerList = res.data.rows;
- }
- });
- },
- getReMenuList() {
- let self = this;
- this.$api.reMenuList({ courseId: this.courseId,rebuild:1,gradeId:this.gradeId }).then(res => {
- if (res.data.code == 200) {
- for (let i = 0; i < res.data.rows.length; i++) {
- let item = res.data.rows[i];
- item.down = true;
- item.id = item.menuId;
- item.name = item.menuName;
- }
- self.reMenuList = res.data.rows;
- }
- });
- },
- getMenuList() {
- let self = this;
- this.$api.menuList({ courseId: this.courseId }).then(res => {
- if (res.data.code == 200) {
- for (let i = 0; i < res.data.rows.length; i++) {
- let item = res.data.rows[i];
- item.down = true;
- item.id = item.menuId;
- item.name = item.menuName;
- }
- self.menuList = res.data.rows;
- }
- });
- },
- courseDetail() {
- let self = this;
- this.$api.courseDetail(this.courseId).then(res => {
- if (res.data.code == 200) {
- self.detail = res.data.data;
- self.gradeId = self.detail.gradeId
- }
- });
- },
- open(item) {
- item.showChildren = !item.showChildren;
- },
- change(index) {
- this.current = index;
- }
- }
- };
- </script>
- <style lang="scss" scope>
- .btnReply{
- width: 80rpx;
- height: 40rpx;
- background: #E3F0FF;
- border-radius: 16rpx;
- text-align: center;
- color: #007AFF;
- }
- .btnDel{
- width: 80rpx;
- height: 40rpx;
- background: #FFEDF0;
- border-radius: 16rpx;
- text-align: center;
- color: #FF2D55;
- }
- .btnReply{
- width: 80rpx;
- height: 40rpx;
- background: #E3F0FF;
- border-radius: 16rpx;
- font-size: 24rpx;
- }
- .photoBox{
- .photoTop{
- height: 74upx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0upx 38upx;
- .sqzz{
- width: 28upx;
- height: 28upx;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .centersq{
- color: #333;
- font-size: 30upx;
- font-weight: 500;
- }
- }
- .photoCenter{
- width: 750upx;
- height: 979upx;
- position: relative;
- .custom{
- width: 750upx;
- height: 979upx;
- position: absolute;
- top: 0;
- left: 0;
- image{
- width: 100%;
- height: 100%;
- }
- }
- }
- .btnResult{
- height: 100upx;
- width: 100%;
- background-color: #07c160;
- text-align: center;
- line-height: 100upx;
- color: #fff;
- font-size: 32upx;
- font-weight: bold;
- }
- }
- .chat_box {
- display: flex;
- padding: 20rpx;
- justify-content: space-between;
- }
- .chat3 {
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- margin-top: 10rpx;
- }
- .chat2 {
- font-size: 20rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- margin-top: 10rpx;
- }
- .chat1 {
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- }
- .leftPadding {
- margin-left: 8rpx;
- }
- .t2Content {
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #333333;
- line-height: 48rpx;
- }
- .tBox2 {
- display: flex;
- padding-top: 10rpx;
- }
- .tBox {
- display: flex;
- align-items: center;
- padding-top: 10rpx;
- }
- .title {
- font-size: 24rpx;
- color: #999999;
- }
- page {
- padding-top: 10px;
- padding-top: constant(safe-area-inset-top);
- padding-top: env(safe-area-inset-top);
- }
- .inputBottom {
- position: fixed;
- left: 0;
- bottom: 0;
- background: #ffffff;
- height: 98rpx;
- display: flex;
- align-items: center;
- width: 100%;
- }
- .noteBox {
- width: 100%;
- background: #ffffff;
- border-radius: 16rpx;
- padding: 10rpx;
- }
- .dateBox {
- width: 216rpx;
- height: 48rpx;
- background: #ffffff;
- border-radius: 24rpx;
- font-size: 24rpx;
- color: #666666;
- text-align: center;
- line-height: 48rpx;
- margin: 20rpx 0;
- }
- .t_content1 {
- color: #007aff;
- margin-left: 10rpx;
- }
- .tag1 {
- border: 2rpx solid #007aff;
- border-radius: 8rpx;
- font-size: 20rpx;
- color: #007aff;
- padding: 5rpx;
- }
- .b_title {
- color: #333333;
- font-size: 30rpx;
- font-weight: bold;
- }
- page {
- background: #eaeef1;
- }
- .menuBox {
- width: 100%;
- background: #ffffff;
- border-radius: 16rpx;
- padding: 20rpx;
- margin-bottom: 20rpx;
- }
- .btnspric {
- border-top: 1rpx solid #eee;
- display: flex;
- align-items: center;
- justify-content: space-between;
- height: 108rpx;
- padding-left: 43rpx;
- padding-right: 32rpx;
- }
- .btnspric > .lefprL {
- font-size: 36rpx;
- color: #0c141f;
- font-weight: bold;
- }
- .btnspric > .lefprR {
- padding: 0rpx 24rpx;
- height: 60rpx;
- line-height: 60rpx;
- text-align: center;
- color: #fff;
- background: #32467b;
- border-radius: 24rpx;
- box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
- }
- .yhj,
- .hdyhj {
- padding: 24rpx 29rpx 24rpx 34rpx;
- }
- .yhj {
- border-bottom: 16rpx solid #f9f9f9;
- }
- .yhjtit {
- font-size: 30rpx;
- color: #0c141f;
- font-weight: 500;
- margin-bottom: 14rpx;
- }
- .yhjList {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 14rpx;
- }
- .yhjList > .yhjLefts {
- display: flex;
- align-items: center;
- }
- .yhjLefts > .yhl {
- color: #32467b;
- font-size: 30rpx;
- margin-right: 31rpx;
- }
- .yhjLefts > .yhbq {
- font-size: 24rpx;
- color: #ff9500;
- border-radius: 18rpx;
- background-color: rgba(255, 149, 0, 0.2);
- border: 2rpx solid #ff9500;
- height: 38rpx;
- line-height: 38rpx;
- padding: 0rpx 16rpx;
- }
- .ts {
- font-size: 24rpx;
- color: #999;
- margin: 14rpx 0rpx;
- padding-right: 29rpx;
- padding-left: 34rpx;
- }
- .yh {
- padding-top: 20rpx;
- }
- .yh > .yhtitle {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding-right: 29rpx;
- padding-left: 34rpx;
- }
- .priceBxs {
- display: flex;
- align-items: center;
- }
- .priceBxs > .pricleft {
- border-radius: 24rpx;
- border: 1rpx solid #e91313;
- background-color: rgba(233, 19, 19, 0.1);
- padding: 0rpx 18rpx;
- height: 49rpx;
- line-height: 49rpx;
- text-align: center;
- font-size: 30rpx;
- font-weight: 500;
- color: #e91313;
- margin-right: 13rpx;
- }
- .topBox {
- padding: 32rpx 32rpx 24rpx;
- border-bottom: 1rpx solid #eeeeee;
- }
- .topBox > .boldFonstType {
- font-weight: 500;
- font-size: 30rpx;
- margin: 16rpx 0rpx 23rpx;
- }
- .topBox > .firstTopL {
- display: flex;
- align-items: center;
- }
- .topBox > .firstTopL > .imageBs {
- width: 331rpx;
- height: 160rpx;
- border-radius: 6rpx;
- overflow: hidden;
- margin-right: 8rpx;
- box-shadow: 0rpx 6rpx 6rpx 0rpx rgba(47, 67, 121, 0.08);
- }
- .topBox > .firstTopL > .imageBs > image {
- width: 100%;
- height: 100%;
- }
- .topBox > .firstTopL > .textBs {
- font-size: 30rpx;
- font-weight: bold;
- color: #0c141f;
- }
- .content {
- padding: 24rpx;
- text-align: left;
- }
- .catalogBox {
- display: flex;
- align-items: center;
- flex-wrap: nowrap;
- overflow-x: auto;
- padding-left: 38rpx;
- max-height: 305rpx;
- overflow-y: auto;
- transition: all 0.4s;
- }
- .catalogBox > .catalogA {
- min-width: 200rpx;
- height: 48rpx;
- line-height: 48rpx;
- // text-align: center;
- border: 2rpx solid transparent;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- word-break: break-all;
- border-radius: 10rpx;
- background: rgba(22, 119, 255, 0.05);
- padding-left: 19rpx;
- box-sizing: border-box;
- padding-right: 15rpx;
- margin-right: 16rpx;
- margin-bottom: 20rpx;
- margin-top: 15rpx;
- font-size: 24rpx;
- color: #666;
- }
- .catalogBox > .activesq {
- border-color: #1677ff;
- }
- .changeCatalogBox {
- display: block;
- }
- .catalogBox::-webkit-scrollbar {
- display: none; /* Chrome Safari */
- }
- .box {
- position: relative;
- top: 650rpx;
- padding-bottom: 88rpx;
- margin: 20rpx;
- }
- .price_t2 {
- font-size: 18rpx;
- font-family: PingFang SC;
- font-weight: 500;
- text-decoration: line-through;
- color: #999999;
- }
- .price_t1 {
- font-size: 33rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #e91313;
- }
- .sc_t {
- font-size: 22rpx;
- color: #000000;
- }
- .sc {
- width: 29rpx;
- height: 29rpx;
- }
- .buy {
- width: 138rpx;
- height: 48rpx;
- line-height: 48rpx;
- background: #32467b;
- border-radius: 10rpx;
- color: #ffffff;
- font-size: 28rpx;
- text-align: center;
- vertical-align: middle;
- position: absolute;
- right: 30rpx;
- }
- .video_body {
- padding-bottom: 96rpx;
- }
- .footer_tab {
- position: fixed;
- bottom: 0;
- height: 96rpx;
- width: 100%;
- background-color: #ffffff;
- }
- .tj_box {
- width: 50%;
- display: inline-block;
- text-align: center;
- margin: 10rpx 0;
- }
- .teacher_t {
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 400;
- color: #666666;
- line-height: 36rpx;
- margin-left: 15rpx;
- }
- .teacher_img {
- width: 87rpx;
- height: 129rpx;
- }
- .t2 {
- font-size: 24rpx;
- font-family: PingFang SC;
- color: #666666;
- line-height: 36rpx;
- margin: 15rpx;
- }
- .r_t2 {
- width: 201rpx;
- height: 49rpx;
- background: rgba(22, 119, 255, 0.05);
- border: 1rpx solid #32467b;
- border-radius: 16rpx;
- color: #666666;
- font-size: 23rpx;
- text-align: center;
- display: flex;
- align-items: center;
- padding: 5rpx;
- }
- .scroll_box {
- width: 100%;
- height: 60rpx;
- background: #ffffff;
- box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
- white-space: nowrap;
- overflow: hidden;
- margin: 15rpx 0;
- }
- .r_sliper {
- padding: 0 20rpx;
- }
- .top_line {
- width: 6rpx;
- height: 22rpx;
- background: #32467b;
- margin-right: 10rpx;
- }
- .video_t2 {
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- }
- .video_t1 {
- height: 80rpx;
- color: #333333;
- line-height: 80rpx;
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #333333;
- }
- .video_t1_t {
- display: flex;
- flex-direction: column;
- height: 80rpx;
- color: #333333;
- text-align: center;
- align-items: center;
- border-left: solid 1px #d6d6db;
- }
- .video_play {
- position: absolute;
- width: 95rpx;
- height: 95rpx;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- margin: auto;
- }
- .video_box {
- position: relative;
- }
- .rotoct {
- transform: rotate(90deg);
- }
- </style>
|