index.nvue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901
  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" style=" border-top-left-radius: 10px; border-top-right-radius: 10px;">
  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="ft14"
  123. style="display: flex;flex-direction: row;justify-content: flex-start;padding: 0 20px;">账户余额<text
  124. class="ft14" style="color: #FF9800;">{{user_info.total_coin}}</text>K币</view>
  125. <scroll-view class="scroll-charge" :scroll-y="true" :scroll-top="scrollTop">
  126. <view class="pay-box">
  127. <block v-for="(item,key) in payOptions" :key="key">
  128. <view v-if="item.type =='COIN'" @click="selectPayItem(item)"
  129. :class="item.id == pay_select_id ?'pay-select' :'' " class="box pay-box-items">
  130. <view style="height: 20px;align-self: flex-end;"><text class="ft12 top-lab"
  131. v-if="item.tip_text">{{item.tip_text}}</text></view>
  132. <text class="ft18 pay-box-items-txt" style="color: #FF9800;">{{item.price}}元</text>
  133. <view class="ft14 pay-box-items-txt" style="flex-direction: row;">
  134. {{item.price_text}} <text class="ft14"
  135. style="color: #FF9800;">+{{item.given}}K币</text> </view>
  136. <view class="ft14 pay-box-items-txt"
  137. style="flex-direction: row;justify-content: space-between;"
  138. :class=" item.id == pay_select_id ?'select-text' :'given-txt'">
  139. {{item.given_amount}} <text v-if="item.id == pay_select_id"
  140. class="ft14">&#10003;️</text></view>
  141. </view>
  142. <view v-else @click="selectPayItem(item)"
  143. :class="item.id == pay_select_id ?'pay-select' :'' " class="box pay-box-items">
  144. <view style="height: 20px;align-self: flex-end;"><text class="ft12 top-lab"
  145. v-if="item.tip_text">{{item.tip_text}}</text></view>
  146. <view class="vip-center">
  147. <view class="">
  148. <text class="ft18 pay-box-items-txt"
  149. style="color: #FF9800;">{{item.price}}元</text>
  150. <view class="ft14 pay-box-items-txt">{{item.price_text}}</text></view>
  151. </view>
  152. <image class="vip-level-icon" src="/static/icon/vip.png"></image>
  153. </view>
  154. <view class="ft14 pay-box-items-txt"
  155. style="flex-direction: row;justify-content: space-between;"
  156. :class=" item.id == pay_select_id ?'select-text' :'given-txt'">
  157. {{item.given_amount}} <text v-if="item.id == pay_select_id"
  158. class="ft14">&#10003;️</text></view>
  159. </view>
  160. </block>
  161. </view>
  162. <view class="ft14" style="margin: 10px 0; padding: 0 20px;">付费须知</view>
  163. <view class="ft14" style="padding: 0 20px;">
  164. <text class="ft12">1、虚拟商品,一经购买不得退换</text>
  165. <text class="ft12">2、充值后K币可能有延迟,1小时未到账请在“我的”页面联系客服</text>
  166. <text class="ft12">3、未满18岁的未成年需要在监护人陪同下购买并观看短剧剧</text>
  167. <text class="ft12">4、购买成功后,“K币”仅在本小程序中使用</text>
  168. <text class="ft12">5、购买成功后可在”我的”页面订单中心进行查看</text>
  169. </view>
  170. </scroll-view>
  171. </view>
  172. </view>
  173. </uni-popup>
  174. </view>
  175. </template>
  176. <script>
  177. import {
  178. getVideoInfo,
  179. videoEpisodePlay,
  180. videoEpisodeZan,
  181. } from '@/common/apis/video.js';
  182. import {
  183. delShelf,
  184. storeshelf
  185. } from '@/common/apis/zju.js'
  186. import {
  187. getUserInfo
  188. } from "@/common/apis/my.js";
  189. import {
  190. getOptions,
  191. getPayInfo
  192. } from "@/common/apis/recharge.js"
  193. import configs from "@/common/config.js"
  194. export default {
  195. data() {
  196. return {
  197. limitPage: 15,
  198. top_height: 0,
  199. episode: 1,
  200. swiperCurrent: 0,
  201. videoContext: '',
  202. currentVideoInfo: {},
  203. activeStyle: {
  204. color: '#f95d27',
  205. fontWeight: 'bold',
  206. transform: 'scale(1.05)'
  207. },
  208. inactiveStyle: {
  209. color: '#606266',
  210. transform: 'scale(1)'
  211. },
  212. activeIndex: 1,
  213. tabcurrent: 0,
  214. videoInfo: {},
  215. labelList: [],
  216. list1: [{
  217. name: '当前剧集',
  218. }, {
  219. name: '相似好剧',
  220. }],
  221. sharedata: {
  222. type: 2,
  223. strShareUrl: "",
  224. strShareTitle: "分享标题",
  225. strShareSummary: "分享总结",
  226. strShareImageUrl: ""
  227. },
  228. isShow: true,
  229. fenji: 2,
  230. pay_select_id: 0,
  231. controls: true,
  232. windowWidth: 0,
  233. windowHeight: 0,
  234. current: 0,
  235. isplay: true, //是否自动播放下一个视频
  236. duration: 500,
  237. isqp: true,
  238. urls: configs.webUrl,
  239. scrollTop: 0,
  240. video_id: 0,
  241. safeArea: 0,
  242. ttuop: 0,
  243. heightxw: 100,
  244. user_info: {},
  245. payVideoInfo: {},
  246. payOptions: []
  247. };
  248. },
  249. computed: {
  250. isShowVideo(item) {
  251. return (item) => {
  252. return this.swiperCurrent == item && this.isShow
  253. }
  254. },
  255. isShowVip(item) {
  256. return (item) => {
  257. return item >= this.videoInfo.charge_sequence && item <= this.videoInfo.updated_episode_num
  258. }
  259. },
  260. isShowUpdate(item) {
  261. return (item) => {
  262. return item > this.videoInfo.updated_episode_num
  263. }
  264. },
  265. topTitle() {
  266. return `《${this.videoInfo.name}》 第${this.episode}集`
  267. }
  268. },
  269. onReady: function(res) {
  270. this.videoContext = uni.createVideoContext('myVideo')
  271. },
  272. mounted() {
  273. this.initSwiperData(this.swiperCurrent + 1)
  274. getVideoInfo({
  275. video_id: this.video_id
  276. }).then(res => {
  277. // console.log(res, 'getVideoInfogetVideoInfogetVideoInfo')
  278. this.videoInfo = res.data
  279. this.initTabs();
  280. })
  281. },
  282. onLoad(e) {
  283. let that = this;
  284. uni.getSystemInfo({
  285. success(res) {
  286. that.top_height = res.statusBarHeight; //data中 声明 top_height:0
  287. }
  288. });
  289. if (e.video_id) {
  290. this.video_id = Number(e.video_id)
  291. }
  292. uni.getSystemInfo({
  293. success: res => {
  294. this.safeArea = res.safeAreaInsets.bottom;
  295. if (this.safeArea > 0) {
  296. this.heightxw = 97
  297. }
  298. }
  299. })
  300. // #ifdef MP-TOUTIAO
  301. this.ttuop = 64
  302. // #endif
  303. this.windowWidth = uni.getSystemInfoSync().windowWidth
  304. this.windowHeight = uni.getSystemInfoSync().windowHeight - this.safeArea - this.ttuop
  305. console.log(this.windowHeight)
  306. },
  307. onShow() {
  308. },
  309. onShareAppMessage: function(res) {
  310. // #ifdef MP-WEIXIN
  311. var href = '/pages/video/index?video_id=' + this.video_id
  312. console.log(res)
  313. let that = this;
  314. const obj = {
  315. title: "发送给好友",
  316. imageUrl: '',
  317. path: href,
  318. success: function(res) {
  319. console.log(res, "转发成功")
  320. },
  321. fail: function(res) {
  322. wx.showToast({
  323. title: '发送失败',
  324. icon: 'none'
  325. })
  326. }
  327. }
  328. return obj
  329. // #endif
  330. },
  331. watch: {
  332. activeIndex(newVal, oldVal) {
  333. let index = this.labelList.findIndex(el => el.content.includes(newVal))
  334. this.tabcurrent = index
  335. }
  336. },
  337. onBackPress() {},
  338. methods: {
  339. bingewatch() {
  340. storeshelf(this.video_id).then(res => {
  341. console.log(res, 'storeshelfstoreshelfstoreshelf')
  342. this.videoInfo.is_binge_watch = !Boolean(this.videoInfo.is_binge_watch)
  343. uni.showToast({
  344. title: '追剧成功',
  345. duration: 1000,
  346. icon: 'none'
  347. });
  348. })
  349. },
  350. unBingewatch() {
  351. delShelf(this.video_id).then(res => {
  352. console.log(res, 'delShelfdelShelfdelShelfdelShelfdelShelf')
  353. this.videoInfo.is_binge_watch = !Boolean(this.videoInfo.is_binge_watch)
  354. })
  355. },
  356. leftClick(e) {
  357. if (!this.videoInfo?.is_binge_watch) {
  358. uni.showModal({
  359. title: '加入追剧',
  360. content: '喜欢就加入追剧吧',
  361. confirmText: '加入追剧',
  362. confirmColor: '#FFA500',
  363. cancelText: '不用了',
  364. success: (res) => {
  365. if (res.confirm) {
  366. this.bingewatch()
  367. uni.navigateBack()
  368. // 用户点击了确定按钮
  369. // 执行加入追剧的逻辑
  370. } else if (res.cancel) {
  371. // 用户点击了取消按钮
  372. // 执行取消逻辑
  373. uni.navigateBack()
  374. }
  375. }
  376. });
  377. } else {
  378. uni.navigateBack()
  379. }
  380. },
  381. myLike(like) {
  382. videoEpisodeZan({
  383. episode_id: this.currentVideoInfo.id,
  384. zan: like
  385. }).then(res => {
  386. console.log(res, 'VideoEpisodeZanVideoEpisodeZanVideoEpisodeZan')
  387. this.$nextTick(() => {
  388. this.currentVideoInfo.is_zan = !Boolean(this.currentVideoInfo.is_zan)
  389. if (this.currentVideoInfo.is_zan) {
  390. this.currentVideoInfo.total_zan++
  391. } else {
  392. this.currentVideoInfo.total_zan--
  393. }
  394. })
  395. })
  396. },
  397. initTabs() {
  398. function innit(i, num) {
  399. let arr = [];
  400. for (i; i <= num; i++) {
  401. arr.push(i)
  402. }
  403. return arr
  404. }
  405. const pageSize = this.limitPage;
  406. const total = this.videoInfo.total_episode_num;
  407. const pageCount = Math.ceil(total / pageSize);
  408. for (let i = 0; i < pageCount; i++) {
  409. const start = i * pageSize + 1;
  410. const end = i === pageCount - 1 ? total : (i + 1) * pageSize;
  411. let label;
  412. if (i === pageCount - 1) {
  413. if (start === total) {
  414. label = `${total}`
  415. } else {
  416. label = `${start}-${total}`
  417. }
  418. } else {
  419. label = `${start}-${end}`
  420. }
  421. let index;
  422. if (label.split('-')[1]) {
  423. index = label.split('-')[1]
  424. } else {
  425. index = total
  426. }
  427. this.labelList.push({
  428. name: label,
  429. page: pageCount,
  430. content: innit(start, index)
  431. })
  432. }
  433. },
  434. async getPayInfo(originIndex) {
  435. this.user_info = await getUserInfo();
  436. this.payOptions = await getOptions();
  437. this.payOptions.forEach((item, index) => {
  438. if (item.is_default == 1) {
  439. this.pay_select_id = item.id;
  440. }
  441. })
  442. this.payVideoInfo = {
  443. video_id: this.video_id,
  444. video_series_sequence: originIndex
  445. };
  446. },
  447. async selectPayItem(item) {
  448. this.pay_select_id = item.id;
  449. let params = {
  450. video_id: this.payVideoInfo.video_id,
  451. video_series_sequence: this.payVideoInfo,
  452. pay_proudct_id: item.id
  453. }
  454. let res = await getPayInfo(params);
  455. if (res) {
  456. uni.requestPayment({
  457. "provider": "wxpay",
  458. "orderInfo": res,
  459. success(res) {
  460. uni.showToast({
  461. title: '支付成功',
  462. duration: 1000,
  463. icon: 'none'
  464. });
  465. console.log('success:' + JSON.stringify(res));
  466. },
  467. fail(e) {
  468. return false;
  469. console.log('success:' + JSON.stringify(e));
  470. }
  471. })
  472. }
  473. },
  474. playTest(item) {
  475. console.log(item)
  476. if (this.isShowVip(item)) {
  477. console.log('111111111111111', item)
  478. this.fenji = 2
  479. this.getPayInfo(item);
  480. this.activeIndex = ''
  481. } else if (this.isShowUpdate(item)) {
  482. this.activeIndex = ''
  483. uni.showToast({
  484. title: '剧集暂未更新',
  485. duration: 1000,
  486. icon: 'none'
  487. });
  488. } else {
  489. this.activeIndex = item;
  490. this.swiperCurrent = item - 1;
  491. this.episode = this.swiperCurrent
  492. // this.initSwiperData(item)
  493. this.down();
  494. }
  495. },
  496. labelListClick(item) {
  497. this.tabcurrent = item.index
  498. console.log('itemitemitemitemitem', item);
  499. },
  500. share() {
  501. var href = '/pages/video/index?video_id=' + this.video_id
  502. // #ifdef H5
  503. uni.setClipboardData({
  504. data: this.urls + '/h5/#' + href,
  505. complete() {
  506. uni.showToast({
  507. title: "分享连接已复制到剪贴板"
  508. })
  509. }
  510. })
  511. // #endif
  512. // #ifndef H5
  513. uni.share({
  514. provider: "weixin",
  515. scene: "WXSenceTimeline",
  516. type: 0,
  517. href: href,
  518. title: '分享标题',
  519. summary: '分享总结',
  520. imageUrl: '',
  521. success: function(res) {
  522. console.log("success:" + JSON.stringify(res));
  523. },
  524. fail: function(err) {
  525. console.log("fail:" + JSON.stringify(err));
  526. }
  527. })
  528. // #endif
  529. },
  530. down() {
  531. this.$refs.select.close();
  532. },
  533. sellxj() {
  534. this.fenji = 1
  535. this.$refs.select.open('bottom');
  536. this.$nextTick(() => {
  537. let num1 = (this.windowHeight / 1.6) * 0.85;
  538. let num2 = num1 / 4.78;
  539. this.scrollTop = num2 * Number(this.k);
  540. })
  541. },
  542. tapVideoHover(index, pays) {
  543. this.videoContext.play()
  544. // this.$refs.select.open('bottom');
  545. },
  546. tapVides() {
  547. this.isqp = !this.isqp
  548. },
  549. ended() {
  550. //console.log('isplay----',this.isplay)
  551. // 1.播放当前视频结束时触发,自动切换下一个视频
  552. if (this.isplay) {
  553. if (this.displayIndex < 2) {
  554. this.current = this.displayIndex + 1
  555. } else {
  556. this.current = 0
  557. }
  558. this.isqp = true
  559. console.log('显示swiper Index:', this.displayIndex)
  560. }
  561. },
  562. initSwiperData(originIndex) {
  563. this.episode = originIndex;
  564. this.isqp = true
  565. videoEpisodePlay({
  566. video_id: this.video_id,
  567. sequence: originIndex
  568. }).then(res => {
  569. if (res.code == 0) {
  570. this.currentVideoInfo = res.data
  571. this.activeIndex = this.episode;
  572. this.isShow = true
  573. } else if (res.code == 500101) {
  574. console.log(this.currentVideoInfo, 'res.code == 500101res.code == 500101')
  575. this.currentVideoInfo.video_url = ""
  576. this.isShow = false
  577. this.isqp = false
  578. this.fenji = 2
  579. this.getPayInfo(originIndex);
  580. this.$refs.select.open('bottom');
  581. // this.currentVideoInfo = {}
  582. } else {
  583. this.isqp = false
  584. this.currentVideoInfo.video_url = ""
  585. this.isShow = false
  586. }
  587. console.log(res, 'getVideoEpisodePlaygetVideoEpisodePlay')
  588. })
  589. },
  590. /**
  591. * swiper滑动时候
  592. */
  593. swiperChange(event) {
  594. const {
  595. current
  596. } = event.detail;
  597. this.swiperCurrent = current
  598. console.log(this.swiperCurrent, 'this.swiperCurrentthis.swiperCurrent')
  599. this.initSwiperData(current + 1)
  600. },
  601. controlstoggle(e) {
  602. console.log(e.detail.show);
  603. },
  604. },
  605. };
  606. </script>
  607. <style lang="scss" scoped>
  608. .vip-center {
  609. display: flex;
  610. flex-direction: row;
  611. justify-content: space-between;
  612. align-items: center;
  613. }
  614. .vip-level-icon {
  615. margin-right: 10rpx;
  616. width: 80px;
  617. height: 30px;
  618. }
  619. .pay-box {
  620. background-color: #fff;
  621. display: flex;
  622. justify-content: space-between;
  623. flex-direction: row;
  624. padding: 0 20px;
  625. flex-wrap: wrap;
  626. }
  627. .top-lab {
  628. width: 40px;
  629. text-align: center;
  630. background-color: #ff5722;
  631. color: #fff;
  632. float: right;
  633. border-top: none;
  634. border-radius: 10px;
  635. }
  636. .pay-box-items {
  637. margin-top: 10px;
  638. width: 48%;
  639. flex-direction: column;
  640. border-radius: 10px;
  641. line-height: 25px;
  642. overflow: hidden;
  643. }
  644. .pay-box-items-txt {
  645. padding: 1rpx 13px;
  646. }
  647. .pay-box-items view text {
  648. line-height: 25px;
  649. }
  650. .pay-select {
  651. border: solid 1px #ff5722;
  652. }
  653. .select-text {
  654. background-color: #ff5722;
  655. color: #fff;
  656. height: 30px;
  657. border-radius: 0rpx 0rpx 10rpx 10rpx;
  658. }
  659. .given-txt {
  660. height: 30px;
  661. border-top: solid 1rpx #9e9e9e1f;
  662. }
  663. .content {
  664. background: #000000;
  665. }
  666. .userInfo {
  667. position: absolute;
  668. z-index: 99;
  669. bottom: 30%;
  670. right: 10px;
  671. width: 100rpx;
  672. text-align: center;
  673. flex-direction: column;
  674. }
  675. .contentcd {
  676. background-color: rgba(255, 255, 255, .3);
  677. width: 720rpx;
  678. z-index: 99;
  679. position: absolute;
  680. bottom: 70rpx;
  681. left: 50%;
  682. transform: translateX(-50%);
  683. padding: 15rpx;
  684. border-radius: 8px;
  685. display: flex;
  686. flex-direction: row;
  687. justify-content: flex-start;
  688. align-items: center;
  689. color: #ffffff;
  690. margin: 0 auto;
  691. }
  692. .userName {
  693. color: #fff;
  694. font-size: 30rpx;
  695. color: #ffffff;
  696. margin: 0 6rpx;
  697. }
  698. .tsvideo {
  699. animation: showDivAni 2s 1;
  700. }
  701. @keyframes showDivAni {
  702. 0% {
  703. opacity: 0;
  704. }
  705. 100% {
  706. opacity: 1;
  707. }
  708. }
  709. </style>
  710. <style lang="scss" scoped>
  711. .charge-wrapper {
  712. margin-top: 15px;
  713. width: 100%;
  714. .top {
  715. width: 100%;
  716. display: flex;
  717. align-items: center;
  718. .charge-title {
  719. font-size: 18px;
  720. font-weight: bold;
  721. }
  722. .charge-info {
  723. font-size: 15px;
  724. color: #868686;
  725. margin: 8px 0;
  726. }
  727. .charge-coin {
  728. display: flex;
  729. flex-direction: row;
  730. .ji {
  731. font-size: 18px;
  732. }
  733. .bi {
  734. font-size: 18px;
  735. color: $accent-color;
  736. }
  737. }
  738. }
  739. }
  740. .down {
  741. display: flex;
  742. flex-direction: row;
  743. width: 60px;
  744. height: 30px;
  745. margin-top: 5px;
  746. position: absolute;
  747. right: 0px;
  748. top: 50%;
  749. transform: translateY(-50%);
  750. .down-text {
  751. font-size: 16px;
  752. color: #000;
  753. }
  754. .down-img {
  755. width: 35rpx;
  756. height: 35rpx;
  757. object-fit: contain;
  758. }
  759. }
  760. .ju-top {
  761. // background-color: ;
  762. .ju-top-title {
  763. font-size: 16px;
  764. font-weight: bold;
  765. color: #000;
  766. margin-top: 9px;
  767. height: 22px;
  768. margin-left: 20px;
  769. // width: '+ (windowWidth*0.6) +' px;
  770. overflow: hidden;
  771. }
  772. .ju-top-update {
  773. font-size: 12px;
  774. color: #000;
  775. margin-top: 9px;
  776. height: 22px;
  777. margin-left: 20px;
  778. }
  779. }
  780. .pop-my {
  781. background-color: #FFFFFF;
  782. }
  783. .scroll-my {
  784. height: fit-content;
  785. }
  786. .scroll-charge {
  787. height: 50vh;
  788. }
  789. .ju-wrapper {
  790. display: flex;
  791. flex-direction: row;
  792. flex-wrap: wrap;
  793. align-items: center;
  794. justify-content: start;
  795. width: 100%;
  796. height: 100%;
  797. background-color: #FFFFFF;
  798. // margin: 6rpx;
  799. .ju-content.active {
  800. background-color: #ff7f02;
  801. }
  802. .ju-content {
  803. flex-grow: 1;
  804. position: relative;
  805. border-radius: 12rpx;
  806. background-color: #f6f6f6;
  807. width: 31%;
  808. height: 25rpx;
  809. align-items: center;
  810. justify-content: center;
  811. padding: 45rpx 68rpx;
  812. margin: 6rpx;
  813. .lock-wrapper,
  814. .lock-wrapper-no {
  815. position: absolute;
  816. width: 100%;
  817. height: 100%;
  818. border-radius: 12rpx;
  819. background-color: rgba(0, 0, 0, .3);
  820. .lock-img {
  821. position: absolute;
  822. left: 3rpx;
  823. top: 50%;
  824. transform: translateY(-50%);
  825. width: 50rpx;
  826. height: 50rpx;
  827. margin-left: 20rpx;
  828. }
  829. .update-title {
  830. width: fit-content;
  831. height: fit-content;
  832. border-radius: 8rpx;
  833. font-size: 10px;
  834. padding: 6rpx;
  835. background-color: #868686;
  836. color: #fff;
  837. }
  838. }
  839. .lock-wrapper-no {
  840. background-color: #f6f6f6;
  841. }
  842. .title {
  843. font-size: 16px;
  844. }
  845. }
  846. }
  847. .utabs-top /deep/ .u-tabs {
  848. align-items: flex-start;
  849. }
  850. </style>