| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- <template>
- <view class="content">
- <view class="wrap">
- <image src="../../static/img/xcbg.png" mode="" class="bg"></image>
- <view class="data-wrap">
- <image src="../../static/img/cg-bg-t.png" mode=""></image>
- <view class="cg-tit">
- 第{{current == 1 ? '一': (current == 2) ? '二': (current == 3? '三': '四')}}关
- </view>
- <view class="data">
- <image src="../../static/img/yuanhuan.png" mode=""></image>
- <view class="val" v-if="current == 1">
- {{pool.one_pool_sum || '0'}}
- </view>
- <view class="val" v-if="current == 2">
- {{pool.two_pool_sum || '0'}}
- </view>
- <view class="val" v-if="current == 3">
- {{pool.three_pool_sum || '0'}}
- </view>
- <view class="val" v-if="current == 4">
- {{pool.for_pool_sum || '0'}}
- </view>
- </view>
- <view class="data-tit" v-if="current == 1">
- 当前推荐人数共 <text
- style="color: #FF5F36;font-weight: bold;padding: 0 10rpx;">{{pool.one_pool_sum}}</text> 人
- </view>
- <view class="data-tit" v-if="current == 2">
- 排单号:<text class="num">{{pool.two_pool}}</text>,距离下一个出局需等待<text
- class="num">{{pool.two_pool - pool.two_pool_out -1}}</text>位
- </view>
- <view class="data-tit" v-if="current == 3">
- 排单号:<text class="num">{{pool.three_pool}}</text>,距离下一个出局需等待<text
- class="num">{{pool.three_pool - pool.three_pool_out -1}}</text>位
- </view>
- <view class="data-tit" v-if="current == 4">
- 排单号:<text class="num">{{pool.for_pool}}</text>,距离下一个出局需等待<text
- class="num">{{pool.for_pool - pool.for_pool_out -1}}</text>位
- </view>
- <view class="next" @click="goNest" v-if="current == 1 && pool.two_pool > 0">
- 下一关
- </view>
- <view class="next" @click="goNest" v-if="current == 2 && pool.three_pool > 0">
- 下一关
- </view>
- <view class="next" @click="goNest" v-if="current == 3 && pool.for_pool > 0">
- 下一关
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- mapState,
- mapMutations
- } from 'vuex';
- import {
- getUserInfo,
- userPool
- } from '@/api/user.js';
- export default {
- data() {
- return {
- current: 1,
- pool: {}
- }
- },
- onShow() {
- this.userPool()
- },
- computed: {
- ...mapState('user', ['userInfo'])
- },
- methods: {
- userPool() {
- userPool().then(res => {
- console.log(res);
- this.pool = res.data
- })
- },
- goNest() {
- ++this.current
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- page {
- height: auto;
- min-height: 100%;
- // background-color: red;
- }
- .wrap {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- .bg {
- width: 100%;
- height: 100%;
- vertical-align: middle;
- }
- .data-wrap {
- width: 750rpx;
- height: 603rpx;
- position: absolute;
- bottom: 10%;
- image {
- width: 100%;
- height: 100%;
- }
- .cg-tit {
- width: 100%;
- font-size: 36rpx;
- font-family: Source Han Sans SC;
- font-weight: bold;
- color: #FFFFFF;
- line-height: 66rpx;
- text-align: center;
- position: absolute;
- top: 0;
- }
- .data {
- position: absolute;
- top: 126rpx;
- left: 0;
- right: 0;
- margin: auto;
- width: 222rpx;
- height: 222rpx;
- image {
- width: 100%;
- height: 100%;
- }
- .val {
- position: absolute;
- width: 222rpx;
- height: 222rpx;
- top: 0;
- left: 0;
- text-align: center;
- line-height: 222rpx;
- font-size: 48rpx;
- font-weight: bold;
- background-image: linear-gradient(to bottom, yellow, red, yellow, red);
- color: transparent;
- -webkit-background-clip: text;
- }
- }
- .data-tit {
- font-size: 32rpx;
- font-weight: 500;
- color: #333333;
- position: absolute;
- width: 100%;
- bottom: 194rpx;
- text-align: center;
- }
- .next {
- width: 372rpx;
- height: 83rpx;
- background: linear-gradient(0deg, #FF5138 0%, #FF9F2D 100%);
- border: 4px solid #eabb72;
- border-radius: 41rpx;
- font-size: 40rpx;
- font-weight: 800;
- color: #FFFFFF;
- text-align: center;
- margin: auto;
- }
- }
- }
- .num {
- color: #FF5F36;
- font-weight: bold;
- padding: 0 10rpx;
- }
- </style>
|