@ -53,8 +53,8 @@
< view class = "p-x-lg d-flex justify-between flex-wrap align-center p-y-xs" >
< view class = "p-x-lg d-flex justify-between flex-wrap align-center p-y-xs" >
<!-- < view class = "color-sell fn-12" > * { { rechargeType == 2 ? $t ( 'assets.f5' , { name : "Ethereun" } ) : $t ( 'assets.f5' , { name : "TRON" } ) } } < / view > -- >
<!-- < view class = "color-sell fn-12" > * { { rechargeType == 2 ? $t ( 'assets.f5' , { name : "Ethereun" } ) : $t ( 'assets.f5' , { name : "TRON" } ) } } < / view > -- >
< view class = "color-light d-block w-max m-y-ms color-light fn-15" > { { $t ( "assets.b8" ) } } < / view >
< view class = "color-light d-block w-max m-y-ms color-light fn-15" > { { $t ( "assets.b8" ) } } < / view >
< v -input v -model = " form.address " class = "bg-form-panel-3 p-sm color-light w-max fn-13 rounded-xs"
<!-- < v -input v -model = " form.address " class = "bg-form-panel-3 p-sm color-light w-max fn-13 rounded-xs"
: placeholder = "$t('assets.b9')" >
: placeholder = "$t('assets.b9')" > -- >
<!-- < template # right > -- >
<!-- < template # right > -- >
<!-- & lt ; ! & ndash ; # ifdef H5 & ndash ; & gt ; -- >
<!-- & lt ; ! & ndash ; # ifdef H5 & ndash ; & gt ; -- >
<!-- < v -link tag = "span" : to = " { path : ' / pages / assets / address -list ' , query : { - - >
<!-- < v -link tag = "span" : to = " { path : ' / pages / assets / address -list ' , query : { - - >
@ -67,7 +67,36 @@
<!-- < van -icon class = "color-theme-1" @click ="saoma" name = "scan" / > -- >
<!-- < van -icon class = "color-theme-1" @click ="saoma" name = "scan" / > -- >
<!-- & lt ; ! & ndash ; # endif & ndash ; & gt ; -- >
<!-- & lt ; ! & ndash ; # endif & ndash ; & gt ; -- >
<!-- < / template > -- >
<!-- < / template > -- >
< / v - i n p u t >
<!-- < / v - i n p u t > - - >
<!-- < block v-for ="(item,index) in list1" :key ="index" >
< v -picker
: list = "item.list"
v - model = "form.address"
range - label = "coin_name"
range - value = "coin_name"
class = ""
>
< view class = "m-md p-md d-flex rounded bg-panel-3 box-shadow" >
< view v-for ="(item,index) in form.list" :key ="index" >
< view class = "color-light" > { { form . address } } < / view >
< / view >
< / view >
< / v - p i c k e r >
< / block > -- >
< view class = "bindPickerChange" >
< picker @change ="bindPickerChange" :value ="indexs" :range ="list2" >
< view style = "font-size: 13px;word-wrap: break-word;" > { { indexs == null ? $t ( 'common.withdrawals' ) : list2 [ indexs ] } } < / view >
< / picker >
<!-- < picker -view @change ="bindPickerChange" class = "picker-view" >
< picker -view -column >
< view class = "item" v-for ="(item,index) in years" :key ="index" > < / view >
< view class = "uni-input" > 213213213212 < / view >
< / p i c k e r - v i e w - c o l u m n >
< / p i c k e r - v i e w > - - >
< / view >
< view class = "color-sell fn-12 m-t-xs" >
< view class = "color-sell fn-12 m-t-xs" >
{ { $t ( 'recharge.a5' ) } }
{ { $t ( 'recharge.a5' ) } }
< / view >
< / view >
@ -96,7 +125,7 @@
< / view >
< / view >
< view class = "d-flex align-center p-y-xs m-t-ms justify-between color-light fn-15" >
< view class = "d-flex align-center p-y-xs m-t-ms justify-between color-light fn-15" >
< span > { { $t ( "assets.c4" ) } } : < / span >
< span > { { $t ( "assets.c4" ) } } : < / span >
<!-- < span class = "color-light" > { { withdrawFee . withdrawal_fee } } { { coin } } < / span > -- >
< span class = "color-light" > { { withdrawFee . withdrawal_fee } } { { coin } } < / span >
< / view >
< / view >
< view class = "d-flex align-end p-y-xs justify-between bg-form-panel-3 rounded-xs p-y-sm" >
< view class = "d-flex align-end p-y-xs justify-between bg-form-panel-3 rounded-xs p-y-sm" >
@ -138,7 +167,7 @@
< li > · { { $t ( "assets.c7" ) } } < / li >
< li > · { { $t ( "assets.c7" ) } } < / li >
< / ul >
< / ul >
< / view >
< / view >
<!-- < view class = "rounded-md m-b-lg" v-if ="list.length" style="padding-bottom: 100px !important;" >
< view class = "rounded-md m-b-lg" v-if ="list.length" style="padding-bottom: 100px !important;" >
< view class = "title d-flex justify-between p-x-md p-y-xs align-center color-light" >
< view class = "title d-flex justify-between p-x-md p-y-xs align-center color-light" >
< span class = "fn-lg" > { { $t ( "assets.c8" ) } } < / span >
< span class = "fn-lg" > { { $t ( "assets.c8" ) } } < / span >
< / view >
< / view >
@ -178,7 +207,7 @@
< / tbody >
< / tbody >
< / table >
< / table >
< / view >
< / view >
< / view > -- >
< / view >
< view class = "bot w-max bg-panel-3 p-lg box-size" >
< view class = "bot w-max bg-panel-3 p-lg box-size" >
< v -button class = "w-max m-y-md rounded-xs" block type = "yellow" @click ="toDraw" ref = "btn" > { {
< v -button class = "w-max m-y-md rounded-xs" block type = "yellow" @click ="toDraw" ref = "btn" > { {
$t ( "assets.b6" )
$t ( "assets.b6" )
@ -252,10 +281,12 @@ export default {
page : 1 ,
page : 1 ,
loadMore : true ,
loadMore : true ,
secondaryShow : false ,
secondaryShow : false ,
type : 'draw' ,
type : 'draw' ,
getEmailCodeLock : false ,
getEmailCodeLock : false ,
JStime : 0 ,
JStime : 0 ,
tiemr : null ,
tiemr : null ,
indexs : null ,
list2 : [ ]
} ;
} ;
} ,
} ,
computed : {
computed : {
@ -280,6 +311,7 @@ export default {
this . rechargeType = 2 ;
this . rechargeType = 2 ;
}
}
this . withdrawalBalance ( ) ;
this . withdrawalBalance ( ) ;
this . getUserWithdrawAdress ( )
}
}
} ,
} ,
} ,
} ,
@ -294,6 +326,30 @@ export default {
} )
} )
} ,
} ,
methods : {
methods : {
getUserWithdrawAdress ( ) {
this . list2 = [ ]
Wallet . getUserWithdrawAdress ( ) . then ( ( res ) => {
res . data . map ( ( item ) => {
if ( this . coin == item . coin_name && item . list . length !== 0 ) {
this . list2 = [ ]
item . list . map ( ( items ) => {
this . list2 . push ( items . address )
} )
} else {
this . list2 = [ ]
this . list2 . push ( 'Please add the withdrawal address first' )
}
} )
} ) ;
} ,
onvisible ( ) {
this . visible = true
} ,
bindPickerChange ( e ) {
console . log ( 'picker发送选择改变,携带值为' , e . detail )
this . indexs = e . detail . value
this . form . address = this . list2 [ e . detail . value ]
} ,
saoma ( ) {
saoma ( ) {
let that = this ;
let that = this ;
uni . scanCode ( {
uni . scanCode ( {
@ -451,6 +507,9 @@ export default {
created ( ) {
created ( ) {
this . getWithdrawRecords ( ) ;
this . getWithdrawRecords ( ) ;
} ,
} ,
onLoad ( ) {
uni . setLocale ( 'en' )
}
} ;
} ;
< / script >
< / script >
< style lang = "scss" scoped >
< style lang = "scss" scoped >
@ -520,4 +579,16 @@ export default {
position : fixed ;
position : fixed ;
bottom : 0 ;
bottom : 0 ;
}
}
. picker - view {
width : 750 rpx ;
height : 600 rpx ;
margin - top : 20 rpx ;
}
. bindPickerChange {
width : 100 % ;
padding - left : 20 rpx ;
padding - top : 12 px ! important ;
padding - bottom : 12 px ! important ;
background - color : # f7f7f7 ;
}
< / style >
< / style >