123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926 |
- <template>
- <view class="content">
- <u-navbar :title="topTitle" @leftClick="leftClick" titleStyle="color:#fff;" bgColor="#000" leftIconColor="#fff"
- :autoBack="false">
- </u-navbar>
- <swiper :style="'width: '+ windowWidth +'px; height:100vh; background-color: #000;'" class="swiper"
- :circular='false' @change="swiperChange" :current="swiperCurrent" :vertical="true" duration="200">
- <block v-for="content in videoInfo.updated_episode_num">
- <swiper-item :key="content">
- <view :style="'width: '+ windowWidth +'px; height:'+heightxw+'vh;'">
- <!-- @controlstoggle="controlstoggle" -->
- <video v-if="isShowVideo(content)" autoplay :key="content" id="myVideo" :controls="controls"
- :loop="!isplay" preload="auto" :enable-progress-gesture="true" :show-center-play-btn="false"
- :show-loading="false" :show-fullscreen-btn="false" @ended="ended" @click="tapVides()"
- :style="'width: '+ windowWidth +'px; height:'+heightxw+'vh;'"
- :src="currentVideoInfo.video_url" class="tsvideo">
- </video>
- <view v-if="isqp" class="userInfo">
- <!-- 2.点赞 -->
- <view style="opacity: 0.9; margin-top: 17px;">
- <image v-if="currentVideoInfo.is_zan" src="@/static/aixinRed.png" @click="myLike(2)"
- style="width: 40px; height: 40px; position: absolute; right: 6px;"></image>
- <image v-else src="@/static/aixin.png" @click="myLike(1)"
- style="width: 40px; height: 40px; position: absolute; right: 6px;"></image>
- <text
- style="color: #FFFFFF; margin-top: 5px; font-size: 14px; text-align: center; margin-top: 40px; font-weight: bold;">{{currentVideoInfo.total_zan}}</text>
- </view>
- <!-- 3.分享 -->
- <!-- <view style="opacity: 0.9; margin-top: 17px;">
- <image src="@/static/share-fill.png"
- style="width: 40px; height: 40px; position: absolute; right: 5px;"></image>
- <text
- style="color: #FFFFFF; margin-top: 5px; font-size: 14px; text-align: center; font-weight: bold; margin-top: 40px;">分享</text>
- <button open-type="share"
- style="position: absolute; background: none; width: 100%; height: 100%;"
- @click.stop="share"></button>
- </view> -->
- <!-- 4.追剧 -->
- <view class="comment" style="opacity: 0.9; margin-top: 17px;">
- <view v-if="videoInfo.is_binge_watch" @click="unBingewatch">
- <image src="@/static/scRed.png"
- style="width: 40px; height: 40px; position: absolute; right: 6px;"></image>
- <text
- style="color: #ff0000; margin-top: 5px; font-size: 14px; font-weight: bold; text-align: center; margin-top: 40px;">已追</text>
- </view>
- <view v-else @click="bingewatch">
- <image src="@/static/sc.png"
- style="width: 40px; height: 40px; position: absolute; right: 6px;"></image>
- <text
- style="color: #FFFFFF; margin-top: 5px; font-size: 14px; font-weight: bold; text-align: center; margin-top: 40px;">追剧</text>
- </view>
- </view>
- </view>
- <!-- 最底下的文字部分 -->
- <view v-if="isqp" class="contentcd" @click.stop="sellxj()">
- <text class="userName">《{{videoInfo.name}}》</text>
- <text class="userName">更新到第{{videoInfo.updated_episode_num}}集</text>
- <text class="userName">|</text>
- <text class="userName">选集</text>
- </view>
- </view>
- </swiper-item>
- </block>
- </swiper>
- <uni-popup type="bottom" ref="select" style="z-index: 100;" :mask-click="true">
- <view v-if="fenji==1" class="pop-my" style=" border-top-left-radius: 10px; border-top-right-radius: 10px;">
- <view class="ju-top">
- <view style="display: flex; flex-direction: column; ">
- <view style="display: flex; flex-direction: column;">
- <view style="display: flex; flex-direction: column;">
- <view class="utabs-top">
- <u-tabs v-if="fenji==1" :activeStyle="activeStyle" lineColor="none"
- :inactiveStyle="inactiveStyle" class="utabs-top" :list="list1"
- :current="current"></u-tabs>
- </view>
- <view class="ju-top-title">
- {{videoInfo.name}}
- </view>
- <view class="ju-top-update"> 已更新至{{videoInfo.updated_episode_num}}集 </view>
- </view>
- <u-tabs v-if="fenji==1" :activeStyle="activeStyle" lineColor="none"
- :inactiveStyle="inactiveStyle" :current="tabcurrent" :list="labelList"
- @click="labelListClick"></u-tabs>
- </view>
- <view class="down" @click="down">
- <text class="down-text">收起</text>
- <image class="down-img" src="@/static/img/index/down.png">
- </image>
- </view>
- </view>
- </view>
- <scroll-view class="scroll-my" :scroll-y="true" :scroll-top="scrollTop">
- <view class="ju-wrapper">
- <block v-for="content in labelList[tabcurrent].content">
- <view class="ju-content" :class="activeIndex ==content?'active':'' "
- @click="playTest(content)">
- <!-- <view :class="isShowUpdate(content)?'lock-wrapper-no':'lock-wrapper'" -->
- <view class="lock-wrapper" v-if="isShowUpdate(content)">
- <text class="update-title">待更新</text>
- </view>
- <text class="title">第{{content}}集 </text>
- <view class="lock-wrapper" v-if="isShowVip(content)">
- <image class="lock-img" src="@/static/shilu-login/2.png"></image>
- </view>
- </view>
- </block>
- </view>
- <view style="width: 1px; height: 1px; margin-top: 30px;"></view>
- </scroll-view>
- </view>
- <view v-if="fenji==2"
- :style="'width: '+ windowWidth +'px;height:70vh; background-color: #fff; border-top-left-radius: 10px; border-top-right-radius: 10px;'">
- <view class="charge-wrapper">
- <view class="top">
- <text class="charge-title">充值购买后可继续观看{{topTitle}} </text>
- <text class="charge-info">为保护创作者权益,当前内容需要付费观看。</text>
- <view class="charge-coin">
- <text class="ji">本集:</text>
- <text class="bi">{{videoInfo.charge_coin}}k币</text>
- </view>
- </view>
- <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>
- <scroll-view class="scroll-charge" :scroll-y="true" :scroll-top="scrollTop">
- <view class="pay-box">
- <block v-for="(item,key) in payOptions" :key="key">
- <view v-if="item.type =='COIN'" @click="selectPayItem(item)"
- :class="item.id == pay_select_id ?'pay-select' :'' " class="box pay-box-items">
- <view style="height: 20px;align-self: flex-end;"><text class="ft12 top-lab"
- v-if="item.tip_text">{{item.tip_text}}</text></view>
- <text class="ft18 pay-box-items-txt" style="color: #FF9800;">{{item.price}}元</text>
- <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>
- <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">✓️</text></view>
- </view>
- <view v-else @click="selectPayItem(item)"
- :class="item.id == pay_select_id ?'pay-select' :'' " class="box pay-box-items">
- <view style="height: 20px;align-self: flex-end;"><text class="ft12 top-lab"
- v-if="item.tip_text">{{item.tip_text}}</text></view>
- <view class="vip-center">
- <view class="">
- <text class="ft18 pay-box-items-txt"
- style="color: #FF9800;">{{item.price}}元</text>
- <view class="ft14 pay-box-items-txt">{{item.price_text}}</text></view>
- </view>
- <image class="vip-level-icon" src="/static/icon/vip.png"></image>
- </view>
- <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">✓️</text></view>
- </view>
- </block>
- </view>
- <view class="ft14" style="margin: 10px 0; padding: 0 20px;">付费须知</view>
- <view class="ft14" style="padding: 0 20px;">
- <text class="ft12">1、虚拟商品,一经购买不得退换</text>
- <text class="ft12">2、充值后K币可能有延迟,1小时未到账请在“我的”页面联系客服</text>
- <text class="ft12">3、未满18岁的未成年需要在监护人陪同下购买并观看短剧剧</text>
- <text class="ft12">4、购买成功后,“K币”仅在本小程序中使用</text>
- <text class="ft12">5、购买成功后可在”我的”页面订单中心进行查看</text>
- </view>
- </scroll-view>
- </view>
- </view>
- </uni-popup>
- </view>
- </template>
- <script>
- import {
- getVideoInfo,
- videoEpisodePlay,
- videoEpisodeZan,
- } from '@/common/apis/video.js';
- import {
- delShelf,
- storeshelf
- } from '@/common/apis/zju.js'
- import {
- getUserInfo
- } from "@/common/apis/my.js";
- import {userRanse} from "@/common/apis/common.js"
- import {
- getOptions,
- getPayInfo
- } from "@/common/apis/recharge.js"
- import configs from "@/common/config.js"
- export default {
- data() {
- return {
- limitPage: 15,
- top_height: 0,
- episode: 1,
- ranse_id:0,
- swiperCurrent: 0,
- videoContext: '',
- currentVideoInfo: {},
- activeStyle: {
- color: '#f95d27',
- fontWeight: 'bold',
- transform: 'scale(1.05)'
- },
- inactiveStyle: {
- color: '#606266',
- transform: 'scale(1)'
- },
- activeIndex: 1,
- tabcurrent: 0,
- videoInfo: {},
- labelList: [],
- list1: [{
- name: '当前剧集',
- }, {
- name: '相似好剧',
- }],
- sharedata: {
- type: 2,
- strShareUrl: "",
- strShareTitle: "分享标题",
- strShareSummary: "分享总结",
- strShareImageUrl: ""
- },
- isShow: true,
- fenji: 2,
- pay_select_id: 0,
- controls: true,
- windowWidth: 0,
- windowHeight: 0,
- current: 0,
- isplay: true, //是否自动播放下一个视频
- duration: 500,
- isqp: true,
- urls: configs.webUrl,
- scrollTop: 0,
- video_id: 0,
- safeArea: 0,
- ttuop: 0,
- heightxw: 100,
- user_info: {},
- payVideoInfo: {},
- payOptions: []
- };
- },
- computed: {
- isShowVideo(item) {
- return (item) => {
- return this.swiperCurrent == item && this.isShow
- }
- },
- isShowVip(item) {
- return (item) => {
- return item >= this.videoInfo.charge_sequence && item <= this.videoInfo.updated_episode_num
- }
- },
- isShowUpdate(item) {
- return (item) => {
- return item > this.videoInfo.updated_episode_num
- }
- },
- topTitle() {
- return `《${this.videoInfo.name}》 第${this.episode}集`
- }
- },
- onReady: function(res) {
- this.videoContext = uni.createVideoContext('myVideo')
- },
- mounted() {
- this.initSwiperData(this.swiperCurrent + 1)
- getVideoInfo({
- video_id: this.video_id
- }).then(res => {
- // console.log(res, 'getVideoInfogetVideoInfogetVideoInfo')
- this.videoInfo = res.data
- this.initTabs();
- })
- },
- async onLoad(e) {
- // console.log('11111111111111111111',e)
- let that = this;
- uni.getSystemInfo({
- success(res) {
- that.top_height = res.statusBarHeight; //data中 声明 top_height:0
- }
- });
-
-
- if (e.video_id) {
- this.video_id = Number(e.video_id)
- }
- if(e.sequence && Number(e.sequence) > 0){
- this.swiperCurrent = Number(e.sequence) -1;
- }
- // 染色参数接收
- if(e.ranse_id && Number(e.ranse_id) > 0){
- try{
- this.ranse_id = Number(e.ranse_id);
- let res = await userRanse(this.ranse_id);
-
- }catch(e){
- console.log("player-errr:",e)
- }
- }
- uni.getSystemInfo({
- success: res => {
- this.safeArea = res.safeAreaInsets.bottom;
- if (this.safeArea > 0) {
- this.heightxw = 97
- }
- }
- })
- // #ifdef MP-TOUTIAO
- this.ttuop = 64
- // #endif
- this.windowWidth = uni.getSystemInfoSync().windowWidth
- this.windowHeight = uni.getSystemInfoSync().windowHeight - this.safeArea - this.ttuop
- console.log(this.windowHeight)
- },
- onShow() {
- },
- onShareAppMessage: function(res) {
- // #ifdef MP-WEIXIN
- var href = '/pages/video/index?video_id=' + this.video_id + "&"
- console.log(res)
- let that = this;
- const obj = {
- title: "发送给好友",
- imageUrl: '',
- path: href,
- success: function(res) {
- console.log(res, "转发成功")
- },
- fail: function(res) {
- wx.showToast({
- title: '发送失败',
- icon: 'none'
- })
- }
- }
- return obj
- // #endif
- },
- watch: {
- activeIndex(newVal, oldVal) {
- let index = this.labelList.findIndex(el => el.content.includes(newVal))
- this.tabcurrent = index
- }
- },
- onBackPress() {},
- methods: {
- bingewatch() {
- storeshelf(this.video_id).then(res => {
- console.log(res, 'storeshelfstoreshelfstoreshelf')
- this.videoInfo.is_binge_watch = !Boolean(this.videoInfo.is_binge_watch)
- uni.showToast({
- title: '追剧成功',
- duration: 1000,
- icon: 'none'
- });
- })
- },
- unBingewatch() {
- delShelf(this.video_id).then(res => {
- console.log(res, 'delShelfdelShelfdelShelfdelShelfdelShelf')
- this.videoInfo.is_binge_watch = !Boolean(this.videoInfo.is_binge_watch)
- })
- },
- leftClick(e) {
- if (!this.videoInfo?.is_binge_watch) {
- uni.showModal({
- title: '加入追剧',
- content: '喜欢就加入追剧吧',
- confirmText: '加入追剧',
- confirmColor: '#FFA500',
- cancelText: '不用了',
- success: (res) => {
- if (res.confirm) {
- this.bingewatch()
- uni.navigateBack()
- // 用户点击了确定按钮
- // 执行加入追剧的逻辑
- } else if (res.cancel) {
- // 用户点击了取消按钮
- // 执行取消逻辑
- uni.navigateBack()
- }
- }
- });
- } else {
- uni.navigateBack()
- }
- },
- myLike(like) {
- videoEpisodeZan({
- episode_id: this.currentVideoInfo.id,
- zan: like
- }).then(res => {
- console.log(res, 'VideoEpisodeZanVideoEpisodeZanVideoEpisodeZan')
- this.$nextTick(() => {
- this.currentVideoInfo.is_zan = !Boolean(this.currentVideoInfo.is_zan)
- if (this.currentVideoInfo.is_zan) {
- this.currentVideoInfo.total_zan++
- } else {
- this.currentVideoInfo.total_zan--
- }
- })
- })
- },
- initTabs() {
- function innit(i, num) {
- let arr = [];
- for (i; i <= num; i++) {
- arr.push(i)
- }
- return arr
- }
- const pageSize = this.limitPage;
- const total = this.videoInfo.total_episode_num;
- const pageCount = Math.ceil(total / pageSize);
- for (let i = 0; i < pageCount; i++) {
- const start = i * pageSize + 1;
- const end = i === pageCount - 1 ? total : (i + 1) * pageSize;
- let label;
- if (i === pageCount - 1) {
- if (start === total) {
- label = `${total}`
- } else {
- label = `${start}-${total}`
- }
- } else {
- label = `${start}-${end}`
- }
- let index;
- if (label.split('-')[1]) {
- index = label.split('-')[1]
- } else {
- index = total
- }
- this.labelList.push({
- name: label,
- page: pageCount,
- content: innit(start, index)
- })
- }
- },
- async getPayInfo(originIndex) {
- this.user_info = await getUserInfo();
- this.payOptions = await getOptions();
- this.payOptions.forEach((item, index) => {
- if (item.is_default == 1) {
- this.pay_select_id = item.id;
- }
- })
- this.payVideoInfo = {
- video_id: this.video_id,
- video_series_sequence: originIndex
- };
- },
- async selectPayItem(item) {
- this.pay_select_id = item.id;
- let params = {
- video_id: this.payVideoInfo.video_id,
- video_series_sequence: this.payVideoInfo.video_series_sequence,
- pay_proudct_id: item.id
- }
- let res = await getPayInfo(params);
- if (res) {
- // #ifdef MP-WEIXIN
- this.wxMinPay(res);
- // #endif
- }
- },wxMinPay(param){
- wx.requestPayment({
- timeStamp: param.timeStamp,
- nonceStr: param.nonceStr,
- package: param.package,
- signType: param.signType,
- paySign: param.paySign,
- success (res) {
- this.pay_success = true;
- uni.showToast({ title: '支付成功',icon:"none" });
- // console.log('success:' + JSON.stringify(res));
- },
- fail (e) {
- if(e.errMsg == "requestPayment:fail cancel"){
- uni.showToast({ title: '取消支付',icon:"none" });
- }else{
- uni.showToast({ title: '支付失败',icon:"none" });
- }
- }
- })
- },
- playTest(item) {
- console.log(item)
- if (this.isShowVip(item)) {
- console.log('111111111111111', item)
- this.fenji = 2
- this.getPayInfo(item);
- this.activeIndex = ''
- } else if (this.isShowUpdate(item)) {
- this.activeIndex = ''
- uni.showToast({
- title: '剧集暂未更新',
- duration: 1000,
- icon: 'none'
- });
- } else {
- this.activeIndex = item;
- this.swiperCurrent = item - 1;
- this.episode = this.swiperCurrent
- // this.initSwiperData(item)
- this.down();
- }
- },
- labelListClick(item) {
- this.tabcurrent = item.index
- console.log('itemitemitemitemitem', item);
- },
- share() {
- var href = '/pages/video/index?video_id=' + this.video_id
- // #ifdef H5
- uni.setClipboardData({
- data: this.urls + '/h5/#' + href,
- complete() {
- uni.showToast({
- title: "分享连接已复制到剪贴板"
- })
- }
- })
- // #endif
- // #ifndef H5
- uni.share({
- provider: "weixin",
- scene: "WXSenceTimeline",
- type: 0,
- href: href,
- title: '分享标题',
- summary: '分享总结',
- imageUrl: '',
- success: function(res) {
- console.log("success:" + JSON.stringify(res));
- },
- fail: function(err) {
- console.log("fail:" + JSON.stringify(err));
- }
- })
- // #endif
- },
- down() {
- this.$refs.select.close();
- },
- sellxj() {
- this.fenji = 1
- this.$refs.select.open('bottom');
- this.$nextTick(() => {
- let num1 = (this.windowHeight / 1.6) * 0.85;
- let num2 = num1 / 4.78;
- this.scrollTop = num2 * Number(this.k);
- })
- },
- tapVideoHover(index, pays) {
- this.videoContext.play()
- // this.$refs.select.open('bottom');
- },
- tapVides() {
- this.isqp = !this.isqp
- },
- ended() {
- //console.log('isplay----',this.isplay)
- // 1.播放当前视频结束时触发,自动切换下一个视频
- if (this.isplay) {
- if (this.displayIndex < 2) {
- this.current = this.displayIndex + 1
- } else {
- this.current = 0
- }
- this.isqp = true
- console.log('显示swiper Index:', this.displayIndex)
- }
- },
- initSwiperData(originIndex) {
- this.episode = originIndex;
- this.isqp = true
- videoEpisodePlay({
- video_id: this.video_id,
- sequence: originIndex,
- }).then(res => {
- if (res.code == 0) {
- this.currentVideoInfo = res.data
- this.activeIndex = this.episode;
- this.isShow = true
- } else if (res.code == 500101) {
- console.log(this.currentVideoInfo, 'res.code == 500101res.code == 500101')
- this.currentVideoInfo.video_url = ""
- this.isShow = false
- this.isqp = false
- this.fenji = 2
- this.getPayInfo(originIndex);
- this.$refs.select.open('bottom');
- // this.currentVideoInfo = {}
- } else {
- this.isqp = false
- this.currentVideoInfo.video_url = ""
- this.isShow = false
- }
- console.log(res, 'getVideoEpisodePlaygetVideoEpisodePlay')
- })
- },
- /**
- * swiper滑动时候
- */
- swiperChange(event) {
- const {
- current
- } = event.detail;
- this.swiperCurrent = current
- console.log(this.swiperCurrent, 'this.swiperCurrentthis.swiperCurrent')
- this.initSwiperData(current + 1)
- },
- controlstoggle(e) {
- console.log(e.detail.show);
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .vip-center {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- }
- .vip-level-icon {
- margin-right: 10rpx;
- width: 80px;
- height: 30px;
- }
- .pay-box {
- background-color: #fff;
- display: flex;
- justify-content: space-between;
- flex-direction: row;
- padding: 0 20px;
- flex-wrap: wrap;
- }
- .top-lab {
- width: 40px;
- text-align: center;
- background-color: #ff5722;
- color: #fff;
- float: right;
- border-top: none;
- border-radius: 10px;
- }
- .pay-box-items {
- margin-top: 10px;
- width: 48%;
- flex-direction: column;
- border-radius: 10px;
- line-height: 25px;
- overflow: hidden;
- }
- .pay-box-items-txt {
- padding: 1rpx 13px;
- }
- .pay-box-items view text {
- line-height: 25px;
- }
- .pay-select {
- border: solid 1px #ff5722;
- }
- .select-text {
- background-color: #ff5722;
- color: #fff;
- height: 30px;
- border-radius: 0rpx 0rpx 10rpx 10rpx;
- }
- .given-txt {
- height: 30px;
- border-top: solid 1rpx #9e9e9e1f;
- }
- .content {
- background: #000000;
- }
- .userInfo {
- position: absolute;
- z-index: 99;
- bottom: 30%;
- right: 10px;
- width: 100rpx;
- text-align: center;
- flex-direction: column;
- }
- .contentcd {
- background-color: rgba(255, 255, 255, .3);
- width: 720rpx;
- z-index: 99;
- position: absolute;
- bottom: 70rpx;
- left: 50%;
- transform: translateX(-50%);
- padding: 15rpx;
- border-radius: 8px;
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- color: #ffffff;
- margin: 0 auto;
- }
- .userName {
- color: #fff;
- font-size: 30rpx;
- color: #ffffff;
- margin: 0 6rpx;
- }
- .tsvideo {
- animation: showDivAni 2s 1;
- }
- @keyframes showDivAni {
- 0% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- }
- }
- </style>
- <style lang="scss" scoped>
- .charge-wrapper {
- margin-top: 15px;
- width: 100%;
- .top {
- width: 100%;
- display: flex;
- align-items: center;
- .charge-title {
- font-size: 18px;
- font-weight: bold;
- }
- .charge-info {
- font-size: 15px;
- color: #868686;
- margin: 8px 0;
- }
- .charge-coin {
- display: flex;
- flex-direction: row;
- .ji {
- font-size: 18px;
- }
- .bi {
- font-size: 18px;
- color: $accent-color;
- }
- }
- }
- }
- .down {
- display: flex;
- flex-direction: row;
- width: 60px;
- height: 30px;
- margin-top: 5px;
- position: absolute;
- right: 0px;
- top: 50%;
- transform: translateY(-50%);
- .down-text {
- font-size: 16px;
- color: #000;
- }
- .down-img {
- width: 35rpx;
- height: 35rpx;
- object-fit: contain;
- }
- }
- .ju-top {
- // background-color: ;
- .ju-top-title {
- font-size: 16px;
- font-weight: bold;
- color: #000;
- margin-top: 9px;
- height: 22px;
- margin-left: 20px;
- // width: '+ (windowWidth*0.6) +' px;
- overflow: hidden;
- }
- .ju-top-update {
- font-size: 12px;
- color: #000;
- margin-top: 9px;
- height: 22px;
- margin-left: 20px;
- }
- }
- .pop-my {
- background-color: #FFFFFF;
- }
- .scroll-my {
- height: fit-content;
- }
- .scroll-charge {
- height: 50vh;
- }
- .ju-wrapper {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- align-items: center;
- justify-content: start;
- width: 100%;
- height: 100%;
- background-color: #FFFFFF;
- // margin: 6rpx;
- .ju-content.active {
- background-color: #ff7f02;
- }
- .ju-content {
- flex-grow: 1;
- position: relative;
- border-radius: 12rpx;
- background-color: #f6f6f6;
- width: 31%;
- height: 25rpx;
- align-items: center;
- justify-content: center;
- padding: 45rpx 68rpx;
- margin: 6rpx;
- .lock-wrapper,
- .lock-wrapper-no {
- position: absolute;
- width: 100%;
- height: 100%;
- border-radius: 12rpx;
- background-color: rgba(0, 0, 0, .3);
- .lock-img {
- position: absolute;
- left: 3rpx;
- top: 50%;
- transform: translateY(-50%);
- width: 50rpx;
- height: 50rpx;
- margin-left: 20rpx;
- }
- .update-title {
- width: fit-content;
- height: fit-content;
- border-radius: 8rpx;
- font-size: 10px;
- padding: 6rpx;
- background-color: #868686;
- color: #fff;
- }
- }
- .lock-wrapper-no {
- background-color: #f6f6f6;
- }
- .title {
- font-size: 16px;
- }
- }
- }
- .utabs-top /deep/ .u-tabs {
- align-items: flex-start;
- }
- </style>
|