You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

233 lines
5.9 KiB

<template>
<view class="main">
<!-- nav -->
<navigation>{{ i18n.MineDetails }}<view slot="right" class="right" @click="goto('mineRecord')">{{ i18n.Record }}
</view>
</navigation>
<view class="content">
<view class="card">
<view class="top">
<u-icon class="icon" :name="'../../static/mine/coinLogo.png'" size="80rpx" width="80rpx"></u-icon>
<view class="title">{{ i18n.YourBTC }}</view>
<view class="coinValue">{{ coinValue }}</view>
</view>
<view class="bottom">
<view class="item">
<view class="title">{{ i18n.LockBTC }}</view>
<view class="value">0.1</view>
</view>
<view class="item">
<view class="title">{{ i18n.dayproduce }}</view>
<view class="value">300 ACTA</view>
</view>
<view class="item">
<view class="title">{{ i18n.MinLockTime }}</view>
<view class="value">30{{ i18n.days }}</view>
</view>
</view>
</view>
<input class="input" v-model="codeValue" focus :placeholder="i18n.invuteCode"
placeholder-style="color:#A1A0A8" />
<view class="allItem">
<input class="input" v-model="coinQuantity" :placeholder="i18n.lockBTC"
placeholder-style="color:#A1A0A8" />
<view class="all">{{ i18n.ALL }}</view>
</view>
<u-button class="button" color="#00E8A2" throttleTime="500" :disabled="true">{{ i18n.LockBTCBtn }}
</u-button>
</view>
</view>
</template>
<script>
import uniCopy from '@/utils/uni-copy'
export default {
name: "mineDetails",
data() {
return {
coinValue: 1000.001,
codeValue: '',
coinQuantity: '',
};
},
computed: {
i18n() {
return this.$t("mine");
},
},
onLoad() {
},
onShow() { },
methods: {
goto(page) {
// console.log(page);
let url = '';
switch (page) {
case 'mineRecord':
url = '/pages/mine/mineRecord'
break;
default:
break;
}
if (url) {
// console.log(url);
uni.navigateTo({
url,
});
}
},
USDTRadioChange(e) {
console.log(e);
},
copyAddress(value = "") {
console.log(value)
uniCopy({
content: value,
success: (res) => {
uni.showToast({
title: "复制成功",
duration: 3000,
})
},
error: (e) => {
uni.showToast({
title: e,
icon: 'none',
duration: 2000,
})
}
})
},
},
}
</script>
<style lang="scss" scoped>
.main {
.right {
position: absolute;
right: 32rpx;
font-size: 24rpx;
}
.content {
overflow: hidden;
margin-top: 200rpx;
padding: 0 32rpx;
.card {
margin-top: 40rpx;
height: 274rpx;
padding: 0 24rpx;
background-image: url(../../static/mine/bg_mine.png);
background-repeat: no-repeat;
background-size: 686rpx 274rpx;
.top {
display: flex;
height: 132rpx;
border-bottom: 2rpx solid rgba(255, 255, 255, 0.2);
.icon {
margin: 0 24rpx 0 16rpx;
}
.title {
font-size: 28rpx;
line-height: 136rpx;
}
.coinValue {
flex: 1;
text-align: right;
font-size: 68rpx;
line-height: 144rpx;
padding-right: 20rpx;
}
}
.bottom {
display: flex;
height: 140rpx;
padding: 0 20rpx;
.item {
flex: 1;
.title {
font-size: 20rpx;
line-height: 64rpx;
}
.value {
font-size: 35rpx;
line-height: 40rpx;
font-weight: 600;
}
&:nth-child(1) {
text-align: left;
}
&:nth-child(2) {
text-align: center;
}
&:nth-child(3) {
text-align: right;
}
}
}
}
.input {
margin-top: 32rpx;
height: 112rpx;
background: #323045;
border-radius: 32rpx;
padding-left: 32rpx;
font-size: 26rpx;
color: #fff;
}
.allItem {
position: relative;
.all {
position: absolute;
display: inline;
font-size: 20rpx;
color: #00E8A2;
top: 44rpx;
right: 30rpx;
}
}
.button {
margin-top: 60rpx;
border-radius: 32rpx;
height: 112rpx;
line-height: 112rpx;
color: #15141F !important;
font-weight: bold;
}
}
}
</style>