1.虚拟币优化

2024.4.1 sws
master
sws 2024-04-01 19:26:49 +08:00
parent eacd1f8d1d
commit e3ed15e2c7
3 changed files with 29 additions and 6 deletions

View File

@ -137,7 +137,7 @@
wallet_static_url: wallet_static_url,
status_bar_height: bar_height,
params: null,
data_list_loding_status: 1,
data_list_loding_status: 1,
//
popup_coin_status: false,
@ -190,6 +190,7 @@
params: params,
});
this.coin_oprate_list[1].url = this.coin_oprate_list[1].url + '?id=' + params.id;
this.coin_oprate_list[0].url = this.coin_oprate_list[0].url + '?id=' + params.id;
this.init();
},

View File

@ -8,4 +8,10 @@
.transfer-btn:active {
background: linear-gradient(107deg, #168ACA 0%, #022A97 100%);
}
.coin-content-list-img {
--size: 80rpx;
width: var(--size);
height: var(--size) !important;
}

View File

@ -2,12 +2,25 @@
<view :class="theme_view">
<view class="transfer">
<view class="padding-main">
<view class="bg-white padding-main radius-md margin-bottom-main">
<view class="padding-vertical-sm border-radius-sm flex-row align-c">
<view class="flex-row">
<image v-if="accounts.platform_icon" :src="accounts.platform_icon" mode="widthFix" class="coin-content-list-img round" />
<view class="padding-left-main">
<view class="coin-dropdown text-size-md pr margin-bottom-xs flex-row">
<text class="cr-666">{{ accounts.platform_name }}</text>
</view>
<view class="fw-b text-size">{{ accounts.platform_symbol }}{{ accounts.normal_coin }}</view>
</view>
</view>
</view>
</view>
<view class="bg-white padding-main radius-md margin-bottom-main">
<view class="padding-vertical-sm flex-row align-c">
<text class="text-size fw-b">收款账号</text>
<view class="padding-left-lg flex-row jc-sb align-c flex-1 flex-width">
<view class="flex-1 padding-right-main">
<input type="digit" name="receive_accounts_key" :value="receive_accounts_key" placeholder-class="text-size-md cr-grey-9" placeholder="请输入收款账号" @input="receive_accounts_key_change" />
<input type="text" name="receive_accounts_key" :value="receive_accounts_key" placeholder-class="text-size-md cr-grey-9" placeholder="请输入收款账号" @input="receive_accounts_key_change" />
</view>
<iconfont name="icon-scan" size="40rpx" @tap="scancode_event"></iconfont>
</view>
@ -58,11 +71,10 @@
accounts_static_url: accounts_static_url,
accounts_id: null,
accounts_key: null,
receive_accounts_key: null,
receive_accounts_id: null,
accounts: {},
receive_accounts: {},
receive_accounts_key: null,
coin: null,
note: '',
// pay_pwd: '',
@ -73,6 +85,10 @@
onLoad(params) {
//
app.globalData.page_event_onload_handle(params);
//
this.setData({
accounts_id: params.id,
});
},
onShow() {
@ -101,7 +117,7 @@
uni.request({
url: app.globalData.get_request_url('createinfo', 'transfer', 'coin'),
method: 'POST',
data: { accounts_id: this.accounts_id, accounts_key: this.accounts_key },
data: { accounts_id: this.accounts_id, accounts_key: this.receive_accounts_key },
dataType: 'json',
success: (res) => {
uni.stopPullDownRefresh();
@ -111,6 +127,7 @@
this.setData({
accounts: data.accounts || {},
receive_accounts: data.receive_accounts || {},
receive_accounts_id: data.receive_accounts ? data.receive_accounts.id : null,
});
} else {
if (app.globalData.is_login_check(res.data, this, 'get_data')) {
@ -163,7 +180,6 @@
//
transfer_event(e) {
var new_data = {
receive_accounts_key: this.receive_accounts_key,
receive_accounts_id: this.receive_accounts_id,
coin: this.coin,
note: this.note,