Browse Source

修改资产中提币地址的输入框为下拉框

master
liaoxinyu 1 year ago
parent
commit
010ac6823c
  1. 12
      assets/scss/app.scss
  2. 3
      i18n/lang/en.json
  3. 3
      i18n/lang/zh-TW.json
  4. 3
      pages/assets/address-list.vue
  5. 91
      pages/assets/draw.vue

12
assets/scss/app.scss

@ -592,12 +592,12 @@ navigator {
.lb-picker-content { .lb-picker-content {
background-color: $panel-4 !important; background-color: $panel-4 !important;
} }
.uni-picker-view-mask { // .uni-picker-view-mask {
background: var(--picker-mask); // background: var(--picker-mask);
background-position: top, bottom; // background-position: top, bottom;
background-size: 100% 102px; // background-size: 100% 102px;
background-repeat: no-repeat; // background-repeat: no-repeat;
} // }
.lb-picker-action-confirm-text { .lb-picker-action-confirm-text {
color: $green !important; color: $green !important;
} }

3
i18n/lang/en.json

@ -68,7 +68,8 @@
"c4": "Size", "c4": "Size",
"c5": "your transfer order has been submitted successfully, please wait patiently, and the transfer result will be notified by SMS or e-mail. Please check it carefully. If you have any questions, please contact the customer service in time.", "c5": "your transfer order has been submitted successfully, please wait patiently, and the transfer result will be notified by SMS or e-mail. Please check it carefully. If you have any questions, please contact the customer service in time.",
"c6": "Proportion of increase", "c6": "Proportion of increase",
"c7": "Current valuation" "c7": "Current valuation",
"withdrawals":"Please select the withdrawal address"
}, },
"base": { "base": {
"a0": "Title", "a0": "Title",

3
i18n/lang/zh-TW.json

@ -67,7 +67,8 @@
"c3": "可開", "c3": "可開",
"c4": "數量", "c4": "數量",
"c5": "您的劃轉訂單已提交成功,請耐心等待,劃轉結果會以簡訊或郵件的管道通知。請注意查收,如有疑問請及時聯系客服", "c5": "您的劃轉訂單已提交成功,請耐心等待,劃轉結果會以簡訊或郵件的管道通知。請注意查收,如有疑問請及時聯系客服",
"c6": "漲幅比例" "c6": "漲幅比例",
"withdrawals":"請選擇提幣地址"
}, },
"base": { "base": {
"a0": "標題", "a0": "標題",

3
pages/assets/address-list.vue

@ -51,9 +51,10 @@
</view> </view>
</ul> </ul>
<ul class="list" v-else> <ul class="list" v-else>
<!-- /pages/assets/edit-address -->
<v-link <v-link
:to="{ :to="{
path: '/pages/assets/edit-address', path: '',
query: { query: {
coin_name: item.coin_name, coin_name: item.coin_name,
address: item.address, address: item.address,

91
pages/assets/draw.vue

@ -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-input> <!-- </v-input> -->
<!-- <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-picker>
</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>
</picker-view-column>
</picker-view> -->
</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: 750rpx;
height: 600rpx;
margin-top: 20rpx;
}
.bindPickerChange{
width: 100%;
padding-left: 20rpx;
padding-top: 12px !important;
padding-bottom: 12px !important;
background-color: #f7f7f7;
}
</style> </style>

Loading…
Cancel
Save