分佣:提现银行卡列表

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