|
@@ -3,31 +3,26 @@
|
|
|
<image class="logo-img" src="../../static/img/img01.png"></image>
|
|
<image class="logo-img" src="../../static/img/img01.png"></image>
|
|
|
<view class="list-box">
|
|
<view class="list-box">
|
|
|
<scroll-view scroll-x class="list-title">
|
|
<scroll-view scroll-x class="list-title">
|
|
|
- <view class="title"
|
|
|
|
|
- :class="{ blue: tabCurrent == '全部' }"
|
|
|
|
|
- @click="tabClick('全部', 1)"
|
|
|
|
|
- >
|
|
|
|
|
- 全部
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <!-- <view class="title" :class="{ blue: tabCurrent == '全部' }" @click="tabClick('全部', 1)">全部</view> -->
|
|
|
<view
|
|
<view
|
|
|
class="title"
|
|
class="title"
|
|
|
v-for="(ls, index) in moneyTypeList"
|
|
v-for="(ls, index) in moneyTypeList"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
:class="{ blue: tabCurrent == ls.code, grey: ls.has_mining == 0 }"
|
|
:class="{ blue: tabCurrent == ls.code, grey: ls.has_mining == 0 }"
|
|
|
@click="tabClick(ls.code, ls.has_mining)"
|
|
@click="tabClick(ls.code, ls.has_mining)"
|
|
|
- v-if="ls.name !== 'USDT'"
|
|
|
|
|
|
|
+ v-if="ls.name === 'FIL'"
|
|
|
>
|
|
>
|
|
|
{{ ls.name }}
|
|
{{ ls.name }}
|
|
|
</view>
|
|
</view>
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
- <view class="flex_item list-name" v-if="tabCurrent!== '全部'">
|
|
|
|
|
|
|
+ <view class="flex_item list-name" v-if="tabCurrent !== '全部'">
|
|
|
<view class="name" :class="{ black: tabType == 1 }" @click="tabTypeClick(1)">算力包</view>
|
|
<view class="name" :class="{ black: tabType == 1 }" @click="tabTypeClick(1)">算力包</view>
|
|
|
- <view class="name" :class="{ black: tabType == 2 }" @click="tabTypeClick(2)">独享矿机</view>
|
|
|
|
|
- <view class='name' :class="{'black':tabType==3}" @click="tabTypeClick(3)">联合挖矿</view>
|
|
|
|
|
|
|
+ <!--<view class="name" :class="{ black: tabType == 2 }" @click="tabTypeClick(2)">独享矿机</view>
|
|
|
|
|
+ <view class="name" :class="{ black: tabType == 3 }" @click="tabTypeClick(3)">联合挖矿</view> -->
|
|
|
<!-- <view class='name' :class="{'black':tabCurrent==4}">分类名称</view> -->
|
|
<!-- <view class='name' :class="{'black':tabCurrent==4}">分类名称</view> -->
|
|
|
</view>
|
|
</view>
|
|
|
<view class="jg" v-else></view>
|
|
<view class="jg" v-else></view>
|
|
|
- <view class="list-cell" v-if="list.length > 0" v-for="(ls, index) in list" :key="index" :class="{'mini-list-cell': tabCurrent === '全部'}">
|
|
|
|
|
|
|
+ <view class="list-cell" v-if="list.length > 0" v-for="(ls, index) in list" :key="index" :class="{ 'mini-list-cell': tabCurrent === '全部' }">
|
|
|
<view class="flex">
|
|
<view class="flex">
|
|
|
<view>
|
|
<view>
|
|
|
<view class="cell-title flex">
|
|
<view class="cell-title flex">
|
|
@@ -37,7 +32,7 @@
|
|
|
<view class="tags">
|
|
<view class="tags">
|
|
|
<!-- <view class="cell-tip">{{ ls.first_step_time + ls.second_step_time + ls.third_step_time }}天矿机</view> -->
|
|
<!-- <view class="cell-tip">{{ ls.first_step_time + ls.second_step_time + ls.third_step_time }}天矿机</view> -->
|
|
|
<template v-if="ls.tags[0] !== '0'">
|
|
<template v-if="ls.tags[0] !== '0'">
|
|
|
- <view class="cell-tip" v-for="item in ls.tags" :key="item">{{item}}</view>
|
|
|
|
|
|
|
+ <view class="cell-tip" v-for="item in ls.tags" :key="item">{{ item }}</view>
|
|
|
<!-- <view class="cell-tag">特价</view> -->
|
|
<!-- <view class="cell-tag">特价</view> -->
|
|
|
</template>
|
|
</template>
|
|
|
</view>
|
|
</view>
|
|
@@ -57,7 +52,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="tpl">
|
|
<view class="tpl">
|
|
|
<view class="">合约周期</view>
|
|
<view class="">合约周期</view>
|
|
|
- <view class="">{{ ls.first_step_time + ls.second_step_time }}天 + {{ls.third_step_time}}天</view>
|
|
|
|
|
|
|
+ <view class="">{{ ls.first_step_time + ls.second_step_time }}天 + {{ ls.third_step_time }}天</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- <view class="tpl">
|
|
<!-- <view class="tpl">
|
|
|
<view class="">上架期</view>
|
|
<view class="">上架期</view>
|
|
@@ -69,7 +64,9 @@
|
|
|
<view class="zhiya-btn" v-if="ls.stock > 0" @click="ToBuy(ls)">{{ ls.type == 3 ? '立即质押' : '立即购买' }}</view>
|
|
<view class="zhiya-btn" v-if="ls.stock > 0" @click="ToBuy(ls)">{{ ls.type == 3 ? '立即质押' : '立即购买' }}</view>
|
|
|
<view class="zhiya-btn grey" v-if="ls.stock == 0">已售罄</view>
|
|
<view class="zhiya-btn grey" v-if="ls.stock == 0">已售罄</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- <view class="list-tip" v-if="ls.detail"><rich-text :nodes="ls.detail"></rich-text></view> -->
|
|
|
|
|
|
|
+ <view class="luckbox">
|
|
|
|
|
+ 购买当前矿机所需幸运值<span>{{ls.cost_times}}</span>,您当前拥有的幸运值为<span>{{ls.luck_point - ls.exchange_point}}</span>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="empty-box" v-show="list.length === 0"><u-empty text="敬请期待" mode="data"></u-empty></view>
|
|
<view class="empty-box" v-show="list.length === 0"><u-empty text="敬请期待" mode="data"></u-empty></view>
|
|
|
</view>
|
|
</view>
|
|
@@ -132,40 +129,40 @@ export default {
|
|
|
let obj = this;
|
|
let obj = this;
|
|
|
// console.log(obj.moneyTypeList);
|
|
// console.log(obj.moneyTypeList);
|
|
|
wallet({}).then(({ data }) => {
|
|
wallet({}).then(({ data }) => {
|
|
|
- console.log(data);
|
|
|
|
|
- obj.like_rmb = data.all_rmb;
|
|
|
|
|
- obj.like_usdt = data.all_usdt;
|
|
|
|
|
- const arr = Object.keys(data.back);
|
|
|
|
|
- console.log(arr);
|
|
|
|
|
- let ar = [];
|
|
|
|
|
- arr.forEach(e => {
|
|
|
|
|
- ar.push(data.back[e]);
|
|
|
|
|
- });
|
|
|
|
|
- obj.moneyTypeList = ar;
|
|
|
|
|
- console.log(obj.moneyTypeList,"swpie")
|
|
|
|
|
|
|
+ console.log(data);
|
|
|
|
|
+ obj.like_rmb = data.all_rmb;
|
|
|
|
|
+ obj.like_usdt = data.all_usdt;
|
|
|
|
|
+ const arr = Object.keys(data.back);
|
|
|
|
|
+ console.log(arr);
|
|
|
|
|
+ let ar = [];
|
|
|
|
|
+ arr.forEach(e => {
|
|
|
|
|
+ ar.push(data.back[e]);
|
|
|
});
|
|
});
|
|
|
- },
|
|
|
|
|
|
|
+ obj.moneyTypeList = ar;
|
|
|
|
|
+ console.log(obj.moneyTypeList, 'swpie');
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
// 请求载入数据
|
|
// 请求载入数据
|
|
|
async loadData() {
|
|
async loadData() {
|
|
|
let obj = this;
|
|
let obj = this;
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
|
title: '加载中...'
|
|
title: '加载中...'
|
|
|
});
|
|
});
|
|
|
- if(obj.tabCurrent === '全部'){
|
|
|
|
|
- obj.list = []
|
|
|
|
|
|
|
+ if (obj.tabCurrent === '全部') {
|
|
|
|
|
+ obj.list = [];
|
|
|
mining({
|
|
mining({
|
|
|
page: 1,
|
|
page: 1,
|
|
|
limit: 1000
|
|
limit: 1000
|
|
|
- }).then( ({data}) => {
|
|
|
|
|
|
|
+ }).then(({ data }) => {
|
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
- console.log(data.data,'9999999999999999999999999999999999')
|
|
|
|
|
|
|
+ console.log(data.data, '9999999999999999999999999999999999');
|
|
|
obj.list = data.data.map(e => {
|
|
obj.list = data.data.map(e => {
|
|
|
e.step = +e.step;
|
|
e.step = +e.step;
|
|
|
e._cost_money = +e._cost_money.replace(e.cost_money_type, '') + e.cost_money_type;
|
|
e._cost_money = +e._cost_money.replace(e.cost_money_type, '') + e.cost_money_type;
|
|
|
return e;
|
|
return e;
|
|
|
});
|
|
});
|
|
|
console.log(obj.list, 'obj.list++++++++++++');
|
|
console.log(obj.list, 'obj.list++++++++++++');
|
|
|
- })
|
|
|
|
|
|
|
+ });
|
|
|
// for(let i = 0 ; i<obj.moneyTypeList.length;i++){
|
|
// for(let i = 0 ; i<obj.moneyTypeList.length;i++){
|
|
|
// if(obj.moneyTypeList[i].has_mining !==0){
|
|
// if(obj.moneyTypeList[i].has_mining !==0){
|
|
|
// mining({
|
|
// mining({
|
|
@@ -195,14 +192,13 @@ export default {
|
|
|
// }
|
|
// }
|
|
|
// // console.log(obj.list, 'new obj.list-------------')
|
|
// // console.log(obj.list, 'new obj.list-------------')
|
|
|
// uni.hideLoading();
|
|
// uni.hideLoading();
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// })
|
|
// })
|
|
|
// }
|
|
// }
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// }
|
|
// }
|
|
|
// let len = obj.list.length;
|
|
// let len = obj.list.length;
|
|
|
-
|
|
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
mining({
|
|
mining({
|
|
|
page: 1,
|
|
page: 1,
|
|
|
limit: 1000,
|
|
limit: 1000,
|
|
@@ -217,7 +213,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
console.log(obj.list, 'obj.list++++++++++++');
|
|
console.log(obj.list, 'obj.list++++++++++++');
|
|
|
let len = obj.list.length;
|
|
let len = obj.list.length;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
for (let i = 0; i < len; i++) {
|
|
for (let i = 0; i < len; i++) {
|
|
|
// obj.list[i].tags = obj.list[i].tags.splice(',')
|
|
// obj.list[i].tags = obj.list[i].tags.splice(',')
|
|
|
for (let j = 0; j < len; j++) {
|
|
for (let j = 0; j < len; j++) {
|
|
@@ -228,12 +224,11 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
console.log(obj.list, 'new obj.list-------------');
|
|
console.log(obj.list, 'new obj.list-------------');
|
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
ToBuy(ls) {
|
|
ToBuy(ls) {
|
|
|
// let obj = this;
|
|
// let obj = this;
|
|
@@ -270,8 +265,8 @@ export default {
|
|
|
this.$refs.popup.close();
|
|
this.$refs.popup.close();
|
|
|
},
|
|
},
|
|
|
tabClick(index, has_mining) {
|
|
tabClick(index, has_mining) {
|
|
|
- if(index === '全部') {
|
|
|
|
|
- console.log('ddddddddd')
|
|
|
|
|
|
|
+ if (index === '全部') {
|
|
|
|
|
+ console.log('ddddddddd');
|
|
|
}
|
|
}
|
|
|
if (has_mining == 0) {
|
|
if (has_mining == 0) {
|
|
|
this.$api.msg('敬请期待!');
|
|
this.$api.msg('敬请期待!');
|
|
@@ -307,7 +302,7 @@ page {
|
|
|
white-space: nowrap;
|
|
white-space: nowrap;
|
|
|
.title {
|
|
.title {
|
|
|
display: inline-block;
|
|
display: inline-block;
|
|
|
- background-color: #A7DCD7;
|
|
|
|
|
|
|
+ background-color: #44969d;
|
|
|
font-size: 30rpx;
|
|
font-size: 30rpx;
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
@@ -317,7 +312,7 @@ page {
|
|
|
line-height: 60rpx;
|
|
line-height: 60rpx;
|
|
|
}
|
|
}
|
|
|
.blue {
|
|
.blue {
|
|
|
- background-color: #44969D;
|
|
|
|
|
|
|
+ background-color: #44969d;
|
|
|
}
|
|
}
|
|
|
.grey {
|
|
.grey {
|
|
|
background-color: #dbdbdb !important;
|
|
background-color: #dbdbdb !important;
|
|
@@ -359,7 +354,7 @@ page {
|
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
|
padding: 40rpx 40rpx;
|
|
padding: 40rpx 40rpx;
|
|
|
border-radius: 30rpx 30rpx;
|
|
border-radius: 30rpx 30rpx;
|
|
|
- background: #F3FEFF;
|
|
|
|
|
|
|
+ background: #f3feff;
|
|
|
margin-bottom: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
|
position: relative;
|
|
position: relative;
|
|
|
.cell-title {
|
|
.cell-title {
|
|
@@ -410,11 +405,11 @@ page {
|
|
|
.tip {
|
|
.tip {
|
|
|
font-size: 34rpx;
|
|
font-size: 34rpx;
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
- color: #44969D;
|
|
|
|
|
|
|
+ color: #44969d;
|
|
|
line-height: 55px;
|
|
line-height: 55px;
|
|
|
}
|
|
}
|
|
|
.zhiya-btn {
|
|
.zhiya-btn {
|
|
|
- background-color: #44969D;
|
|
|
|
|
|
|
+ background-color: #44969d;
|
|
|
width: 150rpx;
|
|
width: 150rpx;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
line-height: 60rpx;
|
|
line-height: 60rpx;
|
|
@@ -426,18 +421,23 @@ page {
|
|
|
background-color: #999999;
|
|
background-color: #999999;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- .list-tip {
|
|
|
|
|
- background-color: #bac1ef !important;
|
|
|
|
|
- word-wrap: break-word;
|
|
|
|
|
- font-size: 26rpx;
|
|
|
|
|
|
|
+ .luckbox {
|
|
|
|
|
+ margin-left: -40rpx;
|
|
|
|
|
+ width: 670rpx;
|
|
|
|
|
+ background: #7bbbc0;
|
|
|
|
|
+ border-radius: 0px 0px 10rpx 10rpx;
|
|
|
|
|
+ padding: 32rpx;
|
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
|
+ font-family: PingFang SC;
|
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
|
color: #333333;
|
|
color: #333333;
|
|
|
- padding: 36rpx 32rpx;
|
|
|
|
|
- margin-top: 15rpx;
|
|
|
|
|
- border-bottom-left-radius: 15rpx;
|
|
|
|
|
- border-bottom-right-radius: 15rpx;
|
|
|
|
|
|
|
+ span {
|
|
|
|
|
+ font-size: 30rpx;
|
|
|
|
|
+ color: #ff0000;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.empty-box {
|
|
.empty-box {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height: 500rpx;
|
|
height: 500rpx;
|
|
@@ -477,7 +477,7 @@ page {
|
|
|
padding-bottom: 120rpx;
|
|
padding-bottom: 120rpx;
|
|
|
padding-top: 30rpx;
|
|
padding-top: 30rpx;
|
|
|
text {
|
|
text {
|
|
|
- background-color: #44969D;
|
|
|
|
|
|
|
+ background-color: #44969d;
|
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
|
width: 70%;
|
|
width: 70%;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
@@ -499,12 +499,12 @@ page {
|
|
|
.tip {
|
|
.tip {
|
|
|
font-size: 34rpx;
|
|
font-size: 34rpx;
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
- color: #44969D;
|
|
|
|
|
|
|
+ color: #44969d;
|
|
|
opacity: 0;
|
|
opacity: 0;
|
|
|
line-height: 40px;
|
|
line-height: 40px;
|
|
|
}
|
|
}
|
|
|
.zhiya-btn {
|
|
.zhiya-btn {
|
|
|
- background-color: #44969D;
|
|
|
|
|
|
|
+ background-color: #44969d;
|
|
|
width: 150rpx;
|
|
width: 150rpx;
|
|
|
text-align: center;
|
|
text-align: center;
|
|
|
line-height: 60rpx;
|
|
line-height: 60rpx;
|