detail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951
  1. <template>
  2. <view>
  3. <view style="position: fixed;width: 100%;z-index: 999;background: #FFFFFF;top: 0;" id="top">
  4. <view class="video_box" v-if="!startStatus">
  5. <image :src="$method.splitImgHost(detail.coverUrl)" style="width: 100%;height: 460rpx;"></image>
  6. <image v-if="false" class="video_play" src="/static/play.png" @click="startVideo"></image>
  7. </view>
  8. <view v-else class="video_box" style="width: 100%;height: 460rpx;">
  9. <polyv-player
  10. id="playerVideo"
  11. playerId="playerVideo"
  12. height="460rpx"
  13. :vid="vid"
  14. :showSettingBtn="true"
  15. :enablePlayGesture="true"
  16. @statechange="onStateChange"
  17. :autoplay="autoplay"
  18. :isAllowSeek="isAllowSeek"
  19. :playbackRate="playbackRate"
  20. ></polyv-player>
  21. </view>
  22. <view>
  23. <u-row>
  24. <u-col span="10">
  25. <view class="video_t1">{{ detail.courseName }}</view>
  26. </u-col>
  27. <u-col span="2">
  28. <view class="video_t1_t" @click="openPhoto">
  29. <image src="/static/icon/jy_icon.png" style="width: 40rpx;height: 40rpx;"></image>
  30. 讲义
  31. </view>
  32. </u-col>
  33. </u-row>
  34. </view>
  35. <u-line color="#D6D6DB" />
  36. <view>
  37. <view style="width: 240px;margin: 0 auto;">
  38. <u-tabs :list="list" item-width="150" font-size="24" bar-width="80" :current="current" @change="change" active-color="#007AFF"></u-tabs>
  39. </view>
  40. </view>
  41. <u-line color="#D6D6DB" />
  42. </view>
  43. <view class="box">
  44. <!--目录 -->
  45. <view v-show="current == 0">
  46. <view class="menuBox" v-for="(item, index) in menuList">
  47. <!--模块 -->
  48. <view v-if="item.type == 1"><courseModule :isBuy="true" :menuItem="item"></courseModule></view>
  49. <!--章 -->
  50. <view v-if="item.type == 2"><courseChapter :isBuy="true" :menuItem="item"></courseChapter></view>
  51. <!--节 -->
  52. <view v-if="item.type == 3"><courseSection :isBuy="true" :menuItem="item"></courseSection></view>
  53. </view>
  54. </view>
  55. <!--笔记 -->
  56. <view v-show="current == 1">
  57. <view class="inputBottom">
  58. <view style="width: 10%;"><image src="/static/icon/note3.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image></view>
  59. <view style="width: 73%;height: 88rpx;margin-bottom: 15rpx;">
  60. <u-input height="78" fixed="true" :placeholder="placeholder" type="textarea" :custom-style="inputStyle" v-model="value" />
  61. </view>
  62. <view style="color: #007AFF;font-size: 30rpx;font-weight: bold;width: 15%;text-align: center;">提交</view>
  63. </view>
  64. <view v-for="(item, index) in menuList">
  65. <view class="dateBox">2021年10月30日</view>
  66. <view class="noteBox">
  67. <view class="tBox">
  68. <image src="/static/icon/note1.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
  69. <view class="title leftPadding">施工承发包模式-施工合同与物资采购合同</view>
  70. </view>
  71. <view class="tBox2">
  72. <view class="title" style="width: 39rpx;height: 39rpx;margin:0 29rpx;">00:20</view>
  73. <view class="t2Content leftPadding">这是一段用户记录的笔记本文,当内容过长时 需要换行,完整显示文字内容。</view>
  74. </view>
  75. <view class="tBox">
  76. <image src="/static/icon/note2.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
  77. <view class="title leftPadding">施工承发包模式-施工合同与物资采购合同</view>
  78. </view>
  79. <view style="margin-left: 97rpx;" class="t2Content leftPadding">这是一段用户记录的笔记本文,当内容过长时 需要换行,完整显示文字内容。</view>
  80. </view>
  81. </view>
  82. </view>
  83. <!--答疑 -->
  84. <view v-show="current == 2">
  85. <view class="inputBottom">
  86. <view style="width: 73%;height: 88rpx;margin-bottom: 15rpx;margin-left: 10% ;">
  87. <u-input height="78" fixed="true" placeholder="您可以在这里输入答疑内容" type="textarea" :custom-style="inputStyle" v-model="value" />
  88. </view>
  89. <view style="color: #007AFF;font-size: 30rpx;font-weight: bold;width: 15%;text-align: center;">提交</view>
  90. </view>
  91. <view v-for="(item, index) in menuList" style="background-color: #FFFFFF;">
  92. <view class="chat_box">
  93. <view><image src="https://file-dev.xyyxt.net/oss/images/avatar/20210623/1624414559368_44562477.png" style="width: 64rpx;height: 64rpx;"></image></view>
  94. <view style="margin-left: 15rpx;">
  95. <view class="chat1">倪虹洁</view>
  96. <view class="chat2">2021/10/31 09:36:23</view>
  97. <view class="chat3">老师的课讲得太棒了!</view>
  98. </view>
  99. </view>
  100. <u-line color="#D6D6DB" />
  101. </view>
  102. </view>
  103. </view>
  104. <!-- 播放前拍照start -->
  105. <u-popup v-model="photoPopup" mode="bottom" border-radius="32" :mask-close-able="false">
  106. <view class="photoBox">
  107. <view class="photoTop">
  108. <view class="sqzz" v-if="true">
  109. <u-icon name="close" color="#333333" size="30" @click="closePhoto"></u-icon>
  110. </view>
  111. <view class="centersq">
  112. 请正视手机屏幕
  113. </view>
  114. <view class="sqzz">
  115. </view>
  116. </view>
  117. <view class="photoCenter">
  118. <camera device-position="front" flash="off" @error="error" style="width: 100%; height: 100%" v-if="photoPopup"></camera>
  119. <view class="custom">
  120. <image src="@/pages2/static/zhezhao.png" mode=""></image>
  121. </view>
  122. </view>
  123. <view class="btnResult" @click="takePhoto">
  124. 拍照
  125. </view>
  126. </view>
  127. </u-popup>
  128. <!-- 播放前拍照end -->
  129. </view>
  130. </template>
  131. <script>
  132. import eventHub from '@/common/eventHub.js';
  133. import courseModule from '@/components/course/courseModule.vue';
  134. import courseChapter from '@/components/course/courseChapter.vue';
  135. import courseSection from '@/components/course/courseSection.vue';
  136. import { mapGetters } from 'vuex';
  137. export default {
  138. components: {
  139. courseModule,
  140. courseChapter,
  141. courseSection
  142. },
  143. data() {
  144. return {
  145. startStatus: false,
  146. detail: {},
  147. courseId: 0,
  148. placeholder: '您可以在这里输入笔记内容\n还可以点击左侧图标为笔记加上时间标记',
  149. inputStyle: {
  150. background: 'rgba(244, 244, 244, 0.98)',
  151. borderRadius: '24rpx',
  152. padding: '8rpx',
  153. marginBottom: '10rpx'
  154. },
  155. playbackRate: [0.5, 0.8, 1.0],
  156. list: [
  157. {
  158. name: '目录'
  159. },
  160. {
  161. name: '笔记'
  162. },
  163. {
  164. name: '答疑'
  165. }
  166. ],
  167. menuList: [
  168. {
  169. list: [
  170. {
  171. showChildren: false,
  172. children: [1, 2, 3]
  173. },
  174. {
  175. showChildren: false,
  176. children: [1]
  177. },
  178. {
  179. showChildren: false,
  180. children: [1, 2]
  181. }
  182. ],
  183. type: 1
  184. },
  185. {
  186. type: 2,
  187. showChildren: false,
  188. list: [{}, {}, {}]
  189. },
  190. {
  191. type: 3,
  192. list: [{}, {}]
  193. }
  194. ],
  195. current: 0,
  196. vid:'',
  197. goodsId:0,
  198. goodsData:{},
  199. photoPopup:false,
  200. goodsPlayConfig:null,
  201. autoplay:false,
  202. isAllowSeek:'no',
  203. playbackRate: [1.0],
  204. timer:null,
  205. goodsPhotographConfig:null,
  206. intervalTimeList:[],// 间隔拍照时长
  207. intervalTimeIndex:0 ,//当前处于哪个时间段拍照
  208. playTime:0 ,//页面播放时长,不含暂停
  209. currentTime:0,
  210. avatarUrl:'',
  211. ossAvatarUrl:'',
  212. studyDuration:0 // 当前视频时长
  213. };
  214. },
  215. onUnload() {},
  216. computed: { ...mapGetters(['userInfo','playSectionId']) },
  217. onLoad(option) {
  218. this.courseId = option.id;
  219. this.goodsId = uni.getStorageSync('courseGoodsId');
  220. this.courseDetail();
  221. this.getMenuList();
  222. this.getGoodsDetail()
  223. },
  224. onShow() {},
  225. mounted() {
  226. eventHub.$on('getSection', item => {
  227. if(this.timer){
  228. clearInterval(this.timer);
  229. }
  230. if(this.vid){
  231. //切换视频
  232. var polyvPlayerContext = this.selectComponent('#playerVideo');
  233. polyvPlayerContext.changeVid(item.recordingUrl)
  234. }else{
  235. this.vid = item.recordingUrl
  236. }
  237. this.startStatus = true
  238. this.startTime = 0
  239. });
  240. },
  241. methods: {
  242. postStudyRecord() {
  243. console.log("提交接口A")
  244. let self = this;
  245. let data = {
  246. photo:self.ossAvatarUrl,
  247. sectionId:self.playSectionId,
  248. goodsId:self.goodsId,
  249. courseId:self.courseId,
  250. studyDuration:self.studyDuration,
  251. status:0
  252. }
  253. console.log("提交接口")
  254. this.$api.studyRecord(data).then(res => {
  255. console.log(res)
  256. });
  257. },
  258. uploadFile(options, int) {
  259. var self = this;
  260. return new Promise((resolve, reject) => {
  261. var data = {
  262. imageStatus: int
  263. };
  264. self.$api.aliyunpolicy(data).then(res => {
  265. if(res.data.code!=200){
  266. self.$method.showToast('签名错误'+JSON.stringify(res.data))
  267. return
  268. }
  269. var ossToken = res.data.data.resultContent;
  270. if(ossToken.host==null||ossToken.host==undefined){
  271. self.$method.showToast('上传路径报错'+JSON.stringify(res.data))
  272. return
  273. }
  274. uni.uploadFile({
  275. url: ossToken.host,
  276. name: 'file',
  277. filePath: options,
  278. fileType: 'image',
  279. header: {
  280. AuthorizationToken: 'WX ' + uni.getStorageSync('token')
  281. },
  282. formData: {
  283. key: ossToken.dir,
  284. OSSAccessKeyId: ossToken.accessid,
  285. policy: ossToken.policy,
  286. Signature: ossToken.signature,
  287. callback: ossToken.callback,
  288. success_action_status: 200
  289. },
  290. success: result => {
  291. if (result.statusCode === 200) {
  292. self.ossAvatarUrl = ossToken.dir;
  293. resolve();
  294. } else {
  295. uni.showToast({
  296. title: '上传失败',
  297. icon: 'none'
  298. });
  299. return;
  300. }
  301. },
  302. fail: error => {
  303. uni.showToast({
  304. title: '上传接口报错'+error,
  305. icon: 'none'
  306. });
  307. return;
  308. }
  309. });
  310. });
  311. });
  312. },
  313. imageInfos(){
  314. var self = this
  315. return new Promise((resolve, reject) => {
  316. uni.getImageInfo({
  317. src: self.avatarUrl,
  318. success: async res => {
  319. let canvasWidth = res.width; //图片原始长宽
  320. let canvasHeight = res.height;
  321. if (canvasWidth > 1000 || canvasHeight > 1000) {
  322. uni.compressImage({
  323. src: self.avatarUrl,
  324. quality: 75,
  325. width: '50%',
  326. height: '50%',
  327. success: async rest => {
  328. const waitUpload = await self.uploadFile(rest.tempFilePath, 0);
  329. resolve()
  330. }
  331. });
  332. } else {
  333. console.log('无需压缩');
  334. const waitUpload = await self.uploadFile(self.avatarUrl, 0);
  335. resolve()
  336. }
  337. }
  338. });
  339. });
  340. },
  341. timeEvent() {
  342. let self = this
  343. var polyvPlayerContext = this.selectComponent('#playerVideo');
  344. if (polyvPlayerContext != null) {
  345. let PlayCurrentTime = polyvPlayerContext.getCurrentTime();
  346. this.studyDuration = PlayCurrentTime
  347. if(this.currentTime<PlayCurrentTime){
  348. this.playTime+=(PlayCurrentTime-this.currentTime)
  349. this.currentTime = PlayCurrentTime
  350. }else{
  351. this.currentTime = PlayCurrentTime
  352. }
  353. //判断是否需要拍照
  354. if(this.intervalTimeList.length>this.intervalTimeIndex){
  355. let photoTime = parseInt(this.intervalTimeList[this.intervalTimeIndex]) * 60 //获取拍照秒数
  356. if(photoTime<this.playTime){
  357. //启动拍照
  358. //暂停
  359. polyvPlayerContext.exitFullScreen()
  360. polyvPlayerContext.pause()
  361. this.openPhoto();
  362. this.intervalTimeIndex++
  363. }
  364. }
  365. }
  366. },
  367. onStateChange(newstate, oldstate) {
  368. if (newstate.detail.newstate == 'playing') {
  369. //开始播放
  370. if(this.timer){
  371. clearInterval(this.timer);
  372. }
  373. this.timer = setInterval(this.timeEvent, 1500);//定时器
  374. }
  375. if (newstate.detail.newstate == 'pause') {
  376. }
  377. console.log(newstate,35)
  378. },
  379. //拍照
  380. openPhoto(){
  381. this.photoPopup = true
  382. },
  383. async submit(){
  384. const waitYS = await this.imageInfos();
  385. this.postStudyRecord()//提交记录
  386. console.log(this.ossAvatarUrl,"拍照完成456")
  387. },
  388. //确认拍照
  389. takePhoto() {
  390. var self = this
  391. const ctx = uni.createCameraContext();
  392. ctx.takePhoto({
  393. quality: 'high',
  394. success: res => {
  395. console.log(res.tempImagePath)
  396. self.avatarUrl = res.tempImagePath
  397. self.submit()
  398. self.photoPopup = false
  399. },
  400. fail: err => {
  401. console.log(err)
  402. }
  403. });
  404. },
  405. //拍照报错
  406. error(e) {
  407. console.log(e.detail);
  408. },
  409. //关闭相机
  410. closePhoto(){
  411. this.photoPopup = false
  412. },
  413. getGoodsDetail(){
  414. let self = this
  415. this.$api.goodsDetail(this.goodsId).then(res => {
  416. self.goodsData = res.data.data;
  417. if(self.goodsData.goodsPlayConfig){
  418. self.goodsPlayConfig = JSON.parse(self.goodsData.goodsPlayConfig);
  419. if(self.goodsPlayConfig.autoPlay>0){
  420. self.autoplay = true
  421. }
  422. if(self.goodsPlayConfig.drag>0){
  423. self.isAllowSeek = "yes"
  424. }
  425. if(self.goodsPlayConfig.speed>0){
  426. self.playbackRate = [0.5,0.8,1.0,1.25,1.5,2.0]
  427. }
  428. }
  429. if(self.goodsData.goodsPhotographConfig){
  430. self.goodsPhotographConfig = JSON.parse(self.goodsData.goodsPhotographConfig);
  431. if(self.goodsPhotographConfig.intervalTime){
  432. self.intervalTimeList = self.goodsPhotographConfig.intervalTime.split(',')
  433. }
  434. }
  435. })
  436. },
  437. startVideo() {
  438. this.startStatus = true;
  439. },
  440. getMenuList() {
  441. let self = this;
  442. this.$api.menuList({ courseId: this.courseId }).then(res => {
  443. if (res.data.code == 200) {
  444. for (let i = 0; i < res.data.rows.length; i++) {
  445. let item = res.data.rows[i];
  446. item.down = true;
  447. item.id = item.menuId;
  448. item.name = item.menuName;
  449. }
  450. self.menuList = res.data.rows;
  451. }
  452. });
  453. },
  454. courseDetail() {
  455. let self = this;
  456. this.$api.courseDetail(this.courseId).then(res => {
  457. if (res.data.code == 200) {
  458. self.detail = res.data.data;
  459. }
  460. });
  461. },
  462. open(item) {
  463. item.showChildren = !item.showChildren;
  464. },
  465. change(index) {
  466. this.current = index;
  467. }
  468. }
  469. };
  470. </script>
  471. <style lang="scss" scope>
  472. .photoBox{
  473. .photoTop{
  474. height: 74upx;
  475. display: flex;
  476. align-items: center;
  477. justify-content: space-between;
  478. padding: 0upx 38upx;
  479. .sqzz{
  480. width: 28upx;
  481. height: 28upx;
  482. display: flex;
  483. align-items: center;
  484. justify-content: center;
  485. }
  486. .centersq{
  487. color: #333;
  488. font-size: 30upx;
  489. font-weight: 500;
  490. }
  491. }
  492. .photoCenter{
  493. width: 750upx;
  494. height: 979upx;
  495. position: relative;
  496. .custom{
  497. width: 750upx;
  498. height: 979upx;
  499. position: absolute;
  500. top: 0;
  501. left: 0;
  502. image{
  503. width: 100%;
  504. height: 100%;
  505. }
  506. }
  507. }
  508. .btnResult{
  509. height: 100upx;
  510. width: 100%;
  511. background-color: #07c160;
  512. text-align: center;
  513. line-height: 100upx;
  514. color: #fff;
  515. font-size: 32upx;
  516. font-weight: bold;
  517. }
  518. }
  519. .chat_box {
  520. display: flex;
  521. padding: 20rpx;
  522. }
  523. .chat3 {
  524. font-size: 30rpx;
  525. font-family: PingFang SC;
  526. font-weight: 500;
  527. color: #666666;
  528. margin-top: 10rpx;
  529. }
  530. .chat2 {
  531. font-size: 20rpx;
  532. font-family: PingFang SC;
  533. font-weight: 500;
  534. color: #999999;
  535. margin-top: 10rpx;
  536. }
  537. .chat1 {
  538. font-size: 24rpx;
  539. font-family: PingFang SC;
  540. font-weight: 500;
  541. color: #333333;
  542. }
  543. .leftPadding {
  544. margin-left: 8rpx;
  545. }
  546. .t2Content {
  547. font-size: 30rpx;
  548. font-family: PingFang SC;
  549. font-weight: bold;
  550. color: #333333;
  551. line-height: 48rpx;
  552. }
  553. .tBox2 {
  554. display: flex;
  555. padding-top: 10rpx;
  556. }
  557. .tBox {
  558. display: flex;
  559. align-items: center;
  560. padding-top: 10rpx;
  561. }
  562. .title {
  563. font-size: 24rpx;
  564. color: #999999;
  565. }
  566. page {
  567. padding-top: 10px;
  568. padding-top: constant(safe-area-inset-top);
  569. padding-top: env(safe-area-inset-top);
  570. }
  571. .inputBottom {
  572. position: fixed;
  573. left: 0;
  574. bottom: 0;
  575. background: #ffffff;
  576. height: 98rpx;
  577. display: flex;
  578. align-items: center;
  579. width: 100%;
  580. }
  581. .noteBox {
  582. width: 100%;
  583. background: #ffffff;
  584. border-radius: 16rpx;
  585. padding: 10rpx;
  586. }
  587. .dateBox {
  588. width: 216rpx;
  589. height: 48rpx;
  590. background: #ffffff;
  591. border-radius: 24rpx;
  592. font-size: 24rpx;
  593. color: #666666;
  594. text-align: center;
  595. line-height: 48rpx;
  596. margin: 20rpx 0;
  597. }
  598. .t_content1 {
  599. color: #007aff;
  600. margin-left: 10rpx;
  601. }
  602. .tag1 {
  603. border: 2rpx solid #007aff;
  604. border-radius: 8rpx;
  605. font-size: 20rpx;
  606. color: #007aff;
  607. padding: 5rpx;
  608. }
  609. .b_title {
  610. color: #333333;
  611. font-size: 30rpx;
  612. font-weight: bold;
  613. }
  614. page {
  615. background: #eaeef1;
  616. }
  617. .menuBox {
  618. width: 100%;
  619. background: #ffffff;
  620. border-radius: 16rpx;
  621. padding: 20rpx;
  622. margin-bottom: 20rpx;
  623. }
  624. .btnspric {
  625. border-top: 1rpx solid #eee;
  626. display: flex;
  627. align-items: center;
  628. justify-content: space-between;
  629. height: 108rpx;
  630. padding-left: 43rpx;
  631. padding-right: 32rpx;
  632. }
  633. .btnspric > .lefprL {
  634. font-size: 36rpx;
  635. color: #0c141f;
  636. font-weight: bold;
  637. }
  638. .btnspric > .lefprR {
  639. padding: 0rpx 24rpx;
  640. height: 60rpx;
  641. line-height: 60rpx;
  642. text-align: center;
  643. color: #fff;
  644. background: #32467b;
  645. border-radius: 24rpx;
  646. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  647. }
  648. .yhj,
  649. .hdyhj {
  650. padding: 24rpx 29rpx 24rpx 34rpx;
  651. }
  652. .yhj {
  653. border-bottom: 16rpx solid #f9f9f9;
  654. }
  655. .yhjtit {
  656. font-size: 30rpx;
  657. color: #0c141f;
  658. font-weight: 500;
  659. margin-bottom: 14rpx;
  660. }
  661. .yhjList {
  662. display: flex;
  663. align-items: center;
  664. justify-content: space-between;
  665. margin-bottom: 14rpx;
  666. }
  667. .yhjList > .yhjLefts {
  668. display: flex;
  669. align-items: center;
  670. }
  671. .yhjLefts > .yhl {
  672. color: #32467b;
  673. font-size: 30rpx;
  674. margin-right: 31rpx;
  675. }
  676. .yhjLefts > .yhbq {
  677. font-size: 24rpx;
  678. color: #ff9500;
  679. border-radius: 18rpx;
  680. background-color: rgba(255, 149, 0, 0.2);
  681. border: 2rpx solid #ff9500;
  682. height: 38rpx;
  683. line-height: 38rpx;
  684. padding: 0rpx 16rpx;
  685. }
  686. .ts {
  687. font-size: 24rpx;
  688. color: #999;
  689. margin: 14rpx 0rpx;
  690. padding-right: 29rpx;
  691. padding-left: 34rpx;
  692. }
  693. .yh {
  694. padding-top: 20rpx;
  695. }
  696. .yh > .yhtitle {
  697. display: flex;
  698. align-items: center;
  699. justify-content: space-between;
  700. padding-right: 29rpx;
  701. padding-left: 34rpx;
  702. }
  703. .priceBxs {
  704. display: flex;
  705. align-items: center;
  706. }
  707. .priceBxs > .pricleft {
  708. border-radius: 24rpx;
  709. border: 1rpx solid #e91313;
  710. background-color: rgba(233, 19, 19, 0.1);
  711. padding: 0rpx 18rpx;
  712. height: 49rpx;
  713. line-height: 49rpx;
  714. text-align: center;
  715. font-size: 30rpx;
  716. font-weight: 500;
  717. color: #e91313;
  718. margin-right: 13rpx;
  719. }
  720. .topBox {
  721. padding: 32rpx 32rpx 24rpx;
  722. border-bottom: 1rpx solid #eeeeee;
  723. }
  724. .topBox > .boldFonstType {
  725. font-weight: 500;
  726. font-size: 30rpx;
  727. margin: 16rpx 0rpx 23rpx;
  728. }
  729. .topBox > .firstTopL {
  730. display: flex;
  731. align-items: center;
  732. }
  733. .topBox > .firstTopL > .imageBs {
  734. width: 331rpx;
  735. height: 160rpx;
  736. border-radius: 6rpx;
  737. overflow: hidden;
  738. margin-right: 8rpx;
  739. box-shadow: 0rpx 6rpx 6rpx 0rpx rgba(47, 67, 121, 0.08);
  740. }
  741. .topBox > .firstTopL > .imageBs > image {
  742. width: 100%;
  743. height: 100%;
  744. }
  745. .topBox > .firstTopL > .textBs {
  746. font-size: 30rpx;
  747. font-weight: bold;
  748. color: #0c141f;
  749. }
  750. .content {
  751. padding: 24rpx;
  752. text-align: left;
  753. }
  754. .catalogBox {
  755. display: flex;
  756. align-items: center;
  757. flex-wrap: nowrap;
  758. overflow-x: auto;
  759. padding-left: 38rpx;
  760. max-height: 305rpx;
  761. overflow-y: auto;
  762. transition: all 0.4s;
  763. }
  764. .catalogBox > .catalogA {
  765. min-width: 200rpx;
  766. height: 48rpx;
  767. line-height: 48rpx;
  768. // text-align: center;
  769. border: 2rpx solid transparent;
  770. white-space: nowrap;
  771. text-overflow: ellipsis;
  772. overflow: hidden;
  773. word-break: break-all;
  774. border-radius: 10rpx;
  775. background: rgba(22, 119, 255, 0.05);
  776. padding-left: 19rpx;
  777. box-sizing: border-box;
  778. padding-right: 15rpx;
  779. margin-right: 16rpx;
  780. margin-bottom: 20rpx;
  781. margin-top: 15rpx;
  782. font-size: 24rpx;
  783. color: #666;
  784. }
  785. .catalogBox > .activesq {
  786. border-color: #1677ff;
  787. }
  788. .changeCatalogBox {
  789. display: block;
  790. }
  791. .catalogBox::-webkit-scrollbar {
  792. display: none; /* Chrome Safari */
  793. }
  794. .box {
  795. position: relative;
  796. top: 650rpx;
  797. padding-bottom: 88rpx;
  798. margin: 20rpx;
  799. }
  800. .price_t2 {
  801. font-size: 18rpx;
  802. font-family: PingFang SC;
  803. font-weight: 500;
  804. text-decoration: line-through;
  805. color: #999999;
  806. }
  807. .price_t1 {
  808. font-size: 33rpx;
  809. font-family: PingFang SC;
  810. font-weight: bold;
  811. color: #e91313;
  812. }
  813. .sc_t {
  814. font-size: 22rpx;
  815. color: #000000;
  816. }
  817. .sc {
  818. width: 29rpx;
  819. height: 29rpx;
  820. }
  821. .buy {
  822. width: 138rpx;
  823. height: 48rpx;
  824. line-height: 48rpx;
  825. background: #32467b;
  826. border-radius: 10rpx;
  827. color: #ffffff;
  828. font-size: 28rpx;
  829. text-align: center;
  830. vertical-align: middle;
  831. position: absolute;
  832. right: 30rpx;
  833. }
  834. .video_body {
  835. padding-bottom: 96rpx;
  836. }
  837. .footer_tab {
  838. position: fixed;
  839. bottom: 0;
  840. height: 96rpx;
  841. width: 100%;
  842. background-color: #ffffff;
  843. }
  844. .tj_box {
  845. width: 50%;
  846. display: inline-block;
  847. text-align: center;
  848. margin: 10rpx 0;
  849. }
  850. .teacher_t {
  851. font-size: 24rpx;
  852. font-family: PingFang SC;
  853. font-weight: 400;
  854. color: #666666;
  855. line-height: 36rpx;
  856. margin-left: 15rpx;
  857. }
  858. .teacher_img {
  859. width: 87rpx;
  860. height: 129rpx;
  861. }
  862. .t2 {
  863. font-size: 24rpx;
  864. font-family: PingFang SC;
  865. color: #666666;
  866. line-height: 36rpx;
  867. margin: 15rpx;
  868. }
  869. .r_t2 {
  870. width: 201rpx;
  871. height: 49rpx;
  872. background: rgba(22, 119, 255, 0.05);
  873. border: 1rpx solid #32467b;
  874. border-radius: 16rpx;
  875. color: #666666;
  876. font-size: 23rpx;
  877. text-align: center;
  878. display: flex;
  879. align-items: center;
  880. padding: 5rpx;
  881. }
  882. .scroll_box {
  883. width: 100%;
  884. height: 60rpx;
  885. background: #ffffff;
  886. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  887. white-space: nowrap;
  888. overflow: hidden;
  889. margin: 15rpx 0;
  890. }
  891. .r_sliper {
  892. padding: 0 20rpx;
  893. }
  894. .top_line {
  895. width: 6rpx;
  896. height: 22rpx;
  897. background: #32467b;
  898. margin-right: 10rpx;
  899. }
  900. .video_t2 {
  901. font-size: 24rpx;
  902. font-family: PingFang SC;
  903. font-weight: 500;
  904. color: #666666;
  905. }
  906. .video_t1 {
  907. height: 80rpx;
  908. color: #333333;
  909. line-height: 80rpx;
  910. font-size: 30rpx;
  911. font-family: PingFang SC;
  912. font-weight: bold;
  913. color: #333333;
  914. }
  915. .video_t1_t {
  916. display: flex;
  917. flex-direction: column;
  918. height: 80rpx;
  919. color: #333333;
  920. text-align: center;
  921. align-items: center;
  922. border-left: solid 1px #d6d6db;
  923. }
  924. .video_play {
  925. position: absolute;
  926. width: 95rpx;
  927. height: 95rpx;
  928. top: 0;
  929. left: 0;
  930. right: 0;
  931. bottom: 0;
  932. margin: auto;
  933. }
  934. .video_box {
  935. position: relative;
  936. }
  937. .rotoct {
  938. transform: rotate(90deg);
  939. }
  940. </style>