分佣:提现银行卡列表

pull/1/head
owen 2023-09-22 15:38:40 +08:00
parent a91b09a5fc
commit 4f219f2551
1 changed files with 14 additions and 15 deletions

View File

@ -22,8 +22,8 @@
<view class='item acea-row row-between-wrapper'>
<view class='name'>银行</view>
<view class='input'>
<picker @change="bindPickerChange" :value="index" :range="array">
<text class='Bank'>{{array[index]}}</text>
<picker @change="bindPickerChange" :value="bankIndex" range-key="label" :range="bankList">
<text class='Bank'>{{bankList[bankIndex] && bankList[bankIndex].label}}</text>
<text class='iconfont icon-qiepian38'></text>
</picker>
</view>
@ -110,12 +110,13 @@
</view>
</template>
<script>
import { extractBank } from '@/api/user.js';
import { toLogin } from '@/libs/login.js';
import { mapGetters } from "vuex";
import * as TradeConfigApi from '@/api/trade/config.js';
import * as BrokerageAPI from '@/api/trade/brokerage.js'
import * as Util from '@/utils/util.js';
import { getDicts } from "@/api/system/dict";
import { DICT_TYPE } from "@/utils/dict";
export default {
data() {
return {
@ -133,8 +134,8 @@
}
],
currentTab: 0,
index: 0,
array: [], //
bankIndex: 0,
bankList: [], //
minPrice: 0.00, //
frozenDays: 0, //
isClone: false,
@ -161,7 +162,7 @@
toLogin();
return;
}
// this.getUserExtractBank();
this.getUserExtractBank();
this.getExtractUser();
},
methods: {
@ -194,19 +195,18 @@
});
},
getUserExtractBank: function() {
// TODO
let that = this;
extractBank().then(res => {
let array = res.data;
array.unshift("请选择银行");
that.$set(that, 'array', array);
getDicts(DICT_TYPE.BROKERAGE_BANK_NAME).then(res => {
let bankList = res.data;
bankList.unshift({ label: '请选择银行' });
that.$set(that, 'bankList', bankList);
});
},
swichNav: function(current) {
this.currentTab = current;
},
bindPickerChange: function(e) {
this.index = e.detail.value;
this.bankIndex = e.detail.value;
},
moneyInput(e) {
//
@ -232,14 +232,13 @@
title: '请填写卡号'
});
}
if (that.index === 0) {
if (that.bankIndex === 0) {
return this.$util.Tips({
title: "请选择银行"
});
}
// TODO
form.name = value.name;
form.bankName = that.array[that.index];
form.bankName = that.bankList[that.bankIndex].value;
} else if (that.currentTab === 1) { //
form.type = 3;
if (value.name.length === 0) {