|
@@ -11,7 +11,7 @@
|
|
|
<image src="../../static/img/img37.png"></image>
|
|
|
</view>
|
|
|
<view class="list" v-show="list.length > 0">
|
|
|
- <view class="list-box" v-for='(ls,index) in list' :key='index'>
|
|
|
+ <view class="list-box" v-for='(ls,index) in list' :key='index' @click="nav(index)">
|
|
|
<view class="flex">
|
|
|
<view class="list-tpl flex_item">
|
|
|
<image src="../../static/img/img36.png"></image>
|
|
@@ -28,6 +28,36 @@
|
|
|
<view class="tip"></view>
|
|
|
<view class="submit" @click="withdraw">提币</view>
|
|
|
</view>
|
|
|
+ <uni-popup ref="mation" type="center">
|
|
|
+ <view class="popup">
|
|
|
+ <view class="cancel flex" @click="close">
|
|
|
+ <view class="tip">x</view>
|
|
|
+ </view>
|
|
|
+ <view class="list-boxs">
|
|
|
+ <view class="textBox flex">
|
|
|
+ <view class="font">交易前:</view>
|
|
|
+ <view class="number">{{ before }} USDT</view>
|
|
|
+ </view>
|
|
|
+ <view class="xian"></view>
|
|
|
+ <view class="textBox flex">
|
|
|
+ <view class="font">交易额:</view>
|
|
|
+ <view class="number">{{ pm }}{{ number*1 }} USDT</view>
|
|
|
+ </view>
|
|
|
+ <view class="xian"></view>
|
|
|
+ <view class="textBox flex">
|
|
|
+ <view class="font">交易后:</view>
|
|
|
+ <view class="number">{{ balance*1 }} USDT</view>
|
|
|
+ </view>
|
|
|
+ <view class="xian"></view>
|
|
|
+ <scroll-view scroll-y="true" class="textBox">
|
|
|
+ <view class="font">流水详情:</view>
|
|
|
+ <view class="text">
|
|
|
+ {{ text }}
|
|
|
+ </view>
|
|
|
+ </scroll-view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </uni-popup>
|
|
|
<uni-popup ref="popup" type="center">
|
|
|
<view class="popup">
|
|
|
<view class="cancel flex" @click="close">
|
|
@@ -75,14 +105,21 @@
|
|
|
logo:'',
|
|
|
price:'',
|
|
|
mark:'',
|
|
|
+ charge: '',
|
|
|
|
|
|
_address_qr:'',
|
|
|
__money_address:'',
|
|
|
ids:'',
|
|
|
- keysAddr:''
|
|
|
+ keysAddr:'',
|
|
|
+ text:'',
|
|
|
+ balance:'',
|
|
|
+ before: '',
|
|
|
+ number: '',
|
|
|
+ pm:'',
|
|
|
};
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
+ console.log(option,'1111');
|
|
|
this.code = option.code;
|
|
|
this.logo = option.logo;
|
|
|
this.name = option.name;
|
|
@@ -93,6 +130,7 @@
|
|
|
this.mark = option.mark;
|
|
|
this.ids = option.ids;
|
|
|
this.keysAddr = option.keysAddr;
|
|
|
+ this.charge = option.charge;
|
|
|
this.moneyType();
|
|
|
this.loadData();
|
|
|
},
|
|
@@ -131,7 +169,7 @@
|
|
|
obj.num='';
|
|
|
obj.code = '';
|
|
|
uni.navigateTo({
|
|
|
- url:'/pages/finance/recharge?LOGO='+data._address_qr+'&order_id='+data.order_id+'&ddress='+data.__money_address+'&id='+data.id
|
|
|
+ url:'/pages/finance/recharge?LOGO='+data._address_qr+'&order_id='+data.order_id+'&ddress='+data.__money_address+'&id='+data.id+'&=charge'+obj.charge
|
|
|
})
|
|
|
}).catch(e => {
|
|
|
obj.$refs.popup.close();
|
|
@@ -159,12 +197,13 @@
|
|
|
handleCancel(e) {},
|
|
|
recharge(){
|
|
|
uni.navigateTo({
|
|
|
- url:'/pages/finance/recharge?logo='+this.logo+'&name='+this.name+'&code='+this.code+'&_address_qr='+this._address_qr+'&__money_address='+this.__money_address+'&mark='+this.mark+'&ids='+this.ids+'&keysAddr='+this.keysAddr
|
|
|
+ url:'/pages/finance/recharge?logo='+this.logo+'&name='+this.name+'&code='+this.code+'&_address_qr='+this._address_qr+'&__money_address='+this.__money_address+'&mark='+this.mark+'&ids='+this.ids+'&keysAddr='+this.keysAddr+'&charge='+this.charge
|
|
|
})
|
|
|
// this.$refs.popup.open();
|
|
|
},
|
|
|
close() {
|
|
|
- this.$refs.popup.close();
|
|
|
+ // this.$refs.popup.close();
|
|
|
+ this.$refs.mation.close();
|
|
|
},
|
|
|
withdraw(){
|
|
|
uni.navigateTo({
|
|
@@ -176,6 +215,20 @@
|
|
|
url
|
|
|
});
|
|
|
},
|
|
|
+ nav(index) {
|
|
|
+ const obj = this;
|
|
|
+ obj.text = obj.list[index].mark;
|
|
|
+ obj.balance = obj.list[index].balance;
|
|
|
+ obj.number = obj.list[index].number;
|
|
|
+ if(obj.list[index].pm == 1) {
|
|
|
+ obj.pm = '+';
|
|
|
+ obj.before = obj.balance - obj.number;
|
|
|
+ }else{
|
|
|
+ obj.pm = '-';
|
|
|
+ obj.before = obj.balance*1 + obj.number*1;
|
|
|
+ }
|
|
|
+ this.$refs.mation.open();
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
@@ -279,47 +332,58 @@
|
|
|
}
|
|
|
//弹窗
|
|
|
.popup{
|
|
|
- background-color: #FFFFFF;
|
|
|
- border-radius: 25rpx;
|
|
|
- font-size: 30rpx;
|
|
|
+ height: 618rpx;
|
|
|
+ background: #FFFFFF;
|
|
|
+ box-shadow: 3rpx 3rpx 6rpx 0rpx rgba(31, 31, 31, 0.17);
|
|
|
+ border-radius: 40rpx;
|
|
|
+ width: 700rpx;
|
|
|
.cancel{
|
|
|
text-align: center;
|
|
|
width: 100%;
|
|
|
line-height: 60rpx;
|
|
|
+ position: relative;
|
|
|
.tip{
|
|
|
- background-color: #5771DF;
|
|
|
- color: #FFFFFF;
|
|
|
+ color: #000000;
|
|
|
width:70rpx;
|
|
|
height: 70rpx;
|
|
|
- border-top-right-radius:25rpx ;
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ right: 0;
|
|
|
}
|
|
|
}
|
|
|
.list-boxs{
|
|
|
- padding: 0rpx 80rpx;
|
|
|
- .password{
|
|
|
- padding: 50rpx 0rpx;
|
|
|
- width: 100%;
|
|
|
- input{
|
|
|
- width: 70%;
|
|
|
- height: 80rpx;
|
|
|
- border: 2rpx solid #999999;
|
|
|
- padding-left: 25rpx;
|
|
|
- box-shadow:0px 3px 5px 0px rgba(0, 0, 0, 0.27);
|
|
|
- border-radius:11rpx;
|
|
|
+ width: 90%;
|
|
|
+ margin: 0 auto;
|
|
|
+ margin-top: 100rpx;
|
|
|
+
|
|
|
+ .textBox {
|
|
|
+ padding: 24rpx 18rpx;
|
|
|
+ .font {
|
|
|
+ font-size: 28rpx;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #4F4F4F;
|
|
|
}
|
|
|
- }
|
|
|
- .confirm-btn{
|
|
|
- padding-bottom: 120rpx;
|
|
|
- padding-top: 30rpx;
|
|
|
- text{
|
|
|
- background-color: #5771DF;
|
|
|
- color: #FFFFFF;
|
|
|
- width: 70%;
|
|
|
- text-align: center;
|
|
|
- padding:25rpx 90rpx;
|
|
|
- border-radius: 15rpx;
|
|
|
+ .number {
|
|
|
+ font-size: 28rpx;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #FB3A2F;
|
|
|
+ }
|
|
|
+ .text {
|
|
|
+ text-indent:2em;
|
|
|
+ font-size: 28rpx;
|
|
|
+ font-family: PingFang SC;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #4F4F4F;
|
|
|
}
|
|
|
}
|
|
|
+ .xian {
|
|
|
+ width: 100%;
|
|
|
+ height: 1px;
|
|
|
+ background: #E7DFE8;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</style>
|