index.nvue 19 KB

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