325 lines
6.9 KiB
Vue
325 lines
6.9 KiB
Vue
<template>
|
|
<view class="container">
|
|
<view class="row-input">
|
|
<view class="tip">收款地址</view>
|
|
<view class="input-box">
|
|
<input v-model="address" placeholder="輸入或粘貼錢包地址" placeholder-class="placeholder" />
|
|
</view>
|
|
</view>
|
|
<view class="row-input">
|
|
<view class="tip">轉賬金額</view>
|
|
<view class="input-box" style="border-radius: 20rpx 20rpx 0 0; border-bottom: 2rpx solid #4a3f90;">
|
|
<input v-model="address" placeholder="請輸入數量" placeholder-class="placeholder" />
|
|
</view>
|
|
<view class="input-balance">
|
|
<view class="">
|
|
錢包餘額
|
|
</view>
|
|
<view class="">
|
|
0 ETC
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="row-input">
|
|
<view class="tip">網絡費</view>
|
|
<view class="input-balance">
|
|
<view class="">
|
|
推薦
|
|
</view>
|
|
<view style="color: #4F5AD7; font-size: 21rpx;">
|
|
預計3分鐘
|
|
</view>
|
|
</view>
|
|
<!-- 預估費用 -->
|
|
<view class="estimate" @click="show = true">
|
|
<view class="item">
|
|
<view class="e_esit">
|
|
<view class="left">
|
|
預估費用
|
|
</view>
|
|
<view class="right">
|
|
<view style="color:#C0B9ED;margin-right: 10rpx;">$0.0447</view>
|
|
<view>$0.000024ETC</view>
|
|
</view>
|
|
</view>
|
|
<u-icon style="margin-left: 10rpx;" name="arrow-right" color="#C0B9ED" size="12"></u-icon>
|
|
</view>
|
|
<view class="item">
|
|
<view class="e_esit">
|
|
<view class="left">
|
|
全部費用
|
|
</view>
|
|
<view class="right">
|
|
<view style="color:#C0B9ED;margin-right: 10rpx;">$0.0447</view>
|
|
<view>$0.000024ETC</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="cost" v-if="warnval">
|
|
<view class="c_tost">
|
|
<view class="c_le">
|
|
预估费用:正常情况需支付的成本 最高费用
|
|
</view>
|
|
<view class="c_le">
|
|
最高费用:网络波动,最大可接受的成本,可调节
|
|
</view>
|
|
</view>
|
|
<u-icon name="close" color="#4F5AD7" size="12" @click="closetots"></u-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- popup -->
|
|
<u-popup :show="show" mode="bottom" @close="close" round="10" :closeable="true">
|
|
<view style="height: 1000rpx; padding: 30rpx; background-color: #f6f6f6;">
|
|
<view class="accounts">網絡費用</view>
|
|
<view class="upitem" v-for="(item,index) in 3" :key="index">
|
|
<view class="item">
|
|
<view class="e_esit">
|
|
<view class="left" style="color: black;">
|
|
<view style="margin-right: 5rpx;">
|
|
快
|
|
</view>
|
|
<image src="/static/kuai.png" mode="" style="width: 30rpx; height: 30rpx;"></image>
|
|
</view>
|
|
<view class="right">
|
|
<view style="color: #4F5AD7; font-size: 20rpx;">預計1分鐘</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="item">
|
|
<view class="e_esit">
|
|
<view class="left">
|
|
預估費用
|
|
</view>
|
|
<view class="right">
|
|
<view style="color:#A0A4AF;margin-right: 10rpx;">$0.0447</view>
|
|
<view>$0.000024ETC</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="item">
|
|
<view class="e_esit">
|
|
<view class="left">
|
|
全部費用
|
|
</view>
|
|
<view class="right">
|
|
<view style="color:#A0A4AF;margin-right: 10rpx;">$0.0447</view>
|
|
<view>$0.000024ETC</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="login-btn">
|
|
確認
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</u-popup>
|
|
<!-- save -->
|
|
<view class="login-btn">
|
|
確認
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
address: '',
|
|
warnval: true,
|
|
show: false
|
|
};
|
|
},
|
|
methods: {
|
|
closetots() {
|
|
this.warnval = false
|
|
},
|
|
close() {
|
|
this.show = false
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.container {
|
|
border-top: 1px solid dimgrey;
|
|
width: 100vw;
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
background: linear-gradient(to bottom, #000033, #51599b);
|
|
position: relative;
|
|
|
|
.row-input {
|
|
margin-bottom: 20rpx;
|
|
align-items: center;
|
|
|
|
.tip {
|
|
width: 100px;
|
|
height: 40rpx;
|
|
padding-top: 20rpx;
|
|
font-size: 26rpx;
|
|
color: #e2e3eb;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.input-box {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 110rpx;
|
|
color: #e2e3eb;
|
|
font-size: 20rpx;
|
|
background-color: #392e7f;
|
|
padding: 20rpx;
|
|
box-sizing: border-box;
|
|
border-radius: 20rpx;
|
|
|
|
.placeholder {
|
|
color: #ccc;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
.login-btn {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 90rpx;
|
|
width: 700rpx;
|
|
color: #FFFFFF;
|
|
border-radius: 50rpx;
|
|
font-size: 35rpx;
|
|
background: #4F5AD8;
|
|
box-shadow: 0rpx 10rpx 20rpx 0rpx rgba(98, 92, 236, 0.4);
|
|
position: absolute;
|
|
box-sizing: border-box;
|
|
left: 3%;
|
|
top: 80%;
|
|
}
|
|
|
|
.input-balance {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 110rpx;
|
|
color: #FFF;
|
|
font-size: 20rpx;
|
|
background-color: #392e7f;
|
|
padding: 20rpx;
|
|
box-sizing: border-box;
|
|
border-radius: 0 0 20rpx 20rpx;
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.estimate {
|
|
width: 100%;
|
|
color: #FFF;
|
|
font-size: 20rpx;
|
|
background-color: #392e7f;
|
|
padding: 20rpx;
|
|
box-sizing: border-box;
|
|
border-radius: 0 0 20rpx 20rpx;
|
|
font-size: 28rpx;
|
|
border-top: 2rpx solid #4a3f90;
|
|
|
|
.item {
|
|
display: flex;
|
|
margin-bottom: 10rpx;
|
|
|
|
.e_esit {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
width: 600rpx;
|
|
|
|
.left {
|
|
color: #C0B9ED;
|
|
font-size: 27rpx;
|
|
}
|
|
|
|
.right {
|
|
font-size: 24rpx;
|
|
display: flex;
|
|
}
|
|
}
|
|
}
|
|
|
|
.cost {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
background-color: #978fcd;
|
|
padding: 20rpx;
|
|
box-sizing: border-box;
|
|
border-radius: 20rpx;
|
|
font-size: 24rpx;
|
|
color: #4F5AD7;
|
|
}
|
|
}
|
|
|
|
.accounts {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 34rpx;
|
|
font-weight: 600;
|
|
border-bottom: 2rpx solid #f6f6f6;
|
|
padding-bottom: 15rpx;
|
|
}
|
|
|
|
.upitem {
|
|
width: 100%;
|
|
font-size: 20rpx;
|
|
background-color: #fff;
|
|
padding: 30rpx;
|
|
box-sizing: border-box;
|
|
border-radius: 20rpx;
|
|
font-size: 28rpx;
|
|
margin: 20rpx 0;
|
|
|
|
.item {
|
|
display: flex;
|
|
margin-bottom: 10rpx;
|
|
|
|
.e_esit {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
|
|
.left {
|
|
color: #A0A4AF;
|
|
font-size: 27rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
.right {
|
|
font-size: 24rpx;
|
|
display: flex;
|
|
}
|
|
}
|
|
}
|
|
|
|
.cost {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
background-color: #978fcd;
|
|
padding: 20rpx;
|
|
box-sizing: border-box;
|
|
border-radius: 20rpx;
|
|
font-size: 24rpx;
|
|
color: #4F5AD7;
|
|
}
|
|
}
|
|
}
|
|
</style> |