detail.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. <template>
  2. <view>
  3. <view style="position: fixed;width: 100%;z-index: 999;background: #FFFFFF;" id="top">
  4. <view class="video_box">
  5. <image
  6. src="https://cdn.uviewui.com/uview/swiper/3.jpg"
  7. style="width: 100%;height: 460rpx;"
  8. ></image>
  9. <image v-if="!startStatus" class="video_play" src="/static/play.png" @click="startVideo"></image>
  10. </view>
  11. <view >
  12. <u-row>
  13. <u-col span="10" >
  14. <view class="video_t1">施工承发包模式-施工合同与物资采购合...</view>
  15. </u-col>
  16. <u-col span="2">
  17. <view class="video_t1_t">
  18. <image src="/static/icon/jy_icon.png" style="width: 40rpx;height: 40rpx;"></image>
  19. 讲义
  20. </view>
  21. </u-col>
  22. </u-row>
  23. </view>
  24. <u-line color="#D6D6DB" />
  25. <view>
  26. <view style="width: 240px;margin: 0 auto;"><u-tabs :list="list" item-width="150" font-size="24" bar-width="80" :current="current" @change="change" active-color="#007AFF"></u-tabs></view>
  27. </view>
  28. <u-line color="#D6D6DB" />
  29. </view>
  30. <view class="box" >
  31. <!--目录 -->
  32. <view v-show="current==0">
  33. <view class="menuBox" v-for="(item, index) in menuList">
  34. <!--模块 -->
  35. <view v-if="item.type==1">
  36. <view class="b_title">
  37. 2Z106000 施工合同管理-模块标题
  38. </view>
  39. <view style="color: #666666;font-size: 24rpx;margin: 30rpx 0;" v-for="(item1, index1) in item.list">
  40. <u-icon :name="item1.showChildren?'arrow-down':'arrow-right'" color="#666666" size="28" @click="open(item1)"></u-icon>
  41. <text @click="open(item1)">2Z106010 施工承发包的模式-2Z106020 施工合同...</text>
  42. <view v-for="(item2, index2) in item1.children" v-if="item1.showChildren" >
  43. <view style="display: flex;align-items: center;margin: 20rpx 0;">
  44. <view class="tag1">录播</view>
  45. <view class="t_content1">施工承发包模式-施工合同与物资采购合同</view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <!--章 -->
  51. <view v-if="item.type==2">
  52. <u-icon :name="item.showChildren?'arrow-down':'arrow-right'" color="#666666" size="28" @click="open(item)"></u-icon>
  53. <text @click="open(item1)">2Z106010 施工承发包的模式-2Z106020 施工合同...</text>
  54. <view v-for="(item2, index2) in item.list" v-if="item.showChildren">
  55. <view style="display: flex;align-items: center;margin: 20rpx 0;">
  56. <view class="tag1">录播</view>
  57. <view class="t_content1">施工承发包模式-施工合同与物资采购合同</view>
  58. </view>
  59. </view>
  60. </view>
  61. <!--节 -->
  62. <view v-if="item.type==3">
  63. <view v-for="(item2, index2) in item.list" >
  64. <view style="display: flex;align-items: center;margin: 20rpx 0;">
  65. <view class="tag1">录播</view>
  66. <view class="t_content1">施工承发包模式-施工合同与物资采购合同</view>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <!--笔记 -->
  73. <view v-show="current==1">
  74. <view class="inputBottom" >
  75. <view style="width: 10%;">
  76. <image src="/static/icon/note3.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
  77. </view>
  78. <view style="width: 73%;height: 88rpx;margin-bottom: 15rpx;">
  79. <u-input height="78" fixed="true" :placeholder="placeholder" type="textarea" :custom-style="inputStyle" v-model="value" />
  80. </view>
  81. <view style="color: #007AFF;font-size: 30rpx;font-weight: bold;width: 15%;text-align: center;">
  82. 提交
  83. </view>
  84. </view>
  85. <view v-for="(item, index) in menuList">
  86. <view class="dateBox">2021年10月30日</view>
  87. <view class="noteBox">
  88. <view class="tBox">
  89. <image src="/static/icon/note1.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
  90. <view class="title leftPadding">施工承发包模式-施工合同与物资采购合同</view>
  91. </view>
  92. <view class="tBox2">
  93. <view class="title" style="width: 39rpx;height: 39rpx;margin:0 29rpx;">00:20</view>
  94. <view class="t2Content leftPadding">
  95. 这是一段用户记录的笔记本文,当内容过长时
  96. 需要换行,完整显示文字内容。
  97. </view>
  98. </view>
  99. <view class="tBox">
  100. <image src="/static/icon/note2.png" style="width: 39rpx;height: 39rpx;margin:0 29rpx;"></image>
  101. <view class="title leftPadding">施工承发包模式-施工合同与物资采购合同</view>
  102. </view>
  103. <view style="margin-left: 97rpx;" class="t2Content leftPadding">
  104. 这是一段用户记录的笔记本文,当内容过长时
  105. 需要换行,完整显示文字内容。
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. <!--答疑 -->
  111. <view v-show="current==2">
  112. <view class="inputBottom">
  113. <view style="width: 73%;height: 88rpx;margin-bottom: 15rpx;margin-left: 10% ;">
  114. <u-input height="78" fixed="true" placeholder="您可以在这里输入答疑内容" type="textarea" :custom-style="inputStyle" v-model="value" />
  115. </view>
  116. <view style="color: #007AFF;font-size: 30rpx;font-weight: bold;width: 15%;text-align: center;">
  117. 提交
  118. </view>
  119. </view>
  120. <view v-for="(item, index) in menuList" style="background-color: #FFFFFF;">
  121. <view class="chat_box" >
  122. <view>
  123. <image src="https://file-dev.xyyxt.net/oss/images/avatar/20210623/1624414559368_44562477.png" style="width: 64rpx;height: 64rpx;"></image>
  124. </view>
  125. <view style="margin-left: 15rpx;">
  126. <view class="chat1">倪虹洁</view>
  127. <view class="chat2">2021/10/31 09:36:23</view>
  128. <view class="chat3">老师的课讲得太棒了!</view>
  129. </view>
  130. </view>
  131. <u-line color="#D6D6DB" />
  132. </view>
  133. </view>
  134. </view>
  135. </view>
  136. </template>
  137. <script>
  138. import { mapGetters } from 'vuex';
  139. export default {
  140. data() {
  141. return {
  142. placeholder:"您可以在这里输入笔记内容\n还可以点击左侧图标为笔记加上时间标记",
  143. inputStyle:{
  144. background: 'rgba(244, 244, 244, 0.98)',
  145. borderRadius: '24rpx',
  146. padding: '8rpx',
  147. marginBottom: '10rpx'
  148. },
  149. playbackRate: [0.5, 0.8, 1.0],
  150. list: [
  151. {
  152. name: '目录'
  153. },
  154. {
  155. name: '笔记'
  156. },
  157. {
  158. name: '答疑'
  159. }
  160. ],
  161. menuList:[
  162. {
  163. list:[{
  164. showChildren:false,
  165. children:[1,2,3]
  166. },{
  167. showChildren:false,
  168. children:[1]
  169. },{
  170. showChildren:false,
  171. children:[1,2]
  172. }],
  173. type:1
  174. },{
  175. type:2,
  176. showChildren:false,
  177. list:[{
  178. },{
  179. },{
  180. }],
  181. },{
  182. type:3,
  183. list:[{},{}]
  184. }
  185. ],
  186. current:0
  187. };
  188. },
  189. onUnload() {
  190. },
  191. computed: { ...mapGetters(['userInfo']) },
  192. onLoad(option) {
  193. },
  194. onShow() {
  195. },
  196. methods: {
  197. open(item){
  198. item.showChildren = !item.showChildren
  199. },
  200. change(index){
  201. this.current = index;
  202. }
  203. }
  204. };
  205. </script>
  206. <style scope>
  207. .chat_box{
  208. display: flex;
  209. padding: 20rpx;
  210. }
  211. .chat3{
  212. font-size: 30rpx;
  213. font-family: PingFang SC;
  214. font-weight: 500;
  215. color: #666666;
  216. margin-top: 10rpx;
  217. }
  218. .chat2{
  219. font-size: 20rpx;
  220. font-family: PingFang SC;
  221. font-weight: 500;
  222. color: #999999;
  223. margin-top: 10rpx;
  224. }
  225. .chat1{
  226. font-size: 24rpx;
  227. font-family: PingFang SC;
  228. font-weight: 500;
  229. color: #333333;
  230. }
  231. .leftPadding{
  232. margin-left: 8rpx;
  233. }
  234. .t2Content{
  235. font-size: 30rpx;
  236. font-family: PingFang SC;
  237. font-weight: bold;
  238. color: #333333;
  239. line-height: 48rpx;
  240. }
  241. .tBox2{
  242. display: flex;
  243. padding-top: 10rpx;
  244. }
  245. .tBox{
  246. display: flex;
  247. align-items: center;
  248. padding-top: 10rpx;
  249. }
  250. .title{
  251. font-size: 24rpx;
  252. color: #999999;
  253. }
  254. page{
  255. padding-top: 10px;
  256. padding-top: constant(safe-area-inset-top);
  257. padding-top: env(safe-area-inset-top);
  258. }
  259. .inputBottom{
  260. position: fixed;
  261. left: 0;
  262. bottom: 0;
  263. background: #FFFFFF;
  264. height: 98rpx;
  265. display: flex;
  266. align-items: center;
  267. width: 100%;
  268. }
  269. .noteBox{
  270. width: 100%;
  271. background: #FFFFFF;
  272. border-radius: 16rpx;
  273. padding: 10rpx;
  274. }
  275. .dateBox{
  276. width: 216rpx;
  277. height: 48rpx;
  278. background: #FFFFFF;
  279. border-radius: 24rpx;
  280. font-size: 24rpx;
  281. color: #666666;
  282. text-align: center;
  283. line-height: 48rpx;
  284. margin: 20rpx 0;
  285. }
  286. .t_content1{
  287. color: #007AFF;
  288. margin-left: 10rpx;
  289. }
  290. .tag1{
  291. border: 2rpx solid #007AFF;
  292. border-radius: 8rpx;
  293. font-size: 20rpx;
  294. color: #007AFF;
  295. padding: 5rpx;
  296. }
  297. .b_title{
  298. color: #333333;
  299. font-size: 30rpx;
  300. font-weight: bold;
  301. }
  302. page {
  303. background: #EAEEF1;
  304. }
  305. .menuBox{
  306. width: 100%;
  307. background: #FFFFFF;
  308. border-radius: 16rpx;
  309. padding: 20rpx;
  310. margin-bottom: 20rpx;
  311. }
  312. .btnspric {
  313. border-top: 1rpx solid #eee;
  314. display: flex;
  315. align-items: center;
  316. justify-content: space-between;
  317. height: 108rpx;
  318. padding-left: 43rpx;
  319. padding-right: 32rpx;
  320. }
  321. .btnspric > .lefprL {
  322. font-size: 36rpx;
  323. color: #0c141f;
  324. font-weight: bold;
  325. }
  326. .btnspric > .lefprR {
  327. padding: 0rpx 24rpx;
  328. height: 60rpx;
  329. line-height: 60rpx;
  330. text-align: center;
  331. color: #fff;
  332. background: #32467b;
  333. border-radius: 24rpx;
  334. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  335. }
  336. .yhj,
  337. .hdyhj {
  338. padding: 24rpx 29rpx 24rpx 34rpx;
  339. }
  340. .yhj {
  341. border-bottom: 16rpx solid #f9f9f9;
  342. }
  343. .yhjtit {
  344. font-size: 30rpx;
  345. color: #0c141f;
  346. font-weight: 500;
  347. margin-bottom: 14rpx;
  348. }
  349. .yhjList {
  350. display: flex;
  351. align-items: center;
  352. justify-content: space-between;
  353. margin-bottom: 14rpx;
  354. }
  355. .yhjList > .yhjLefts {
  356. display: flex;
  357. align-items: center;
  358. }
  359. .yhjLefts > .yhl {
  360. color: #32467b;
  361. font-size: 30rpx;
  362. margin-right: 31rpx;
  363. }
  364. .yhjLefts > .yhbq {
  365. font-size: 24rpx;
  366. color: #ff9500;
  367. border-radius: 18rpx;
  368. background-color: rgba(255, 149, 0, 0.2);
  369. border: 2rpx solid #ff9500;
  370. height: 38rpx;
  371. line-height: 38rpx;
  372. padding: 0rpx 16rpx;
  373. }
  374. .ts {
  375. font-size: 24rpx;
  376. color: #999;
  377. margin: 14rpx 0rpx;
  378. padding-right: 29rpx;
  379. padding-left: 34rpx;
  380. }
  381. .yh {
  382. padding-top: 20rpx;
  383. }
  384. .yh > .yhtitle {
  385. display: flex;
  386. align-items: center;
  387. justify-content: space-between;
  388. padding-right: 29rpx;
  389. padding-left: 34rpx;
  390. }
  391. .priceBxs {
  392. display: flex;
  393. align-items: center;
  394. }
  395. .priceBxs > .pricleft {
  396. border-radius: 24rpx;
  397. border: 1rpx solid #e91313;
  398. background-color: rgba(233, 19, 19, 0.1);
  399. padding: 0rpx 18rpx;
  400. height: 49rpx;
  401. line-height: 49rpx;
  402. text-align: center;
  403. font-size: 30rpx;
  404. font-weight: 500;
  405. color: #e91313;
  406. margin-right: 13rpx;
  407. }
  408. .topBox {
  409. padding: 32rpx 32rpx 24rpx;
  410. border-bottom: 1rpx solid #eeeeee;
  411. }
  412. .topBox > .boldFonstType {
  413. font-weight: 500;
  414. font-size: 30rpx;
  415. margin: 16rpx 0rpx 23rpx;
  416. }
  417. .topBox > .firstTopL {
  418. display: flex;
  419. align-items: center;
  420. }
  421. .topBox > .firstTopL > .imageBs {
  422. width: 331rpx;
  423. height: 160rpx;
  424. border-radius: 6rpx;
  425. overflow: hidden;
  426. margin-right: 8rpx;
  427. box-shadow: 0rpx 6rpx 6rpx 0rpx rgba(47, 67, 121, 0.08);
  428. }
  429. .topBox > .firstTopL > .imageBs > image {
  430. width: 100%;
  431. height: 100%;
  432. }
  433. .topBox > .firstTopL > .textBs {
  434. font-size: 30rpx;
  435. font-weight: bold;
  436. color: #0c141f;
  437. }
  438. .content {
  439. padding: 24rpx;
  440. text-align: left;
  441. }
  442. .catalogBox {
  443. display: flex;
  444. align-items: center;
  445. flex-wrap: nowrap;
  446. overflow-x: auto;
  447. padding-left: 38rpx;
  448. max-height: 305rpx;
  449. overflow-y: auto;
  450. transition: all 0.4s;
  451. }
  452. .catalogBox > .catalogA {
  453. min-width: 200rpx;
  454. height: 48rpx;
  455. line-height: 48rpx;
  456. // text-align: center;
  457. border: 2rpx solid transparent;
  458. white-space: nowrap;
  459. text-overflow: ellipsis;
  460. overflow: hidden;
  461. word-break: break-all;
  462. border-radius: 10rpx;
  463. background: rgba(22, 119, 255, 0.05);
  464. padding-left: 19rpx;
  465. box-sizing: border-box;
  466. padding-right: 15rpx;
  467. margin-right: 16rpx;
  468. margin-bottom: 20rpx;
  469. margin-top: 15rpx;
  470. font-size: 24rpx;
  471. color: #666;
  472. }
  473. .catalogBox > .activesq {
  474. border-color: #1677ff;
  475. }
  476. .changeCatalogBox {
  477. display: block;
  478. }
  479. .catalogBox::-webkit-scrollbar {
  480. display: none; /* Chrome Safari */
  481. }
  482. .box {
  483. position: relative;
  484. top: 650rpx;
  485. padding-bottom: 88rpx;
  486. margin: 20rpx;
  487. }
  488. .price_t2 {
  489. font-size: 18rpx;
  490. font-family: PingFang SC;
  491. font-weight: 500;
  492. text-decoration: line-through;
  493. color: #999999;
  494. }
  495. .price_t1 {
  496. font-size: 33rpx;
  497. font-family: PingFang SC;
  498. font-weight: bold;
  499. color: #e91313;
  500. }
  501. .sc_t {
  502. font-size: 22rpx;
  503. color: #000000;
  504. }
  505. .sc {
  506. width: 29rpx;
  507. height: 29rpx;
  508. }
  509. .buy {
  510. width: 138rpx;
  511. height: 48rpx;
  512. line-height: 48rpx;
  513. background: #32467b;
  514. border-radius: 10rpx;
  515. color: #ffffff;
  516. font-size: 28rpx;
  517. text-align: center;
  518. vertical-align: middle;
  519. position: absolute;
  520. right: 30rpx;
  521. }
  522. .video_body {
  523. padding-bottom: 96rpx;
  524. }
  525. .footer_tab {
  526. position: fixed;
  527. bottom: 0;
  528. height: 96rpx;
  529. width: 100%;
  530. background-color: #ffffff;
  531. }
  532. .tj_box {
  533. width: 50%;
  534. display: inline-block;
  535. text-align: center;
  536. margin: 10rpx 0;
  537. }
  538. .teacher_t {
  539. font-size: 24rpx;
  540. font-family: PingFang SC;
  541. font-weight: 400;
  542. color: #666666;
  543. line-height: 36rpx;
  544. margin-left: 15rpx;
  545. }
  546. .teacher_img {
  547. width: 87rpx;
  548. height: 129rpx;
  549. }
  550. .t2 {
  551. font-size: 24rpx;
  552. font-family: PingFang SC;
  553. color: #666666;
  554. line-height: 36rpx;
  555. margin: 15rpx;
  556. }
  557. .r_t2 {
  558. width: 201rpx;
  559. height: 49rpx;
  560. background: rgba(22, 119, 255, 0.05);
  561. border: 1rpx solid #32467b;
  562. border-radius: 16rpx;
  563. color: #666666;
  564. font-size: 23rpx;
  565. text-align: center;
  566. display: flex;
  567. align-items: center;
  568. padding: 5rpx;
  569. }
  570. .scroll_box {
  571. width: 100%;
  572. height: 60rpx;
  573. background: #ffffff;
  574. box-shadow: 0rpx 0rpx 16rpx 4rpx rgba(145, 156, 178, 0.1);
  575. white-space: nowrap;
  576. overflow: hidden;
  577. margin: 15rpx 0;
  578. }
  579. .r_sliper {
  580. padding: 0 20rpx;
  581. }
  582. .top_line {
  583. width: 6rpx;
  584. height: 22rpx;
  585. background: #32467b;
  586. margin-right: 10rpx;
  587. }
  588. .video_t2 {
  589. font-size: 24rpx;
  590. font-family: PingFang SC;
  591. font-weight: 500;
  592. color: #666666;
  593. }
  594. .video_t1 {
  595. height: 80rpx;
  596. color: #333333;
  597. line-height: 80rpx;
  598. font-size: 30rpx;
  599. font-family: PingFang SC;
  600. font-weight: bold;
  601. color: #333333;
  602. }
  603. .video_t1_t{
  604. display: flex;
  605. flex-direction: column;
  606. height: 80rpx;
  607. color: #333333;
  608. text-align: center;
  609. align-items: center;
  610. border-left: solid 1px #D6D6DB;
  611. }
  612. .video_play {
  613. position: absolute;
  614. width: 95rpx;
  615. height: 95rpx;
  616. top: 0;
  617. left: 0;
  618. right: 0;
  619. bottom: 0;
  620. margin: auto;
  621. }
  622. .video_box {
  623. position: relative;
  624. }
  625. .rotoct {
  626. transform: rotate(90deg);
  627. }
  628. </style>