|
@@ -3,7 +3,7 @@
|
|
<div class="content">
|
|
<div class="content">
|
|
<div class="card-box">
|
|
<div class="card-box">
|
|
<div class="card-title">选择币种</div>
|
|
<div class="card-title">选择币种</div>
|
|
- <div class="card-input" @click="showWallet = true">
|
|
|
|
|
|
+ <div class="card-input" @click="selectPop(1)">
|
|
<svg-icon style="width: 30px; height: 30px;" name="acc" />
|
|
<svg-icon style="width: 30px; height: 30px;" name="acc" />
|
|
<div class="card-text">STT</div>
|
|
<div class="card-text">STT</div>
|
|
<svg-icon style="width: 16px; height: 16px;" name="down" />
|
|
<svg-icon style="width: 16px; height: 16px;" name="down" />
|
|
@@ -49,14 +49,14 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <van-button class="footer-btn" type="primary" size="large">确认</van-button>
|
|
|
|
- <van-popup v-model:show="showWallet" position="bottom" round style="height:368px">
|
|
|
|
- <div class="pop-content" style="height:368px">
|
|
|
|
|
|
+ <van-button class="footer-btn" type="primary" size="large" @click="selectPop(2)">确认</van-button>
|
|
|
|
+ <van-popup v-model:show="showWallet" position="bottom" round style="height:400px">
|
|
|
|
+ <div class="pop-content" style="height:400px">
|
|
<div class="pop-title">
|
|
<div class="pop-title">
|
|
<svg-icon style="width: 24px; height: 24px;" name="left-arrow" @click="showWallet = false"/>
|
|
<svg-icon style="width: 24px; height: 24px;" name="left-arrow" @click="showWallet = false"/>
|
|
- <div class="title">选择币种</div>
|
|
|
|
|
|
+ <div class="title">{{selectType == 1?'选择币种':'交易详情'}}</div>
|
|
</div>
|
|
</div>
|
|
- <div class="list-ul">
|
|
|
|
|
|
+ <div class="list-ul" v-if="selectType == 1">
|
|
<div class="list-li" v-for="item in 10" @click="showHistory = true">
|
|
<div class="list-li" v-for="item in 10" @click="showHistory = true">
|
|
<div class="list-li-lf">
|
|
<div class="list-li-lf">
|
|
<svg-icon style="width: 42px; height: 42px;margin-right: 12px;" name="acc" />
|
|
<svg-icon style="width: 42px; height: 42px;margin-right: 12px;" name="acc" />
|
|
@@ -68,6 +68,24 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="pop-detail" v-if="selectType == 2">
|
|
|
|
+ <div class="pop-detail-title">-0.01ACC</div>
|
|
|
|
+ <div class="pop-detail-cell">
|
|
|
|
+ <div class="cell-label">付款地址:</div>
|
|
|
|
+ <div class="cell-text">0x01Ce8d3Ae9240B029E0868f811dfF77a4F5320f2</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="pop-detail-cell">
|
|
|
|
+ <div class="cell-label">收款地址:</div>
|
|
|
|
+ <div class="cell-text">0x01Ce8d3Ae9240B029E0868f811dfF77a4F5320f2</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="pop-detail-cell">
|
|
|
|
+ <div class="cell-label">矿工费:</div>
|
|
|
|
+ <div class="cell-text">0.000388684557647ACC</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="pop-btn">
|
|
|
|
+ <van-button class="btn" type="primary" size="large" color="#4765DD" @click="showWallet = false">确认</van-button>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</van-popup>
|
|
</van-popup>
|
|
</div>
|
|
</div>
|
|
@@ -79,9 +97,14 @@ const router = useRouter();
|
|
const walletAddress = ref('')
|
|
const walletAddress = ref('')
|
|
const unitNum = ref('')
|
|
const unitNum = ref('')
|
|
const showWallet = ref(false)
|
|
const showWallet = ref(false)
|
|
|
|
+const selectType = ref('');
|
|
const goToAddress = () => {
|
|
const goToAddress = () => {
|
|
router.push('addressManagement')
|
|
router.push('addressManagement')
|
|
}
|
|
}
|
|
|
|
+const selectPop = (type) => {
|
|
|
|
+ showWallet.value = true;
|
|
|
|
+ selectType.value = type;
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
@@ -194,14 +217,14 @@ const goToAddress = () => {
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
overflow: auto;
|
|
overflow: auto;
|
|
- margin: 17px;
|
|
|
|
|
|
+ margin: 16px;
|
|
.list-li{
|
|
.list-li{
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
- margin-bottom: 17px;
|
|
|
|
|
|
+ margin-bottom: 16px;
|
|
.list-li-lf{
|
|
.list-li-lf{
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -227,6 +250,48 @@ const goToAddress = () => {
|
|
.list-ul::-webkit-scrollbar{
|
|
.list-ul::-webkit-scrollbar{
|
|
width: 0;
|
|
width: 0;
|
|
}
|
|
}
|
|
|
|
+ .pop-detail{
|
|
|
|
+ padding: 17px 17px 0;
|
|
|
|
+ .pop-detail-title{
|
|
|
|
+ font-family: PingFang SC, PingFang SC;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ font-size: 17px;
|
|
|
|
+ color: #000000;
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+ .pop-detail-cell{
|
|
|
|
+ display: flex;
|
|
|
|
+ font-family: PingFang SC, PingFang SC;
|
|
|
|
+ font-weight: 400;
|
|
|
|
+ font-size: 15px;
|
|
|
|
+ color: #4F4F4F;
|
|
|
|
+ padding: 10px 0;
|
|
|
|
+ border-bottom: 1px solid #F2F2F2;
|
|
|
|
+ .cell-label{
|
|
|
|
+ width: 76px;
|
|
|
|
+ flex-shrink: 0;
|
|
|
|
+ }
|
|
|
|
+ .cell-text{
|
|
|
|
+ word-break: break-word;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .pop-detail-cell:last-child{
|
|
|
|
+ border-bottom: 0;
|
|
|
|
+ }
|
|
|
|
+ .pop-btn{
|
|
|
|
+ margin-top: 53px;
|
|
|
|
+ .btn{
|
|
|
|
+ height: 40px;
|
|
|
|
+ line-height: 40px;
|
|
|
|
+ border-radius: 50px;
|
|
|
|
+ font-family: PingFang SC, PingFang SC;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ font-size: 15px;
|
|
|
|
+ color: #FFFFFF;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|