index.nvue 24 KB

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