detail.vue 35 KB

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