videoPage.vue 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. <template>
  2. <view class="body" style="background-color: #efefef">
  3. <u-navbar :autoBack="true" :title="list.title" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#121212"></u-navbar>
  4. <view class="box_1">
  5. <!-- 视频 -->
  6. <view class="box_17">
  7. <view class="group_13">
  8. <video class="myVideo" enable-play-gesture="true" id="myVideo" :src="list.video" controls></video>
  9. </view>
  10. </view>
  11. <view class="box_16">
  12. <text lines="1" class="text_2">闽南戏曲艺术中心首演季·青年剧展:《倪氏教子》,梨园戏!</text>
  13. <view class="block_6">
  14. <view class="image-text_36">
  15. <uni-icons type="star-filled" color="#4e7198" size="20"></uni-icons>
  16. <text lines="1" class="text-group_1">1.5w</text>
  17. </view>
  18. <view class="image-text_37">
  19. <uni-icons type="heart-filled" color="#ca5642" size="20"></uni-icons>
  20. <text lines="1" class="text-group_2">1.5w</text>
  21. </view>
  22. <view class="image-text_38">
  23. <uni-icons type="redo" color="#312520" size="20"></uni-icons>
  24. <text lines="1" class="text-group_3">分享</text>
  25. </view>
  26. </view>
  27. <view class="text-wrapper_1">
  28. <u-read-more showHeight="200rpx" toggle closeText="展开" color="#312520" :shadowStyle="{ backgroundImage: 'none' }">
  29. <rich-text :nodes="content"></rich-text>
  30. </u-read-more>
  31. </view>
  32. <view class="box_11">
  33. <view class="group_11">
  34. <view class="text-wrapper_2">
  35. <text lines="1" class="text_4">选集</text>
  36. <text lines="1" class="text_5">(全6集)</text>
  37. </view>
  38. </view>
  39. <view class="banxin">
  40. <view class="content">
  41. <!-- 下列代码未加规范,仅供参考,请勿模仿 -->
  42. <scroll-view scroll-x style="display: flex; white-space: nowrap">
  43. <view class="xj_container" v-for="item in 6" :key="item">
  44. <view class="xj_box">
  45. <text>第{{ item }}集</text>
  46. </view>
  47. </view>
  48. </scroll-view>
  49. </view>
  50. </view>
  51. </view>
  52. <text lines="1" class="text_9">相关推荐</text>
  53. <view class="banxin">
  54. <view class="content">
  55. <!-- 下列代码未加规范,仅供参考,请勿模仿 -->
  56. <scroll-view scroll-x style="display: flex; white-space: nowrap">
  57. <view class="mn_container" v-for="item in 6" :key="item">
  58. <view class="mn_box">
  59. <image src="/static/image/fx.png" style="border-radius: 10rpx 10rpx 10rpx 0rpx; width: 100%; height: 100%"></image>
  60. </view>
  61. <view class="item_js">全{{ item }}集</view>
  62. <text class="mn_text">浪子回头金不换</text>
  63. </view>
  64. </scroll-view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. </template>
  71. <script>
  72. let that;
  73. export default {
  74. data() {
  75. return {
  76. main_body_id: '',
  77. content:
  78. ' 演绎明代南安缙绅傅正,屡科不第,见儿子傅昆偏爱绘画,不喜读书八股,又遭妻子倪氏奚落演绎明代南安缙绅傅正,屡科不第,见儿子傅昆偏爱绘画,不喜读书八股,又遭妻子倪氏奚落,愤而前往雪峰寺出家。倪氏本性骄强,因丈夫屡试不中,饱受世情讥讽。又因“定要教子成器,金榜题名,才肯相见”的誓言,于是百般严厉教子,无所不用其极。',
  79. title: 'video',
  80. src: '',
  81. inputValue: '',
  82. isFullScreen: false,
  83. list: []
  84. };
  85. },
  86. onLoad(o) {
  87. that = this;
  88. this.main_body_id = this.$db.get('main_body_id');
  89. this.getContentDetails(o.id);
  90. },
  91. methods: {
  92. // 详情
  93. getContentDetails(id) {
  94. this.$api.getContentDetails(
  95. {
  96. main_body_id: this.main_body_id,
  97. id: id
  98. },
  99. function (res) {
  100. that.list = res.data;
  101. console.log(that.list, '99999999');
  102. }
  103. );
  104. }
  105. }
  106. };
  107. </script>
  108. <style>
  109. .banxin {
  110. margin: 0 32rpx 0 32rpx;
  111. }
  112. .group_13 {
  113. width: 100%;
  114. height: 420rpx;
  115. }
  116. .myVideo {
  117. width: 100%;
  118. height: 100%;
  119. }
  120. .xj_container {
  121. display: inline-block;
  122. margin-right: 20rpx;
  123. text-align: center;
  124. }
  125. .xj_box {
  126. width: 200rpx;
  127. height: 60rpx;
  128. background: rgba(202, 86, 66, 0.08);
  129. border: 1px solid #ca5642;
  130. border-radius: 10rpx;
  131. line-height: 55rpx;
  132. }
  133. /deep/.u-read-more__toggle__text.data-v-47ca9a7f {
  134. width: 120rpx !important;
  135. height: 40rpx !important;
  136. background: #ffe4b0 !important;
  137. border-radius: 10rpx !important;
  138. margin-left: 550rpx !important;
  139. padding: 10rpx !important;
  140. margin-top: 20rpx !important;
  141. }
  142. .box_1 {
  143. width: 750rpx;
  144. display: flex;
  145. padding-bottom: 50rpx;
  146. flex-direction: column;
  147. }
  148. .mn_container {
  149. position: relative;
  150. display: inline-block;
  151. margin-right: 20rpx;
  152. text-align: center;
  153. }
  154. .mn_box {
  155. width: 261rpx;
  156. height: 349rpx;
  157. background: #ca5642;
  158. border-radius: 10rpx 10rpx 10rpx 0rpx;
  159. }
  160. .item_js {
  161. position: absolute;
  162. bottom: 60rpx;
  163. left: 125rpx;
  164. width: 112rpx;
  165. height: 50rpx;
  166. font-size: 24rpx;
  167. color: #ffffff;
  168. line-height: 50rpx;
  169. background-color: rgba(0, 0, 0, 0.2);
  170. border-radius: 10rpx;
  171. }
  172. .mn_text {
  173. font-size: 28rpx;
  174. color: #333;
  175. }
  176. .box_16 {
  177. width: 750rpx;
  178. display: flex;
  179. flex-direction: column;
  180. margin: 10rpx 0 1rpx 0;
  181. }
  182. .text_2 {
  183. width: 664rpx;
  184. height: 91rpx;
  185. overflow-wrap: break-word;
  186. color: rgba(49, 37, 32, 1);
  187. font-size: 36rpx;
  188. font-family: SourceHanSansCN-Regular;
  189. font-weight: normal;
  190. text-align: left;
  191. line-height: 56rpx;
  192. margin: 52rpx 0 0 35rpx;
  193. }
  194. .block_6 {
  195. width: 329rpx;
  196. height: 32rpx;
  197. flex-direction: row;
  198. display: flex;
  199. margin: 41rpx 0 0 32rpx;
  200. }
  201. .image-text_36 {
  202. width: 90rpx;
  203. height: 32rpx;
  204. flex-direction: row;
  205. display: flex;
  206. justify-content: space-between;
  207. }
  208. .text-group_1 {
  209. width: 50rpx;
  210. height: 19rpx;
  211. overflow-wrap: break-word;
  212. color: rgba(49, 37, 32, 1);
  213. font-size: 24rpx;
  214. font-family: SourceHanSansCN-Regular;
  215. font-weight: normal;
  216. text-align: left;
  217. white-space: nowrap;
  218. line-height: 24rpx;
  219. margin-top: 6rpx;
  220. }
  221. .image-text_37 {
  222. width: 90rpx;
  223. height: 32rpx;
  224. margin-left: 30rpx;
  225. flex-direction: row;
  226. display: flex;
  227. justify-content: space-between;
  228. }
  229. .text-group_2 {
  230. width: 50rpx;
  231. height: 19rpx;
  232. overflow-wrap: break-word;
  233. color: rgba(49, 37, 32, 1);
  234. font-size: 24rpx;
  235. font-family: SourceHanSansCN-Regular;
  236. font-weight: normal;
  237. text-align: left;
  238. white-space: nowrap;
  239. line-height: 24rpx;
  240. margin-top: 6rpx;
  241. }
  242. .image-text_38 {
  243. width: 87rpx;
  244. height: 32rpx;
  245. margin-left: 32rpx;
  246. flex-direction: row;
  247. display: flex;
  248. justify-content: space-between;
  249. }
  250. .text-group_3 {
  251. width: 46rpx;
  252. height: 23rpx;
  253. overflow-wrap: break-word;
  254. color: rgba(49, 37, 32, 1);
  255. font-size: 24rpx;
  256. font-family: SourceHanSansCN-Regular;
  257. font-weight: normal;
  258. text-align: left;
  259. white-space: nowrap;
  260. line-height: 24rpx;
  261. margin-top: 4rpx;
  262. }
  263. .text-wrapper_1 {
  264. background-color: rgba(255, 255, 255, 1);
  265. width: 749rpx;
  266. margin-top: 33rpx;
  267. display: flex;
  268. flex-direction: column;
  269. }
  270. .box_11 {
  271. background-color: rgba(255, 255, 255, 1);
  272. height: 172rpx;
  273. margin-top: 32rpx;
  274. width: 749rpx;
  275. display: flex;
  276. flex-direction: column;
  277. justify-content: flex-center;
  278. }
  279. .group_11 {
  280. width: 164rpx;
  281. height: 28rpx;
  282. display: flex;
  283. flex-direction: row;
  284. margin: 27rpx 0 20rpx 49rpx;
  285. }
  286. .text-wrapper_2 {
  287. width: 164rpx;
  288. height: 28rpx;
  289. overflow-wrap: break-word;
  290. font-size: 0rpx;
  291. font-family: SourceHanSansCN-Bold;
  292. font-weight: 700;
  293. text-align: left;
  294. white-space: nowrap;
  295. line-height: 28rpx;
  296. }
  297. .text_4 {
  298. width: 164rpx;
  299. height: 28rpx;
  300. overflow-wrap: break-word;
  301. color: rgba(49, 37, 32, 1);
  302. font-size: 28rpx;
  303. font-family: SourceHanSansCN-Bold;
  304. font-weight: 700;
  305. text-align: left;
  306. white-space: nowrap;
  307. line-height: 28rpx;
  308. }
  309. .text_5 {
  310. width: 164rpx;
  311. height: 28rpx;
  312. overflow-wrap: break-word;
  313. color: rgba(49, 37, 32, 1);
  314. font-size: 28rpx;
  315. font-family: SourceHanSansCN-Regular;
  316. font-weight: normal;
  317. text-align: left;
  318. white-space: nowrap;
  319. line-height: 28rpx;
  320. }
  321. .group_12 {
  322. width: 718rpx;
  323. height: 60rpx;
  324. flex-direction: row;
  325. display: flex;
  326. justify-content: space-between;
  327. margin: 30rpx 0 27rpx 32rpx;
  328. }
  329. .text-wrapper_3 {
  330. background-color: rgba(202, 86, 66, 0.08);
  331. border-radius: 10rpx;
  332. height: 60rpx;
  333. border: 1px solid rgba(202, 86, 66, 1);
  334. display: flex;
  335. flex-direction: column;
  336. width: 200rpx;
  337. }
  338. .text_6 {
  339. width: 60rpx;
  340. height: 23rpx;
  341. overflow-wrap: break-word;
  342. color: rgba(202, 86, 66, 1);
  343. font-size: 24rpx;
  344. font-family: SourceHanSansCN-Regular;
  345. font-weight: normal;
  346. text-align: left;
  347. white-space: nowrap;
  348. line-height: 56rpx;
  349. margin: 19rpx 0 0 70rpx;
  350. }
  351. .text_9 {
  352. width: 111rpx;
  353. height: 28rpx;
  354. overflow-wrap: break-word;
  355. color: rgba(49, 37, 32, 1);
  356. font-size: 28rpx;
  357. font-family: SourceHanSansCN-Bold;
  358. font-weight: 700;
  359. text-align: left;
  360. white-space: nowrap;
  361. line-height: 28rpx;
  362. margin: 46rpx 0 30rpx 48rpx;
  363. }
  364. .box_17 {
  365. height: 422rpx;
  366. display: flex;
  367. flex-direction: column;
  368. width: 750rpx;
  369. }
  370. </style>