detail.vue 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391
  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. :startTime="startTime"
  21. ></polyv-player>
  22. </view>
  23. <view>
  24. <u-row>
  25. <u-col span="10">
  26. <view class="video_t1">{{ detail.courseName }}</view>
  27. </u-col>
  28. <u-col span="2">
  29. <view class="video_t1_t" @click="openJY">
  30. <image src="/static/icon/jy_icon.png" style="width: 40rpx;height: 40rpx;"></image>
  31. 讲义
  32. </view>
  33. </u-col>
  34. </u-row>
  35. </view>
  36. <u-line color="#D6D6DB" />
  37. <view style="display: flex;justify-content: center;">
  38. <view><u-tabs :list="list" font-size="24" bar-width="80" :current="current" @change="change" active-color="#007AFF"></u-tabs></view>
  39. </view>
  40. <u-line color="#D6D6DB" />
  41. </view>
  42. <view class="box">
  43. <!--目录 -->
  44. <view v-show="current == 0">
  45. <view class="menuBox" v-for="(item, index) in menuList">
  46. <!--模块 -->
  47. <view v-if="item.type == 1"><courseModule :courseId="courseId" :goodsId="goodsId" :gradeId="gradeId" :isBuy="true" :menuItem="item" :levelId="item.menuId"></courseModule></view>
  48. <!--章 -->
  49. <view v-if="item.type == 2"><courseChapter :courseId="courseId" :goodsId="goodsId" :gradeId="gradeId" :isBuy="true" :menuItem="item" :levelId="'0-' + item.menuId"></courseChapter></view>
  50. <!--节 -->
  51. <view v-if="item.type == 3"><courseSection :courseId="courseId" :goodsId="goodsId" :gradeId="gradeId" :isBuy="true" :menuItem="item" :levelId="'0-0-' + item.menuId"></courseSection></view>
  52. </view>
  53. </view>
  54. <!--笔记 -->
  55. <view v-show="current == 1">
  56. <view v-if="noteList.length == 0" style="text-align: center;">暂无笔记</view>
  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 class="input" fixed="true" placeholder="您可以在这里输入笔记内容" type="textarea" :custom-style="inputStyle" v-model="noteValue" />
  61. </view>
  62. <view style="color: #007AFF;font-size: 30rpx;font-weight: bold;width: 15%;text-align: center;" @click="postNote">提交</view>
  63. </view>
  64. <view v-for="(item, index) in noteList">
  65. <view class="dateBox">{{ $method.timestampToTime(item.dateNote) }}</view>
  66. <view class="noteBox">
  67. <view v-for="(item1, index1) in item.userNotes" style="margin-top: 30rpx;" @click="jumpNote(item1)">
  68. <view style="display: flex;">
  69. <view>
  70. <view>
  71. <image src="/static/icon/note2.png" v-if="noteId != item1.noteId" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
  72. <image src="/static/icon/note1.png" v-if="noteId == item1.noteId" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
  73. </view>
  74. <view class="title" style="width: 39rpx;height: 39rpx;margin:0 29rpx;">{{ $method.secondToDate(item1.noteSecond) }}</view>
  75. </view>
  76. <view style="margin-left: 10rpx;">
  77. <view class="t2Content leftPadding">{{ item1.sectionName }}</view>
  78. <view class="tBox2">{{ item1.noteText }}</view>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. <!--答疑 -->
  86. <view v-show="current == 2">
  87. <view class="inputBottom">
  88. <view class="flex_auto">
  89. <u-input height="60" fixed="true" :placeholder="placeholder" type="textarea" :custom-style="inputStyle" v-model="ctxValue" />
  90. </view>
  91. <view class="btn" @click="postContent">提交</view>
  92. </view>
  93. <view v-for="(item, index) in answerList" style="background-color: #FFFFFF;margin-bottom: 20rpx;">
  94. <view class="chat_box" @click.stop="clearCtx">
  95. <view style="display: flex;">
  96. <view><image :src="$method.splitImgHost(item.avatar)" style="width: 64rpx;height: 64rpx;"></image></view>
  97. <view style="margin-left: 15rpx;">
  98. <view class="chat1">{{ item.realname }}</view>
  99. <view class="chat2">{{ $method.timestampToTime(item.createTime) }}</view>
  100. <view class="chat3">
  101. <text v-if="item.assignUserId > 0">回复</text>
  102. <text v-if="item.assignUserId > 0" style="color: #007AFF;">@{{ item.assignRealname }}</text>
  103. {{ item.answerText }}
  104. </view>
  105. </view>
  106. </view>
  107. <view class="btnReply" @click.stop="replyContent(item)" v-if="item.userId != userInfo.userId">回复</view>
  108. <view v-else class="btnDel" @click.stop="delContent(item)">删除</view>
  109. </view>
  110. <u-line color="#D6D6DB" />
  111. </view>
  112. <view v-if="answerList.length == 0" style="text-align: center;">暂无记录</view>
  113. </view>
  114. <!--目录 -->
  115. <view v-show="current == 3" >
  116. <view class="menuBox" v-for="(item, index) in reMenuList">
  117. <!--模块 -->
  118. <view v-if="item.type == 1"><courseModule :courseId="courseId" :gradeId="gradeId" :isRebuild="true" :isBuy="true" :menuItem="item" :levelId="item.menuId"></courseModule></view>
  119. <!--章 -->
  120. <view v-if="item.type == 2">
  121. <courseChapter :courseId="courseId" :gradeId="gradeId" :isRebuild="true" :isBuy="true" :menuItem="item" :levelId="'0-' + item.menuId"></courseChapter>
  122. </view>
  123. <!--节 -->
  124. <view v-if="item.type == 3">
  125. <courseSection :courseId="courseId" :gradeId="gradeId" :isRebuild="true" :isBuy="true" :menuItem="item" :levelId="'0-0-' + item.menuId"></courseSection>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. <!-- 播放前拍照end -->
  131. <u-popup v-model="showSet" :mask-close-able="false" mode="center">
  132. <view style="height: 250rpx;display: flex;align-items:center;padding: 0 30rpx;">
  133. <button open-type="openSetting" @bindopensetting="openSetting" class="btnSet">相机授权</button>
  134. </view>
  135. </u-popup>
  136. <u-mask :show="photoPopup" >
  137. <!-- 播放前拍照start -->
  138. <view v-if="photoPopup" :mask-close-able="false" style="bottom: 0;position: fixed;width: 100%;z-index: 999;">
  139. <view class="photoBox">
  140. <view class="photoTop">
  141. <view class="sqzz" v-if="false"><u-icon name="close" color="#333333" size="30" @click="closePhoto"></u-icon></view>
  142. <view class="centersq">请正视手机屏幕</view>
  143. <view class="sqzz"></view>
  144. </view>
  145. <view class="photoCenter">
  146. <view style="width: 100%; height: 979rpx;position: fixed;" v-if="photoPopup">
  147. <camera device-position="front" flash="off" @error="error" style="width: 100%; height: 100%;" ></camera>
  148. </view>
  149. <view class="custom"><image src="@/pages2/static/zhezhao.png" mode=""></image></view>
  150. </view>
  151. <view class="btnResult" @click="takePhoto">拍照</view>
  152. </view>
  153. </view>
  154. </u-mask>
  155. </view>
  156. </template>
  157. <script>
  158. import courseModule from '@/components/course/courseModule.vue';
  159. import courseChapter from '@/components/course/courseChapter.vue';
  160. import courseSection from '@/components/course/courseSection.vue';
  161. import { mapGetters } from 'vuex';
  162. export default {
  163. components: {
  164. courseModule,
  165. courseChapter,
  166. courseSection
  167. },
  168. data() {
  169. return {
  170. showSet:false,
  171. startStatus: false,
  172. detail: {},
  173. courseId: 0,
  174. placeholder: '您可以在这里输入笔记内容\n还可以点击左侧图标为笔记加上时间标记',
  175. inputStyle: {
  176. background: 'rgba(244, 244, 244, 0.98)',
  177. borderRadius: '24rpx',
  178. padding: '8rpx',
  179. marginBottom: '10rpx'
  180. },
  181. playbackRate: [0.5, 0.8, 1.0],
  182. list: [
  183. {
  184. name: '目录'
  185. },
  186. {
  187. name: '笔记'
  188. },
  189. {
  190. name: '答疑'
  191. }
  192. ],
  193. menuList: [],
  194. current: 0,
  195. vid: '',
  196. goodsId: 0,
  197. goodsData: {},
  198. photoPopup: false,
  199. goodsPlayConfig: null,
  200. autoplay: false,
  201. isAllowSeek: 'no',
  202. playbackRate: [1.0],
  203. timer: null,
  204. goodsPhotographConfig: null,
  205. intervalTimeList: [], // 间隔拍照时长
  206. intervalTimeIndex: 0, //当前处于哪个时间段拍照
  207. playTime: 0, //页面播放时长,不含暂停
  208. currentTime: 0,
  209. avatarUrl: '',
  210. ossAvatarUrl: '',
  211. studyDuration: 0, // 当前视频时长
  212. gradeId: 0,
  213. chapterId: 0,
  214. moduleId: 0,
  215. reMenuList: [],
  216. answerList: [],
  217. assignUserId: 0,
  218. placeholder: '您可以在这里输入答疑内容',
  219. ctxValue: '',
  220. noteList: [],
  221. noteValue: '',
  222. noteId: 0,
  223. recordObj: 0,
  224. needSeek: false //第一次播放是否需要跳转
  225. };
  226. },
  227. computed: { ...mapGetters(['userInfo', 'playSectionId']) },
  228. onLoad(option) {
  229. this.courseId = Number(option.id);
  230. this.goodsId = Number(option.goodsId);
  231. this.courseDetail();
  232. this.getGoodsDetail();
  233. this.getAnswerList();
  234. },
  235. onShow() {
  236. var self = this;
  237. //相机授权
  238. this.getCameraSetting()
  239. this.$api.getbaseprofiletplists({ goodsId: self.goodsId }).then(res => {
  240. if (res.data.code === 200 && res.data.rows.length) {
  241. if (res.data.rows[0].keyValue) {
  242. self.$api.getbaseprofiletpgetInfo({ goodsId: self.goodsId }).then(result => {
  243. if (result.data.code === 200) {
  244. if (!result.data.data || (result.data.data.status === 3 && result.data.data.changeStatus === 1)) {
  245. if (!result.data.data) {
  246. uni.showModal({
  247. content: '请前往填写资料',
  248. cancelText: '返回',
  249. success: function(resultst) {
  250. if (resultst.confirm) {
  251. self.$navTo.togo('/pages2/verify/input', {
  252. id: self.goodsId
  253. });
  254. }
  255. if (resultst.cancel) {
  256. uni.navigateBack();
  257. }
  258. }
  259. });
  260. } else {
  261. uni.showModal({
  262. content: '资料审核不通过,请前往重新填写',
  263. cancelText: '返回',
  264. success: function(resultst) {
  265. if (resultst.confirm) {
  266. self.$navTo.togo('/pages2/verify/input', {
  267. id: self.goodsId
  268. });
  269. }
  270. if (resultst.cancel) {
  271. uni.navigateBack();
  272. }
  273. }
  274. });
  275. }
  276. } else if (result.data.data.status === 1 && res.data.rows[0].keyValue2) {
  277. self.$api.getbaseprofileStampgetInfo({ goodsId: self.goodsId }).then(k => {
  278. if (k.data.code === 200) {
  279. if (!k.data.data || (k.data.data.status === 3 && k.data.data.changeStatus === 1)) {
  280. if (!k.data.data) {
  281. uni.showModal({
  282. cancelText: '返回',
  283. content: '请前往填写盖章资料',
  284. success: function(resultst) {
  285. if (resultst.confirm) {
  286. self.$navTo.togo('/pages2/verify/input2', {
  287. id: self.goodsId
  288. });
  289. }
  290. if (resultst.cancel) {
  291. uni.navigateBack();
  292. }
  293. }
  294. });
  295. } else {
  296. uni.showModal({
  297. cancelText: '返回',
  298. content: '资料盖章审核不通过,请前往重新填写',
  299. success: function(resultst) {
  300. if (resultst.confirm) {
  301. self.$navTo.togo('/pages2/verify/input2', {
  302. id: self.goodsId
  303. });
  304. }
  305. if (resultst.cancel) {
  306. uni.navigateBack();
  307. }
  308. }
  309. });
  310. }
  311. }
  312. }
  313. });
  314. }
  315. }
  316. });
  317. }
  318. }
  319. });
  320. },
  321. onUnload() {
  322. if (this.playSectionId > 0) {
  323. //退出提交记录
  324. this.ossAvatarUrl = '';
  325. this.postStudyRecord();
  326. //清除正在播放的节ID
  327. this.$store.commit('setPlaySectionId', { playSectionId: 0 });
  328. //移除所有的事件监听器
  329. uni.$off();
  330. }
  331. },
  332. mounted() {
  333. uni.$on('changeSection', oldSectionId => {
  334. this.postStudyRecord(0, oldSectionId);
  335. });
  336. uni.$on('getSection', item => {
  337. this.playVideo(item);
  338. });
  339. uni.$on('levelId', item => {
  340. let arr = item.split('-');
  341. //点击节获取的各层级ID
  342. this.moduleId = arr[0];
  343. this.chapterId = arr[1];
  344. });
  345. },
  346. methods: {
  347. openSetting(res){
  348. console.log(res,98)
  349. },
  350. getCameraSetting () {
  351. const self = this
  352. wx.getSetting({
  353. success: res => {
  354. if (res.authSetting['scope.camera']) {
  355. // 用户已经授权
  356. self.showSet = false
  357. } else {
  358. // 用户还没有授权,向用户发起授权请求
  359. wx.authorize({
  360. scope: 'scope.camera',
  361. success() { // 用户同意授权
  362. self.showSet = false
  363. },
  364. fail() { // 用户不同意授权
  365. self.showSet = true
  366. /* wx.showToast({
  367. title: '摄像头授权失败',
  368. icon: 'none',
  369. duration: 3000
  370. }) */
  371. }
  372. })
  373. }
  374. },
  375. fail: res => {
  376. }
  377. })
  378. },
  379. openJY(){
  380. this.$u.toast('此功能正在开发中');
  381. },
  382. //播放笔记视频
  383. async playNoteVideo(item) {
  384. if (this.timer) {
  385. clearInterval(this.timer);
  386. }
  387. if (this.vid) {
  388. //切换视频
  389. var polyvPlayerContext = this.selectComponent('#playerVideo');
  390. polyvPlayerContext.changeVid(item.recordingUrl);
  391. } else {
  392. this.vid = item.recordingUrl;
  393. }
  394. this.recordObj = {studyDuration:item.noteSecond}
  395. if (this.recordObj.studyDuration) {
  396. this.needSeek = true; //需要跳转到播放记录
  397. }
  398. this.startStatus = true;
  399. //获取节笔记
  400. this.getNoteList();
  401. },
  402. //正常播放视频
  403. async playVideo(item) {
  404. if (this.timer) {
  405. clearInterval(this.timer);
  406. }
  407. if (this.vid) {
  408. //切换视频
  409. var polyvPlayerContext = this.selectComponent('#playerVideo');
  410. polyvPlayerContext.changeVid(item.recordingUrl);
  411. } else {
  412. this.vid = item.recordingUrl;
  413. }
  414. this.recordObj = await this.getRecordLast();
  415. if (this.recordObj.studyDuration) {
  416. this.needSeek = true; //需要跳转到播放记录
  417. }
  418. console.log(this.startTime, 789);
  419. this.startStatus = true;
  420. //获取节笔记
  421. this.getNoteList();
  422. },
  423. getRecordLast() {
  424. let self = this;
  425. return new Promise(resolve => {
  426. let data = {
  427. gradeId: Number(self.gradeId),
  428. goodsId: Number(self.goodsId),
  429. sectionId: Number(self.playSectionId),
  430. courseId: Number(self.courseId)
  431. };
  432. self.$api.recordLast(data).then(res => {
  433. resolve(res.data.data);
  434. });
  435. });
  436. },
  437. jumpNote(item) {
  438. this.noteId = item.noteId;
  439. //没视频播放
  440. if(this.playSectionId==0){
  441. this.$u.toast('即将跳到笔记位置');
  442. this.$store.commit('setPlaySectionId', {playSectionId :item.sectionId});
  443. this.playNoteVideo(item);
  444. }else{
  445. //正在看当前笔记视频
  446. this.$u.toast('即将跳到笔记位置');
  447. //跳到笔记时刻
  448. var polyvPlayerContext = this.selectComponent('#playerVideo');
  449. polyvPlayerContext.seek(item.noteSecond);
  450. polyvPlayerContext.play();
  451. }
  452. },
  453. postNote() {
  454. let self = this;
  455. if (!(this.playSectionId > 0)) {
  456. this.$u.toast('目前无播放视频');
  457. return;
  458. }
  459. if (!this.noteValue) {
  460. this.$u.toast('请输入内容');
  461. return;
  462. }
  463. var polyvPlayerContext = this.selectComponent('#playerVideo');
  464. let noteDate = this.$method.getZeroTime();
  465. let noteSecond = polyvPlayerContext.getCurrentTime();
  466. console.log(noteSecond,698)
  467. if (!noteSecond) {
  468. if(noteSecond==0){
  469. //播放结束
  470. noteSecond = polyvPlayerContext.getDuration();
  471. console.log(noteSecond,63398)
  472. }
  473. if(!noteSecond){
  474. this.$u.toast('视频暂未开始');
  475. return;
  476. }
  477. }
  478. let data = {
  479. gradeId: this.gradeId,
  480. goodsId: this.goodsId,
  481. sectionId: this.playSectionId,
  482. courseId: this.courseId,
  483. noteText: this.noteValue,
  484. noteDate: noteDate,
  485. noteSecond: noteSecond
  486. };
  487. this.$api.postNote(data).then(res => {
  488. if (res.data.code == 200) {
  489. this.$u.toast('发布成功');
  490. self.getNoteList();
  491. this.noteValue = '';
  492. }
  493. });
  494. },
  495. getNoteList() {
  496. let self = this;
  497. self.noteList = [];
  498. let data = { courseId: this.courseId, gradeId: this.gradeId, goodsId: this.goodsId }
  499. if(this.playSectionId>0){
  500. data.sectionId = this.playSectionId
  501. }
  502. this.$api.noteList(data).then(res => {
  503. if (res.data.code == 200) {
  504. self.noteList = res.data.rows;
  505. }
  506. });
  507. },
  508. delAnswer(answerId) {
  509. let self = this;
  510. let data = { answerId: answerId, status: -1 };
  511. this.$api.delAnswer(data).then(res => {
  512. if (res.data.code == 200) {
  513. self.getAnswerList();
  514. }
  515. });
  516. },
  517. clearCtx() {
  518. console.log(4234);
  519. this.placeholder = '您可以在这里输入答疑内容';
  520. this.ctxValue = '';
  521. this.assignUserId = 0;
  522. },
  523. replyContent(item) {
  524. this.assignUserId = item.userId;
  525. this.placeholder = '@' + item.realname;
  526. },
  527. delContent(item) {
  528. this.delAnswer(item.answerId);
  529. },
  530. postAnswer() {
  531. let self = this;
  532. let data = { courseId: this.courseId, answerText: this.ctxValue };
  533. if (this.assignUserId > 0) {
  534. data.assignUserId = this.assignUserId;
  535. }
  536. this.$api.postAnswer(data).then(res => {
  537. if (res.data.code == 200) {
  538. this.$u.toast('发布成功');
  539. self.getAnswerList();
  540. this.placeholder = '您可以在这里输入答疑内容';
  541. this.ctxValue = '';
  542. this.assignUserId = 0;
  543. }
  544. });
  545. },
  546. postContent() {
  547. if (!this.ctxValue||this.ctxValue=='') {
  548. this.$u.toast('请输入内容');
  549. return
  550. }
  551. this.postAnswer();
  552. },
  553. postStudyRecord(status = 0, sectionId = this.playSectionId) {
  554. let currentTime = 0;
  555. var polyvPlayerContext = this.selectComponent('#playerVideo');
  556. if (polyvPlayerContext) {
  557. currentTime = polyvPlayerContext.getCurrentTime();
  558. }
  559. let self = this;
  560. console.log(self.ossAvatarUrl,"准备提交,照片地址")
  561. let data = {
  562. photo: self.ossAvatarUrl,
  563. sectionId: parseInt(sectionId),
  564. goodsId: parseInt(self.goodsId),
  565. courseId: parseInt(self.courseId),
  566. studyDuration: parseInt(currentTime > 0 ? currentTime : self.studyDuration),
  567. gradeId: parseInt(self.gradeId),
  568. chapterId: parseInt(self.chapterId),
  569. moduleId: parseInt(self.moduleId)
  570. };
  571. if (data.studyDuration <= 5) {
  572. //5秒内不上传记录
  573. return;
  574. }
  575. if (status > 0) {
  576. data.status = status;
  577. }
  578. console.log('提交接口', data);
  579. this.$api.studyRecord(data).then(res => {
  580. self.ossAvatarUrl = ''
  581. console.log(res);
  582. });
  583. },
  584. uploadFile(options, int) {
  585. var self = this;
  586. return new Promise((resolve, reject) => {
  587. var data = {
  588. imageStatus: int
  589. };
  590. self.$api.aliyunpolicy(data).then(res => {
  591. if (res.data.code != 200) {
  592. self.$method.showToast('签名错误' + JSON.stringify(res.data));
  593. return;
  594. }
  595. var ossToken = res.data.data.resultContent;
  596. if (ossToken.host == null || ossToken.host == undefined) {
  597. self.$method.showToast('上传路径报错' + JSON.stringify(res.data));
  598. return;
  599. }
  600. uni.uploadFile({
  601. url: ossToken.host,
  602. name: 'file',
  603. filePath: options,
  604. fileType: 'image',
  605. header: {
  606. AuthorizationToken: 'WX ' + uni.getStorageSync('token')
  607. },
  608. formData: {
  609. key: ossToken.dir,
  610. OSSAccessKeyId: ossToken.accessid,
  611. policy: ossToken.policy,
  612. Signature: ossToken.signature,
  613. callback: ossToken.callback,
  614. success_action_status: 200
  615. },
  616. success: result => {
  617. if (result.statusCode === 200) {
  618. self.ossAvatarUrl = ossToken.dir;
  619. resolve();
  620. } else {
  621. uni.showToast({
  622. title: '上传失败',
  623. icon: 'none'
  624. });
  625. return;
  626. }
  627. },
  628. fail: error => {
  629. uni.showToast({
  630. title: '上传接口报错' + error,
  631. icon: 'none'
  632. });
  633. return;
  634. }
  635. });
  636. });
  637. });
  638. },
  639. imageInfos() {
  640. var self = this;
  641. return new Promise((resolve, reject) => {
  642. uni.getImageInfo({
  643. src: self.avatarUrl,
  644. success: async res => {
  645. let canvasWidth = res.width; //图片原始长宽
  646. let canvasHeight = res.height;
  647. if (canvasWidth > 1000 || canvasHeight > 1000) {
  648. uni.compressImage({
  649. src: self.avatarUrl,
  650. quality: 75,
  651. width: '50%',
  652. height: '50%',
  653. success: async rest => {
  654. const waitUpload = await self.uploadFile(rest.tempFilePath, 0);
  655. resolve();
  656. }
  657. });
  658. } else {
  659. console.log('无需压缩');
  660. const waitUpload = await self.uploadFile(self.avatarUrl, 0);
  661. resolve();
  662. }
  663. }
  664. });
  665. });
  666. },
  667. timeEvent() {
  668. let self = this;
  669. var polyvPlayerContext = this.selectComponent('#playerVideo');
  670. if (polyvPlayerContext != null) {
  671. let PlayCurrentTime = polyvPlayerContext.getVideoPlayDuration();
  672. this.studyDuration = PlayCurrentTime;
  673. if (this.currentTime < PlayCurrentTime) {
  674. this.playTime += PlayCurrentTime - this.currentTime;
  675. this.currentTime = PlayCurrentTime;
  676. } else {
  677. this.currentTime = PlayCurrentTime;
  678. }
  679. //判断是否需要拍照
  680. if (this.intervalTimeList.length > this.intervalTimeIndex) {
  681. let photoTime = Number(this.intervalTimeList[this.intervalTimeIndex]) * 60; //获取拍照秒数
  682. if (photoTime < this.playTime) {
  683. //启动拍照
  684. //暂停
  685. polyvPlayerContext.exitFullScreen();
  686. polyvPlayerContext.pause();
  687. this.openPhoto();
  688. this.intervalTimeIndex++;
  689. }
  690. }
  691. }
  692. },
  693. onStateChange(newstate, oldstate) {
  694. if (newstate.detail.newstate == 'playing') {
  695. if (this.needSeek) {
  696. var polyvPlayerContext = this.selectComponent('#playerVideo');
  697. polyvPlayerContext.seek(this.recordObj.studyDuration);
  698. polyvPlayerContext.play();
  699. this.needSeek = false;
  700. }
  701. //开始播放
  702. if (this.timer) {
  703. clearInterval(this.timer);
  704. }
  705. this.timer = setInterval(this.timeEvent, 1500); //定时器
  706. }
  707. if (newstate.detail.newstate == 'pause') {
  708. //暂停提交记录
  709. /* this.ossAvatarUrl = ""
  710. this.postStudyRecord() */
  711. }
  712. if (newstate.detail.newstate == 'ended') {
  713. this.postStudyRecord(1);
  714. }
  715. },
  716. //拍照
  717. openPhoto() {
  718. this.photoPopup = true;
  719. uni.authorize({
  720. scope: 'scope.camera',
  721. success() {
  722. }
  723. })
  724. },
  725. async submit() {
  726. const waitYS = await this.imageInfos();
  727. this.postStudyRecord(); //提交记录
  728. //恢复播放
  729. var polyvPlayerContext = this.selectComponent('#playerVideo');
  730. if (polyvPlayerContext != null) {
  731. polyvPlayerContext.play();
  732. }
  733. console.log(this.ossAvatarUrl, '拍照完成456');
  734. },
  735. //确认拍照
  736. takePhoto() {
  737. var self = this;
  738. const ctx = uni.createCameraContext();
  739. ctx.takePhoto({
  740. quality: 'high',
  741. success: res => {
  742. console.log(res.tempImagePath);
  743. self.avatarUrl = res.tempImagePath;
  744. self.submit();
  745. self.photoPopup = false;
  746. },
  747. fail: err => {
  748. console.log(err);
  749. }
  750. });
  751. },
  752. //拍照报错
  753. error(e) {
  754. console.log(e.detail);
  755. },
  756. //关闭相机
  757. closePhoto() {
  758. this.photoPopup = false;
  759. },
  760. getGoodsDetail() {
  761. let self = this;
  762. this.$api.goodsDetail(this.goodsId).then(res => {
  763. self.goodsData = res.data.data;
  764. self.gradeId = self.goodsData.gradeId;
  765. console.log(self.gradeId, 698);
  766. self.getMenuList();
  767. self.getReMenuList(); //获取重修目录
  768. //获取节笔记
  769. this.getNoteList();
  770. if (self.goodsData.goodsPlayConfig) {
  771. self.goodsPlayConfig = JSON.parse(self.goodsData.goodsPlayConfig);
  772. if (self.goodsPlayConfig.autoPlay > 0) {
  773. self.autoplay = true;
  774. }
  775. if (self.goodsPlayConfig.drag > 0) {
  776. self.isAllowSeek = 'yes';
  777. }
  778. if (self.goodsPlayConfig.speed > 0) {
  779. self.playbackRate = [0.5, 0.8, 1.0, 1.25, 1.5, 2.0];
  780. }
  781. }
  782. if (self.goodsData.goodsPhotographConfig) {
  783. self.goodsPhotographConfig = JSON.parse(self.goodsData.goodsPhotographConfig);
  784. if (self.goodsPhotographConfig.intervalTime) {
  785. self.intervalTimeList = self.goodsPhotographConfig.intervalTime.split(',');
  786. }
  787. }
  788. });
  789. },
  790. startVideo() {
  791. this.startStatus = true;
  792. },
  793. getAnswerList() {
  794. let self = this;
  795. this.$api.answerList({ courseId: this.courseId }).then(res => {
  796. if (res.data.code == 200) {
  797. self.answerList = res.data.rows;
  798. }
  799. });
  800. },
  801. getReMenuList() {
  802. let self = this;
  803. this.$api.reMenuList({ courseId: this.courseId, rebuild: 1, gradeId: this.gradeId }).then(res => {
  804. if (res.data.code == 200) {
  805. for (let i = 0; i < res.data.rows.length; i++) {
  806. let item = res.data.rows[i];
  807. item.down = true;
  808. item.id = item.menuId;
  809. item.name = item.menuName;
  810. }
  811. self.reMenuList = res.data.rows;
  812. if(self.reMenuList.length>0){
  813. self.list.push({name:'重修目录'})
  814. }
  815. }
  816. });
  817. },
  818. getMenuList() {
  819. let self = this;
  820. this.$api.reMenuList({ courseId: this.courseId, gradeId: this.gradeId }).then(res => {
  821. if (res.data.code == 200) {
  822. for (let i = 0; i < res.data.rows.length; i++) {
  823. let item = res.data.rows[i];
  824. item.down = true;
  825. item.id = item.menuId;
  826. item.name = item.menuName;
  827. }
  828. self.menuList = res.data.rows;
  829. }
  830. });
  831. },
  832. courseDetail() {
  833. let self = this;
  834. this.$api.courseDetail(this.courseId).then(res => {
  835. if (res.data.code == 200) {
  836. self.detail = res.data.data;
  837. self.gradeId = self.detail.gradeId;
  838. }
  839. });
  840. },
  841. open(item) {
  842. item.showChildren = !item.showChildren;
  843. },
  844. change(index) {
  845. this.current = index;
  846. }
  847. }
  848. };
  849. </script>
  850. <style lang="scss" scope>
  851. .btnSet{
  852. height: 50px;
  853. width: 400rpx;
  854. background: #007AFF;
  855. border-radius: 25rpx;
  856. color: #FFFFFF;
  857. font-size: 28rpx;
  858. line-height: 50px;
  859. }
  860. .btnReply {
  861. width: 80rpx;
  862. height: 40rpx;
  863. background: #e3f0ff;
  864. border-radius: 16rpx;
  865. text-align: center;
  866. color: #007aff;
  867. }
  868. .btnDel {
  869. width: 80rpx;
  870. height: 40rpx;
  871. background: #ffedf0;
  872. border-radius: 16rpx;
  873. text-align: center;
  874. color: #ff2d55;
  875. }
  876. .btnReply {
  877. width: 80rpx;
  878. height: 40rpx;
  879. background: #e3f0ff;
  880. border-radius: 16rpx;
  881. font-size: 24rpx;
  882. }
  883. .photoBox {
  884. background-color: #FFFFFF;
  885. border-radius: 32px 32px 0px 0px;
  886. .photoTop {
  887. height: 74upx;
  888. display: flex;
  889. align-items: center;
  890. justify-content: space-between;
  891. padding: 0upx 38upx;
  892. .sqzz {
  893. width: 28upx;
  894. height: 28upx;
  895. display: flex;
  896. align-items: center;
  897. justify-content: center;
  898. }
  899. .centersq {
  900. color: #333;
  901. font-size: 30upx;
  902. font-weight: 500;
  903. }
  904. }
  905. .photoCenter {
  906. width: 750upx;
  907. height: 979upx;
  908. position: relative;
  909. .custom {
  910. width: 750upx;
  911. height: 979upx;
  912. position: absolute;
  913. z-index: 1000;
  914. top: 0;
  915. left: 0;
  916. image {
  917. width: 100%;
  918. height: 100%;
  919. }
  920. }
  921. }
  922. .btnResult {
  923. height: 100rpx;
  924. width: 100%;
  925. background-color: #07c160;
  926. text-align: center;
  927. line-height: 100upx;
  928. color: #fff;
  929. font-size: 32upx;
  930. font-weight: bold;
  931. }
  932. }
  933. .chat_box {
  934. display: flex;
  935. padding: 20rpx;
  936. justify-content: space-between;
  937. }
  938. .chat3 {
  939. font-size: 30rpx;
  940. font-family: PingFang SC;
  941. font-weight: 500;
  942. color: #666666;
  943. margin-top: 10rpx;
  944. }
  945. .chat2 {
  946. font-size: 20rpx;
  947. font-family: PingFang SC;
  948. font-weight: 500;
  949. color: #999999;
  950. margin-top: 10rpx;
  951. }
  952. .chat1 {
  953. font-size: 24rpx;
  954. font-family: PingFang SC;
  955. font-weight: 500;
  956. color: #333333;
  957. }
  958. .leftPadding {
  959. margin-left: 8rpx;
  960. }
  961. .t2Content {
  962. font-size: 28rpx;
  963. font-family: PingFang SC;
  964. font-weight: bold;
  965. color: #999999;
  966. line-height: 48rpx;
  967. }
  968. .tBox2 {
  969. display: flex;
  970. padding-top: 10rpx;
  971. color: #333333;
  972. font-size: 30rpx;
  973. }
  974. .tBox {
  975. display: flex;
  976. align-items: center;
  977. padding-top: 10rpx;
  978. }
  979. .title {
  980. font-size: 24rpx;
  981. color: #999999;
  982. }
  983. page {
  984. padding-top: 10px;
  985. padding-top: constant(safe-area-inset-top);
  986. padding-top: env(safe-area-inset-top);
  987. }
  988. .inputBottom {
  989. position: fixed;
  990. left: 0;
  991. bottom: 0;
  992. background: #ffffff;
  993. height: 98rpx;
  994. display: flex;
  995. align-items: center;
  996. width: 100%;
  997. .flex_auto {
  998. flex:1;
  999. margin-left: 10% ;
  1000. .input {
  1001. height:60rpx;
  1002. }
  1003. }
  1004. .btn {
  1005. color: #007AFF;font-size: 30rpx;font-weight: bold;width: 15%;text-align: center;
  1006. }
  1007. }
  1008. .noteBox {
  1009. width: 100%;
  1010. background: #ffffff;
  1011. padding: 10rpx;
  1012. border-radius: 16rpx;
  1013. }
  1014. .dateBox {
  1015. width: 216rpx;
  1016. height: 48rpx;
  1017. background: #ffffff;
  1018. border-radius: 24rpx;
  1019. font-size: 24rpx;
  1020. color: #666666;
  1021. text-align: center;
  1022. line-height: 48rpx;
  1023. margin: 20rpx 0;
  1024. }
  1025. .t_content1 {
  1026. color: #007aff;
  1027. margin-left: 10rpx;
  1028. }
  1029. .tag1 {
  1030. border: 2rpx solid #007aff;
  1031. border-radius: 8rpx;
  1032. font-size: 20rpx;
  1033. color: #007aff;
  1034. padding: 5rpx;
  1035. }
  1036. .b_title {
  1037. color: #333333;
  1038. font-size: 30rpx;
  1039. font-weight: bold;
  1040. }
  1041. page {
  1042. background: #eaeef1;
  1043. }
  1044. .menuBox {
  1045. width: 100%;
  1046. background: #ffffff;
  1047. border-radius: 16rpx;
  1048. padding: 20rpx;
  1049. margin-bottom: 20rpx;
  1050. }
  1051. .btnspric {
  1052. border-top: 1rpx solid #eee;
  1053. display: flex;
  1054. align-items: center;
  1055. justify-content: space-between;
  1056. height: 108rpx;
  1057. padding-left: 43rpx;
  1058. padding-right: 32rpx;
  1059. }
  1060. .btnspric > .lefprL {
  1061. font-size: 36rpx;
  1062. color: #0c141f;
  1063. font-weight: bold;
  1064. }
  1065. .btnspric > .lefprR {
  1066. padding: 0rpx 24rpx;
  1067. height: 60rpx;
  1068. line-height: 60rpx;
  1069. text-align: center;
  1070. color: #fff;
  1071. background: #32467b;
  1072. border-radius: 24rpx;
  1073. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  1074. }
  1075. .yhj,
  1076. .hdyhj {
  1077. padding: 24rpx 29rpx 24rpx 34rpx;
  1078. }
  1079. .yhj {
  1080. border-bottom: 16rpx solid #f9f9f9;
  1081. }
  1082. .yhjtit {
  1083. font-size: 30rpx;
  1084. color: #0c141f;
  1085. font-weight: 500;
  1086. margin-bottom: 14rpx;
  1087. }
  1088. .yhjList {
  1089. display: flex;
  1090. align-items: center;
  1091. justify-content: space-between;
  1092. margin-bottom: 14rpx;
  1093. }
  1094. .yhjList > .yhjLefts {
  1095. display: flex;
  1096. align-items: center;
  1097. }
  1098. .yhjLefts > .yhl {
  1099. color: #32467b;
  1100. font-size: 30rpx;
  1101. margin-right: 31rpx;
  1102. }
  1103. .yhjLefts > .yhbq {
  1104. font-size: 24rpx;
  1105. color: #ff9500;
  1106. border-radius: 18rpx;
  1107. background-color: rgba(255, 149, 0, 0.2);
  1108. border: 2rpx solid #ff9500;
  1109. height: 38rpx;
  1110. line-height: 38rpx;
  1111. padding: 0rpx 16rpx;
  1112. }
  1113. .ts {
  1114. font-size: 24rpx;
  1115. color: #999;
  1116. margin: 14rpx 0rpx;
  1117. padding-right: 29rpx;
  1118. padding-left: 34rpx;
  1119. }
  1120. .yh {
  1121. padding-top: 20rpx;
  1122. }
  1123. .yh > .yhtitle {
  1124. display: flex;
  1125. align-items: center;
  1126. justify-content: space-between;
  1127. padding-right: 29rpx;
  1128. padding-left: 34rpx;
  1129. }
  1130. .priceBxs {
  1131. display: flex;
  1132. align-items: center;
  1133. }
  1134. .priceBxs > .pricleft {
  1135. border-radius: 24rpx;
  1136. border: 1rpx solid #e91313;
  1137. background-color: rgba(233, 19, 19, 0.1);
  1138. padding: 0rpx 18rpx;
  1139. height: 49rpx;
  1140. line-height: 49rpx;
  1141. text-align: center;
  1142. font-size: 30rpx;
  1143. font-weight: 500;
  1144. color: #e91313;
  1145. margin-right: 13rpx;
  1146. }
  1147. .topBox {
  1148. padding: 32rpx 32rpx 24rpx;
  1149. border-bottom: 1rpx solid #eeeeee;
  1150. }
  1151. .topBox > .boldFonstType {
  1152. font-weight: 500;
  1153. font-size: 30rpx;
  1154. margin: 16rpx 0rpx 23rpx;
  1155. }
  1156. .topBox > .firstTopL {
  1157. display: flex;
  1158. align-items: center;
  1159. }
  1160. .topBox > .firstTopL > .imageBs {
  1161. width: 331rpx;
  1162. height: 160rpx;
  1163. border-radius: 6rpx;
  1164. overflow: hidden;
  1165. margin-right: 8rpx;
  1166. box-shadow: 0rpx 6rpx 6rpx 0rpx rgba(47, 67, 121, 0.08);
  1167. }
  1168. .topBox > .firstTopL > .imageBs > image {
  1169. width: 100%;
  1170. height: 100%;
  1171. }
  1172. .topBox > .firstTopL > .textBs {
  1173. font-size: 30rpx;
  1174. font-weight: bold;
  1175. color: #0c141f;
  1176. }
  1177. .content {
  1178. padding: 24rpx;
  1179. text-align: left;
  1180. }
  1181. .catalogBox {
  1182. display: flex;
  1183. align-items: center;
  1184. flex-wrap: nowrap;
  1185. overflow-x: auto;
  1186. padding-left: 38rpx;
  1187. max-height: 305rpx;
  1188. overflow-y: auto;
  1189. transition: all 0.4s;
  1190. }
  1191. .catalogBox > .catalogA {
  1192. min-width: 200rpx;
  1193. height: 48rpx;
  1194. line-height: 48rpx;
  1195. // text-align: center;
  1196. border: 2rpx solid transparent;
  1197. white-space: nowrap;
  1198. text-overflow: ellipsis;
  1199. overflow: hidden;
  1200. word-break: break-all;
  1201. border-radius: 10rpx;
  1202. background: rgba(22, 119, 255, 0.05);
  1203. padding-left: 19rpx;
  1204. box-sizing: border-box;
  1205. padding-right: 15rpx;
  1206. margin-right: 16rpx;
  1207. margin-bottom: 20rpx;
  1208. margin-top: 15rpx;
  1209. font-size: 24rpx;
  1210. color: #666;
  1211. }
  1212. .catalogBox > .activesq {
  1213. border-color: #1677ff;
  1214. }
  1215. .changeCatalogBox {
  1216. display: block;
  1217. }
  1218. .catalogBox::-webkit-scrollbar {
  1219. display: none; /* Chrome Safari */
  1220. }
  1221. .box {
  1222. position: relative;
  1223. top: 650rpx;
  1224. padding-bottom: 88rpx;
  1225. margin: 20rpx;
  1226. }
  1227. .price_t2 {
  1228. font-size: 18rpx;
  1229. font-family: PingFang SC;
  1230. font-weight: 500;
  1231. text-decoration: line-through;
  1232. color: #999999;
  1233. }
  1234. .price_t1 {
  1235. font-size: 33rpx;
  1236. font-family: PingFang SC;
  1237. font-weight: bold;
  1238. color: #e91313;
  1239. }
  1240. .sc_t {
  1241. font-size: 22rpx;
  1242. color: #000000;
  1243. }
  1244. .sc {
  1245. width: 29rpx;
  1246. height: 29rpx;
  1247. }
  1248. .buy {
  1249. width: 138rpx;
  1250. height: 48rpx;
  1251. line-height: 48rpx;
  1252. background: #32467b;
  1253. border-radius: 10rpx;
  1254. color: #ffffff;
  1255. font-size: 28rpx;
  1256. text-align: center;
  1257. vertical-align: middle;
  1258. position: absolute;
  1259. right: 30rpx;
  1260. }
  1261. .video_body {
  1262. padding-bottom: 96rpx;
  1263. }
  1264. .footer_tab {
  1265. position: fixed;
  1266. bottom: 0;
  1267. height: 96rpx;
  1268. width: 100%;
  1269. background-color: #ffffff;
  1270. }
  1271. .tj_box {
  1272. width: 50%;
  1273. display: inline-block;
  1274. text-align: center;
  1275. margin: 10rpx 0;
  1276. }
  1277. .teacher_t {
  1278. font-size: 24rpx;
  1279. font-family: PingFang SC;
  1280. font-weight: 400;
  1281. color: #666666;
  1282. line-height: 36rpx;
  1283. margin-left: 15rpx;
  1284. }
  1285. .teacher_img {
  1286. width: 87rpx;
  1287. height: 129rpx;
  1288. }
  1289. .t2 {
  1290. font-size: 24rpx;
  1291. font-family: PingFang SC;
  1292. color: #666666;
  1293. line-height: 36rpx;
  1294. margin: 15rpx;
  1295. }
  1296. .r_t2 {
  1297. width: 201rpx;
  1298. height: 49rpx;
  1299. background: rgba(22, 119, 255, 0.05);
  1300. border: 1rpx solid #32467b;
  1301. border-radius: 16rpx;
  1302. color: #666666;
  1303. font-size: 23rpx;
  1304. text-align: center;
  1305. display: flex;
  1306. align-items: center;
  1307. padding: 5rpx;
  1308. }
  1309. .scroll_box {
  1310. width: 100%;
  1311. height: 60rpx;
  1312. background: #ffffff;
  1313. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  1314. white-space: nowrap;
  1315. overflow: hidden;
  1316. margin: 15rpx 0;
  1317. }
  1318. .r_sliper {
  1319. padding: 0 20rpx;
  1320. }
  1321. .top_line {
  1322. width: 6rpx;
  1323. height: 22rpx;
  1324. background: #32467b;
  1325. margin-right: 10rpx;
  1326. }
  1327. .video_t2 {
  1328. font-size: 24rpx;
  1329. font-family: PingFang SC;
  1330. font-weight: 500;
  1331. color: #666666;
  1332. }
  1333. .video_t1 {
  1334. height: 80rpx;
  1335. color: #333333;
  1336. line-height: 80rpx;
  1337. font-size: 30rpx;
  1338. font-family: PingFang SC;
  1339. font-weight: bold;
  1340. color: #333333;
  1341. overflow: hidden;
  1342. text-overflow: ellipsis;
  1343. white-space: nowrap;
  1344. }
  1345. .video_t1_t {
  1346. display: flex;
  1347. flex-direction: column;
  1348. height: 80rpx;
  1349. color: #333333;
  1350. text-align: center;
  1351. align-items: center;
  1352. border-left: solid 1px #d6d6db;
  1353. }
  1354. .video_play {
  1355. position: absolute;
  1356. width: 95rpx;
  1357. height: 95rpx;
  1358. top: 0;
  1359. left: 0;
  1360. right: 0;
  1361. bottom: 0;
  1362. margin: auto;
  1363. }
  1364. .video_box {
  1365. position: relative;
  1366. }
  1367. .rotoct {
  1368. transform: rotate(90deg);
  1369. }
  1370. </style>