|
@@ -1,76 +1,115 @@
|
|
<template>
|
|
<template>
|
|
<view class="center">
|
|
<view class="center">
|
|
<view class="box">
|
|
<view class="box">
|
|
- <view class="title">
|
|
|
|
- <view class="log"><image src="" mode=""></image></view>
|
|
|
|
- <view class="name">FilsCoin矿机拼购</view>
|
|
|
|
- <view class="lun">36轮</view>
|
|
|
|
- <view class="more">已开奖</view>
|
|
|
|
|
|
+ <view class="title flex">
|
|
|
|
+ <view class="flex">
|
|
|
|
+ <view class="log"><image src="../../static/img/pgTip.png" mode="scaleToFill"></image></view>
|
|
|
|
+ <view class="name">{{ item.name }}</view>
|
|
|
|
+ <view class="lun">{{ item.lun }}</view>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-if="item.status == 0" class="more text-gray">未开始</view>
|
|
|
|
+ <view v-if="item.status >0" class="more text-success" >已开奖</view>
|
|
</view>
|
|
</view>
|
|
<view class="main">
|
|
<view class="main">
|
|
<view class="main-info rule">每轮限购1组,每组限购1份</view>
|
|
<view class="main-info rule">每轮限购1组,每组限购1份</view>
|
|
<view class="main-info time">
|
|
<view class="main-info time">
|
|
开奖时间:
|
|
开奖时间:
|
|
- <text>2021-07-21 08:00:00</text>
|
|
|
|
|
|
+ <text>{{item.stopTime}}</text>
|
|
</view>
|
|
</view>
|
|
- <view class="main-info new">该轮预约1份,拼中1份,退回0份</view>
|
|
|
|
|
|
+ <view class="main-info new">该轮预约{{item.bingos+item.fails}}份,拼中{{item.bingos}}份,退回{{item.fails}}份</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="box">
|
|
<view class="box">
|
|
<view class="allTitle">
|
|
<view class="allTitle">
|
|
- <view class="title-left">第1组 预约份数/总份数:11/11</view>
|
|
|
|
- <view class="title-right">未中奖</view>
|
|
|
|
|
|
+ <view class="title-left">第{{item.table_id}}组 预约份数/总份数:{{item.joins}}/{{item.join_number}}</view>
|
|
|
|
+ <view class="title-right text-gray" v-if="item.status == 0">未开奖</view>
|
|
|
|
+ <view class="title-right text-success" v-if="item.status == 1">已中奖</view>
|
|
|
|
+ <view class="title-right text-danger" v-if="item.status == 2">未中奖</view>
|
|
|
|
+ <view class="title-right text-warning" v-if="item.status == 3">未成团</view>
|
|
</view>
|
|
</view>
|
|
<view class="yu-main">
|
|
<view class="yu-main">
|
|
- <view class="img"><image src="" mode=""></image></view>
|
|
|
|
|
|
+ <view class="img"><image src="../../static/img/bgTip2.png" mode="scaleToFill"></image></view>
|
|
<view class="yu-info">
|
|
<view class="yu-info">
|
|
- <view class="info">
|
|
|
|
|
|
+ <view class="info" v-if="item.status > 1">
|
|
<view class="yu-font">回退本金</view>
|
|
<view class="yu-font">回退本金</view>
|
|
- <view class="yu-num">100USDT</view>
|
|
|
|
|
|
+ <view class="yu-num">{{item.cost+item.type}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="info">
|
|
<view class="info">
|
|
<view class="yu-font">收益</view>
|
|
<view class="yu-font">收益</view>
|
|
- <view class="yu-num">3USDT</view>
|
|
|
|
|
|
+ <view class="yu-num">{{item.join_award+item.type}}</view>
|
|
</view>
|
|
</view>
|
|
<view class="info">
|
|
<view class="info">
|
|
<view class="yu-font">唯一凭证</view>
|
|
<view class="yu-font">唯一凭证</view>
|
|
- <view class="yu-num">LALA122002552000</view>
|
|
|
|
|
|
+ </view>
|
|
|
|
+ <view class="info">
|
|
|
|
+ <view class="yu-num">{{item.order_id}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="boom">
|
|
<view class="boom">
|
|
<view class="boom-font">当前组爆快</view>
|
|
<view class="boom-font">当前组爆快</view>
|
|
- <view class="boom-num">
|
|
|
|
|
|
+ <!-- <view class="boom-num">
|
|
LALA122002552000
|
|
LALA122002552000
|
|
<br />
|
|
<br />
|
|
LALA122002552000
|
|
LALA122002552000
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- import { pinkLogDate } from '@/api/finance.js';
|
|
|
|
|
|
+import { pinkLogDate } from '@/api/finance.js';
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- id:''
|
|
|
|
|
|
+ id: '',
|
|
|
|
+ item: {}
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onLoad(e) {
|
|
onLoad(e) {
|
|
this.id = e.id;
|
|
this.id = e.id;
|
|
- this.getDate()
|
|
|
|
|
|
+ this.getDate();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getDate() {
|
|
getDate() {
|
|
- pinkLogDate({},this.id).then((e) => {
|
|
|
|
- console.log(e);
|
|
|
|
- }).catch((e) => {
|
|
|
|
- console.log(e);
|
|
|
|
- })
|
|
|
|
|
|
+ pinkLogDate({}, this.id)
|
|
|
|
+ .then(e => {
|
|
|
|
+ const ls = e.data;
|
|
|
|
+ const lun = ls.group_num > 0 ? ls.group_num + '轮' : '';
|
|
|
|
+ const time = new Date(ls.pay_time * 1000);
|
|
|
|
+ let sy = ls.join_award*ls.cost/100+'';
|
|
|
|
+ const num = sy.split('.')[1]
|
|
|
|
+ // 判断小数点是否超过8位数标
|
|
|
|
+ if(num&&num.length>8){
|
|
|
|
+ sy = (+sy).toFixed(8);
|
|
|
|
+ }
|
|
|
|
+ this.item = {
|
|
|
|
+ name: ls.activity.name,
|
|
|
|
+ lun,
|
|
|
|
+ fen: 1,
|
|
|
|
+ money: +ls.cost,
|
|
|
|
+ type: ls.cost_money_type,
|
|
|
|
+ time: time.getFullYear() + '-' + (time.getMonth() + 1) + '-' + time.getDate(),
|
|
|
|
+ stopTime:'',
|
|
|
|
+ image: ls.activity.background_image,
|
|
|
|
+ id: ls.id,
|
|
|
|
+ status: ls.status,
|
|
|
|
+ bingos:ls.bingos,
|
|
|
|
+ fails:ls.fails,
|
|
|
|
+ table_id:ls.table_id,
|
|
|
|
+ joins:ls.joins.length,
|
|
|
|
+ join_number:ls.activity.join_number,
|
|
|
|
+ cost:+ls.cost,
|
|
|
|
+ join_award:+sy,
|
|
|
|
+ order_id:ls.order_id
|
|
|
|
+ };
|
|
|
|
+ })
|
|
|
|
+ .catch(e => {
|
|
|
|
+ console.log(e);
|
|
|
|
+ });
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ }
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -88,13 +127,9 @@ page {
|
|
border-radius: 20rpx;
|
|
border-radius: 20rpx;
|
|
padding: 26rpx 36rpx 30rpx 30rpx;
|
|
padding: 26rpx 36rpx 30rpx 30rpx;
|
|
.title {
|
|
.title {
|
|
- display: flex;
|
|
|
|
- justify-content: flex-start;
|
|
|
|
- align-items: center;
|
|
|
|
.log {
|
|
.log {
|
|
width: 48rpx;
|
|
width: 48rpx;
|
|
height: 46rpx;
|
|
height: 46rpx;
|
|
- background: #00bcd4;
|
|
|
|
image {
|
|
image {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
@@ -189,6 +224,7 @@ page {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
.yu-font {
|
|
.yu-font {
|
|
|
|
+ flex-shrink: 0;
|
|
font-size: 26rpx;
|
|
font-size: 26rpx;
|
|
font-family: PingFang SC;
|
|
font-family: PingFang SC;
|
|
font-weight: 500;
|
|
font-weight: 500;
|