index.nvue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  1. <template>
  2. <view class="content">
  3. <u-navbar :title="topTitle" @leftClick="leftClick" titleStyle="color:#fff;" bgColor="#000" leftIconColor="#fff"
  4. :autoBack="false">
  5. </u-navbar>
  6. <swiper :style="'width: '+ windowWidth +'px; height:100vh; background-color: #000;'" class="swiper"
  7. :circular='false' @change="swiperChange" :current="swiperCurrent" :vertical="true" duration="200">
  8. <block v-for="content in videoInfo.updated_episode_num">
  9. <swiper-item :key="content">
  10. <view :style="'width: '+ windowWidth +'px; height:'+heightxw+'vh;'">
  11. <!-- @controlstoggle="controlstoggle" -->
  12. <video v-if="isShowVideo(content)" autoplay :key="content" id="myVideo" :controls="controls"
  13. :loop="!isplay" preload="auto" :enable-progress-gesture="true" :show-center-play-btn="false"
  14. :show-loading="false" :show-fullscreen-btn="false" @ended="ended" @click="tapVides()"
  15. :style="'width: '+ windowWidth +'px; height:'+heightxw+'vh;'"
  16. :src="currentVideoInfo.video_url" class="tsvideo">
  17. </video>
  18. <view v-if="isqp" class="userInfo">
  19. <!-- 2.点赞 -->
  20. <view style="opacity: 0.9; margin-top: 17px;">
  21. <image v-if="currentVideoInfo.is_zan" src="@/static/aixinRed.png" @click="myLike(2)"
  22. style="width: 40px; height: 40px; position: absolute; right: 6px;"></image>
  23. <image v-else src="@/static/aixin.png" @click="myLike(1)"
  24. style="width: 40px; height: 40px; position: absolute; right: 6px;"></image>
  25. <text
  26. style="color: #FFFFFF; margin-top: 5px; font-size: 14px; text-align: center; margin-top: 40px; font-weight: bold;">{{currentVideoInfo.total_zan}}</text>
  27. </view>
  28. <!-- 3.分享 -->
  29. <!-- <view style="opacity: 0.9; margin-top: 17px;">
  30. <image src="@/static/share-fill.png"
  31. style="width: 40px; height: 40px; position: absolute; right: 5px;"></image>
  32. <text
  33. style="color: #FFFFFF; margin-top: 5px; font-size: 14px; text-align: center; font-weight: bold; margin-top: 40px;">分享</text>
  34. <button open-type="share"
  35. style="position: absolute; background: none; width: 100%; height: 100%;"
  36. @click.stop="share"></button>
  37. </view> -->
  38. <!-- 4.追剧 -->
  39. <view class="comment" style="opacity: 0.9; margin-top: 17px;">
  40. <view v-if="videoInfo.is_binge_watch" @click="unBingewatch">
  41. <image src="@/static/scRed.png"
  42. style="width: 40px; height: 40px; position: absolute; right: 6px;"></image>
  43. <text
  44. style="color: #ff0000; margin-top: 5px; font-size: 14px; font-weight: bold; text-align: center; margin-top: 40px;">已追</text>
  45. </view>
  46. <view v-else @click="bingewatch">
  47. <image src="@/static/sc.png"
  48. style="width: 40px; height: 40px; position: absolute; right: 6px;"></image>
  49. <text
  50. style="color: #FFFFFF; margin-top: 5px; font-size: 14px; font-weight: bold; text-align: center; margin-top: 40px;">追剧</text>
  51. </view>
  52. </view>
  53. </view>
  54. <!-- 最底下的文字部分 -->
  55. <view v-if="isqp" class="contentcd" @click.stop="sellxj()">
  56. <text class="userName">《{{videoInfo.name}}》</text>
  57. <text class="userName">更新到第{{videoInfo.updated_episode_num}}集</text>
  58. <text class="userName">|</text>
  59. <text class="userName">选集</text>
  60. </view>
  61. </view>
  62. </swiper-item>
  63. </block>
  64. </swiper>
  65. <uni-popup type="bottom" ref="select" style="z-index: 100;" :mask-click="true">
  66. <view v-if="fenji==1" class="pop-my">
  67. <view class="ju-top">
  68. <view style="display: flex; flex-direction: column; ">
  69. <view style="display: flex; flex-direction: column;">
  70. <view style="display: flex; flex-direction: column;">
  71. <view class="utabs-top">
  72. <u-tabs v-if="fenji==1" :activeStyle="activeStyle" lineColor="none"
  73. :inactiveStyle="inactiveStyle" class="utabs-top" :list="list1"
  74. :current="current"></u-tabs>
  75. </view>
  76. <view class="ju-top-title">
  77. {{videoInfo.name}}
  78. </view>
  79. <view class="ju-top-update"> 已更新至{{videoInfo.updated_episode_num}}集 </view>
  80. </view>
  81. <u-tabs v-if="fenji==1" :activeStyle="activeStyle" lineColor="none"
  82. :inactiveStyle="inactiveStyle" :current="tabcurrent" :list="labelList"
  83. @click="labelListClick"></u-tabs>
  84. </view>
  85. <view class="down" @click="down">
  86. <text class="down-text">收起</text>
  87. <image class="down-img" src="@/static/img/index/down.png">
  88. </image>
  89. </view>
  90. </view>
  91. </view>
  92. <scroll-view class="scroll-my" :scroll-y="true" :scroll-top="scrollTop">
  93. <view class="ju-wrapper">
  94. <block v-for="content in labelList[tabcurrent].content">
  95. <view class="ju-content" :class="activeIndex ==content?'active':'' "
  96. @click="playTest(content)">
  97. <!-- <view :class="isShowUpdate(content)?'lock-wrapper-no':'lock-wrapper'" -->
  98. <view class="lock-wrapper" v-if="isShowUpdate(content)">
  99. <text class="update-title">待更新</text>
  100. </view>
  101. <text class="title">第{{content}}集 </text>
  102. <view class="lock-wrapper" v-if="isShowVip(content)">
  103. <image class="lock-img" src="@/static/shilu-login/2.png"></image>
  104. </view>
  105. </view>
  106. </block>
  107. </view>
  108. <view style="width: 1px; height: 1px; margin-top: 30px;"></view>
  109. </scroll-view>
  110. </view>
  111. <view v-if="fenji==2"
  112. :style="'width: '+ windowWidth +'px;height:70vh; background-color: #fff; border-top-left-radius: 10px; border-top-right-radius: 10px;'">
  113. <view class="charge-wrapper">
  114. <view class="top">
  115. <text class="charge-title">充值购买后可继续观看{{topTitle}} </text>
  116. <text class="charge-info">为保护创作者权益,当前内容需要付费观看。</text>
  117. <view class="charge-coin">
  118. <text class="ji">本集:</text>
  119. <text class="bi">{{videoInfo.charge_coin}}k币</text>
  120. </view>
  121. <recharge :user_info="userInfo" :is_player="true" :video_info="payVideoInfo" > </recharge>
  122. </view>
  123. <view class="bottom">
  124. <text></text>
  125. <text></text>
  126. </view>
  127. <scroll-view class="scroll-charge" :scroll-y="true" :scroll-top="scrollTop">
  128. <recharge :user_info="user_info"> </recharge>
  129. <!-- <view style="width: 1px; height: 1px; margin-top: 30px;"></view> -->
  130. </scroll-view>
  131. </view>
  132. </view>
  133. </uni-popup>
  134. </view>
  135. </template>
  136. <script>
  137. import recharge from '@/pages/client/components/pay/recharge.vue'
  138. import {
  139. getUserInfo
  140. } from "@/common/apis/my.js";
  141. import {
  142. getVideoInfo,
  143. videoEpisodePlay,
  144. videoEpisodeZan,
  145. } from '@/common/apis/video.js';
  146. import {
  147. delShelf,
  148. storeshelf
  149. } from '@/common/apis/zju.js'
  150. import {getUserInfo} from "@/common/apis/my.js";
  151. import configs from "@/common/config.js"
  152. export default {
  153. components: {
  154. recharge
  155. },
  156. data() {
  157. return {
  158. limitPage: 15,
  159. top_height: 0,
  160. episode: 1,
  161. swiperCurrent: 0,
  162. videoContext: '',
  163. currentVideoInfo: {},
  164. activeStyle: {
  165. color: '#f95d27',
  166. fontWeight: 'bold',
  167. transform: 'scale(1.05)'
  168. },
  169. inactiveStyle: {
  170. color: '#606266',
  171. transform: 'scale(1)'
  172. },
  173. activeIndex: 1,
  174. tabcurrent: 0,
  175. videoInfo: {},
  176. labelList: [],
  177. list1: [{
  178. name: '当前剧集',
  179. }, {
  180. name: '相似好剧',
  181. }],
  182. sharedata: {
  183. type: 2,
  184. strShareUrl: "",
  185. strShareTitle: "分享标题",
  186. strShareSummary: "分享总结",
  187. strShareImageUrl: ""
  188. },
  189. user_info: {},
  190. isShow: true,
  191. fenji: 0,
  192. controls: true,
  193. windowWidth: 0,
  194. windowHeight: 0,
  195. current: 0,
  196. isplay: true, //是否自动播放下一个视频
  197. duration: 500,
  198. isqp: true,
  199. urls: configs.webUrl,
  200. scrollTop: 0,
  201. video_id: 0,
  202. safeArea: 0,
  203. ttuop: 0,
  204. heightxw: 100,
  205. userInfo:{},
  206. payVideoInfo:{}
  207. };
  208. },
  209. computed: {
  210. isShowVideo(item) {
  211. return (item) => {
  212. return this.swiperCurrent == item && this.isShow
  213. }
  214. },
  215. isShowVip(item) {
  216. return (item) => {
  217. return item >= this.videoInfo.charge_sequence && item <= this.videoInfo.updated_episode_num
  218. }
  219. },
  220. isShowUpdate(item) {
  221. return (item) => {
  222. return item > this.videoInfo.updated_episode_num
  223. }
  224. },
  225. topTitle() {
  226. return `《${this.videoInfo.name}》 第${this.episode}集`
  227. }
  228. },
  229. onReady: function(res) {
  230. this.videoContext = uni.createVideoContext('myVideo')
  231. },
  232. mounted() {
  233. this.initSwiperData(this.swiperCurrent + 1)
  234. getVideoInfo({
  235. video_id: this.video_id
  236. }).then(res => {
  237. // console.log(res, 'getVideoInfogetVideoInfogetVideoInfo')
  238. this.videoInfo = res.data
  239. this.initTabs();
  240. })
  241. },
  242. onLoad(e) {
  243. let that = this;
  244. uni.getSystemInfo({
  245. success(res) {
  246. that.top_height = res.statusBarHeight; //data中 声明 top_height:0
  247. }
  248. });
  249. if (e.video_id) {
  250. this.video_id = Number(e.video_id)
  251. }
  252. uni.getSystemInfo({
  253. success: res => {
  254. this.safeArea = res.safeAreaInsets.bottom;
  255. if (this.safeArea > 0) {
  256. this.heightxw = 97
  257. }
  258. }
  259. })
  260. // #ifdef MP-TOUTIAO
  261. this.ttuop = 64
  262. // #endif
  263. this.windowWidth = uni.getSystemInfoSync().windowWidth
  264. this.windowHeight = uni.getSystemInfoSync().windowHeight - this.safeArea - this.ttuop
  265. console.log(this.windowHeight)
  266. },
  267. async onShow() {
  268. this.user_info = await getUserInfo();
  269. },
  270. onShareAppMessage: function(res) {
  271. // #ifdef MP-WEIXIN
  272. var href = '/pages/video/index?video_id=' + this.video_id
  273. console.log(res)
  274. let that = this;
  275. const obj = {
  276. title: "发送给好友",
  277. imageUrl: '',
  278. path: href,
  279. success: function(res) {
  280. console.log(res, "转发成功")
  281. },
  282. fail: function(res) {
  283. wx.showToast({
  284. title: '发送失败',
  285. icon: 'none'
  286. })
  287. }
  288. }
  289. return obj
  290. // #endif
  291. },
  292. watch: {
  293. activeIndex(newVal, oldVal) {
  294. let index = this.labelList.findIndex(el => el.content.includes(newVal))
  295. this.tabcurrent = index
  296. }
  297. },
  298. onBackPress() {},
  299. methods: {
  300. bingewatch() {
  301. storeshelf(this.video_id).then(res => {
  302. console.log(res, 'storeshelfstoreshelfstoreshelf')
  303. this.videoInfo.is_binge_watch = !Boolean(this.videoInfo.is_binge_watch)
  304. uni.showToast({
  305. title: '追剧成功',
  306. duration: 1000,
  307. icon: 'none'
  308. });
  309. })
  310. },
  311. unBingewatch() {
  312. delShelf(this.video_id).then(res => {
  313. console.log(res, 'delShelfdelShelfdelShelfdelShelfdelShelf')
  314. this.videoInfo.is_binge_watch = !Boolean(this.videoInfo.is_binge_watch)
  315. })
  316. },
  317. leftClick(e) {
  318. if (!this.videoInfo?.is_binge_watch) {
  319. uni.showModal({
  320. title: '加入追剧',
  321. content: '喜欢就加入追剧吧',
  322. confirmText: '加入追剧',
  323. confirmColor: '#FFA500',
  324. cancelText: '不用了',
  325. success: (res) => {
  326. if (res.confirm) {
  327. this.bingewatch()
  328. uni.navigateBack()
  329. // 用户点击了确定按钮
  330. // 执行加入追剧的逻辑
  331. } else if (res.cancel) {
  332. // 用户点击了取消按钮
  333. // 执行取消逻辑
  334. uni.navigateBack()
  335. }
  336. }
  337. });
  338. } else {
  339. uni.navigateBack()
  340. }
  341. },
  342. myLike(like) {
  343. videoEpisodeZan({
  344. episode_id: this.currentVideoInfo.id,
  345. zan: like
  346. }).then(res => {
  347. console.log(res, 'VideoEpisodeZanVideoEpisodeZanVideoEpisodeZan')
  348. this.$nextTick(() => {
  349. this.currentVideoInfo.is_zan = !Boolean(this.currentVideoInfo.is_zan)
  350. if (this.currentVideoInfo.is_zan) {
  351. this.currentVideoInfo.total_zan++
  352. } else {
  353. this.currentVideoInfo.total_zan--
  354. }
  355. })
  356. })
  357. },
  358. initTabs() {
  359. function innit(i, num) {
  360. let arr = [];
  361. for (i; i <= num; i++) {
  362. arr.push(i)
  363. }
  364. return arr
  365. }
  366. const pageSize = this.limitPage;
  367. const total = this.videoInfo.total_episode_num;
  368. const pageCount = Math.ceil(total / pageSize);
  369. for (let i = 0; i < pageCount; i++) {
  370. const start = i * pageSize + 1;
  371. const end = i === pageCount - 1 ? total : (i + 1) * pageSize;
  372. let label;
  373. if (i === pageCount - 1) {
  374. if (start === total) {
  375. label = `${total}`
  376. } else {
  377. label = `${start}-${total}`
  378. }
  379. } else {
  380. label = `${start}-${end}`
  381. }
  382. let index;
  383. if (label.split('-')[1]) {
  384. index = label.split('-')[1]
  385. } else {
  386. index = total
  387. }
  388. this.labelList.push({
  389. name: label,
  390. page: pageCount,
  391. content: innit(start, index)
  392. })
  393. }
  394. },
  395. playTest(item) {
  396. console.log(item)
  397. if (this.isShowVip(item)) {
  398. this.fenji = 2
  399. this.activeIndex = ''
  400. } else if (this.isShowUpdate(item)) {
  401. this.activeIndex = ''
  402. uni.showToast({
  403. title: '剧集暂未更新',
  404. duration: 1000,
  405. icon: 'none'
  406. });
  407. } else {
  408. this.activeIndex = item;
  409. this.swiperCurrent = item - 1;
  410. this.episode = this.swiperCurrent
  411. // this.initSwiperData(item)
  412. this.down();
  413. }
  414. },
  415. labelListClick(item) {
  416. this.tabcurrent = item.index
  417. console.log('itemitemitemitemitem', item);
  418. },
  419. share() {
  420. var href = '/pages/video/index?video_id=' + this.video_id
  421. // #ifdef H5
  422. uni.setClipboardData({
  423. data: this.urls + '/h5/#' + href,
  424. complete() {
  425. uni.showToast({
  426. title: "分享连接已复制到剪贴板"
  427. })
  428. }
  429. })
  430. // #endif
  431. // #ifndef H5
  432. uni.share({
  433. provider: "weixin",
  434. scene: "WXSenceTimeline",
  435. type: 0,
  436. href: href,
  437. title: '分享标题',
  438. summary: '分享总结',
  439. imageUrl: '',
  440. success: function(res) {
  441. console.log("success:" + JSON.stringify(res));
  442. },
  443. fail: function(err) {
  444. console.log("fail:" + JSON.stringify(err));
  445. }
  446. })
  447. // #endif
  448. },
  449. down() {
  450. this.$refs.select.close();
  451. },
  452. sellxj() {
  453. this.fenji = 1
  454. this.$refs.select.open('bottom');
  455. this.$nextTick(() => {
  456. let num1 = (this.windowHeight / 1.6) * 0.85;
  457. let num2 = num1 / 4.78;
  458. this.scrollTop = num2 * Number(this.k);
  459. })
  460. },
  461. tapVideoHover(index, pays) {
  462. this.videoContext.play()
  463. // this.$refs.select.open('bottom');
  464. },
  465. tapVides() {
  466. this.isqp = !this.isqp
  467. },
  468. ended() {
  469. //console.log('isplay----',this.isplay)
  470. // 1.播放当前视频结束时触发,自动切换下一个视频
  471. if (this.isplay) {
  472. if (this.displayIndex < 2) {
  473. this.current = this.displayIndex + 1
  474. } else {
  475. this.current = 0
  476. }
  477. this.isqp = true
  478. console.log('显示swiper Index:', this.displayIndex)
  479. }
  480. },
  481. initSwiperData(originIndex) {
  482. this.episode = originIndex;
  483. this.isqp = true
  484. videoEpisodePlay({
  485. video_id: this.video_id,
  486. sequence: originIndex
  487. }).then(res => {
  488. if (res.code == 0) {
  489. this.currentVideoInfo = res.data
  490. this.activeIndex = this.episode;
  491. this.isShow = true
  492. } else if (res.code == 500101) {
  493. console.log(this.currentVideoInfo, 'res.code == 500101res.code == 500101')
  494. this.currentVideoInfo.video_url = ""
  495. this.isShow = false
  496. this.isqp = true
  497. this.videoContext.stop()
  498. this.fenji = 2
  499. this.userInfo = getUserInfo();
  500. this.payVideoInfo = {
  501. video_id:this.video_id,
  502. video_series_sequence:originIndex
  503. };
  504. this.$refs.select.open('bottom');
  505. // this.currentVideoInfo = {}
  506. } else {
  507. this.currentVideoInfo.video_url = ""
  508. this.isShow = false
  509. }
  510. console.log(res, 'getVideoEpisodePlaygetVideoEpisodePlay')
  511. })
  512. },
  513. /**
  514. * swiper滑动时候
  515. */
  516. swiperChange(event) {
  517. const {
  518. current
  519. } = event.detail;
  520. this.swiperCurrent = current
  521. console.log(this.swiperCurrent, 'this.swiperCurrentthis.swiperCurrent')
  522. this.initSwiperData(current + 1)
  523. },
  524. controlstoggle(e) {
  525. console.log(e.detail.show);
  526. },
  527. },
  528. };
  529. </script>
  530. <style lang="scss" scoped>
  531. .content {
  532. background: #000000;
  533. }
  534. .userInfo {
  535. position: absolute;
  536. z-index: 99;
  537. bottom: 30%;
  538. right: 10px;
  539. width: 100rpx;
  540. text-align: center;
  541. flex-direction: column;
  542. }
  543. .contentcd {
  544. background-color: rgba(255, 255, 255, .3);
  545. width: 720rpx;
  546. z-index: 99;
  547. position: absolute;
  548. bottom: 70rpx;
  549. left: 50%;
  550. transform: translateX(-50%);
  551. padding: 15rpx;
  552. border-radius: 8px;
  553. display: flex;
  554. flex-direction: row;
  555. justify-content: flex-start;
  556. align-items: center;
  557. color: #ffffff;
  558. margin: 0 auto;
  559. }
  560. .userName {
  561. color: #fff;
  562. font-size: 30rpx;
  563. color: #ffffff;
  564. margin: 0 6rpx;
  565. }
  566. .tsvideo {
  567. animation: showDivAni 2s 1;
  568. }
  569. @keyframes showDivAni {
  570. 0% {
  571. opacity: 0;
  572. }
  573. 100% {
  574. opacity: 1;
  575. }
  576. }
  577. </style>
  578. <style lang="scss" scoped>
  579. .charge-wrapper {
  580. margin-top: 15px;
  581. width: 100%;
  582. .top {
  583. width: 100%;
  584. display: flex;
  585. align-items: center;
  586. .charge-title {
  587. font-size: 18px;
  588. font-weight: bold;
  589. }
  590. .charge-info {
  591. font-size: 15px;
  592. color: #868686;
  593. margin: 8px 0;
  594. }
  595. .charge-coin {
  596. display: flex;
  597. flex-direction: row;
  598. .ji {
  599. font-size: 18px;
  600. }
  601. .bi {
  602. font-size: 18px;
  603. color: $accent-color;
  604. }
  605. }
  606. }
  607. }
  608. .down {
  609. display: flex;
  610. flex-direction: row;
  611. width: 60px;
  612. height: 30px;
  613. margin-top: 5px;
  614. position: absolute;
  615. right: 0px;
  616. top: 50%;
  617. transform: translateY(-50%);
  618. .down-text {
  619. font-size: 12px;
  620. color: #000;
  621. }
  622. .down-img {
  623. width: 35rpx;
  624. height: 35rpx;
  625. object-fit: contain;
  626. }
  627. }
  628. .ju-top {
  629. // background-color: ;
  630. .ju-top-title {
  631. font-size: 16px;
  632. font-weight: bold;
  633. color: #000;
  634. margin-top: 9px;
  635. height: 22px;
  636. margin-left: 20px;
  637. // width: '+ (windowWidth*0.6) +' px;
  638. overflow: hidden;
  639. }
  640. .ju-top-update {
  641. font-size: 12px;
  642. color: #000;
  643. margin-top: 9px;
  644. height: 22px;
  645. margin-left: 20px;
  646. }
  647. }
  648. .pop-my {
  649. background-color: #FFFFFF;
  650. }
  651. .scroll-my {
  652. height: 50vh;
  653. }
  654. .scroll-charge {
  655. height: 55vh;
  656. }
  657. .ju-wrapper {
  658. display: flex;
  659. flex-direction: row;
  660. flex-wrap: wrap;
  661. align-items: center;
  662. justify-content: start;
  663. width: 100%;
  664. height: 100%;
  665. background-color: #FFFFFF;
  666. // margin: 6rpx;
  667. .ju-content.active {
  668. background-color: #ff7f02;
  669. }
  670. .ju-content {
  671. flex-grow: 1;
  672. position: relative;
  673. border-radius: 12rpx;
  674. background-color: #f6f6f6;
  675. width: 31%;
  676. height: 25rpx;
  677. align-items: center;
  678. justify-content: center;
  679. padding: 45rpx 68rpx;
  680. margin: 6rpx;
  681. .lock-wrapper,
  682. .lock-wrapper-no {
  683. position: absolute;
  684. width: 100%;
  685. height: 100%;
  686. border-radius: 12rpx;
  687. background-color: rgba(0, 0, 0, .3);
  688. .lock-img {
  689. position: absolute;
  690. left: 3rpx;
  691. top: 50%;
  692. transform: translateY(-50%);
  693. width: 50rpx;
  694. height: 50rpx;
  695. margin-left: 20rpx;
  696. }
  697. .update-title {
  698. width: fit-content;
  699. height: fit-content;
  700. border-radius: 8rpx;
  701. font-size: 10px;
  702. padding: 6rpx;
  703. background-color: #868686;
  704. color: #fff;
  705. }
  706. }
  707. .lock-wrapper-no {
  708. background-color: #f6f6f6;
  709. }
  710. .title {
  711. font-size: 16px;
  712. }
  713. }
  714. }
  715. .utabs-top /deep/ .u-tabs {
  716. align-items: flex-start;
  717. }
  718. </style>