|
|
@@ -12,7 +12,7 @@
|
|
|
<view class="uni-list">
|
|
|
<radio-group @change="radioChange">
|
|
|
<label class="uni-list-cell uni-list-cell-pd"
|
|
|
- v-if="item.isopen && ((item.value=='weixin' && weixin) || (item.value=='zfb' && zfb))"
|
|
|
+ v-if="item.isopen && ((item.value=='weixin' && weixin) || (item.value=='zfb' && zfb)) || (item.value == 'bank' && zfb)"
|
|
|
v-for="(item, index) in items" :key="item.value">
|
|
|
<u-icon :name="item.img" :color="item.color" size="40"></u-icon>
|
|
|
<view>{{ item.name }}</view>
|
|
|
@@ -31,6 +31,19 @@
|
|
|
prefixIconStyle="font-size: 22px;color: #909399"></u--input>
|
|
|
<view class="bor_solp"></view>
|
|
|
</view>
|
|
|
+ <view v-if="sitem.value=='bank'" class="u-demo-block">
|
|
|
+ <view style="padding-bottom: 30rpx;">姓名</view>
|
|
|
+ <u--input placeholder="姓名" prefixIcon="account" v-model="bank_name"
|
|
|
+ prefixIconStyle="font-size: 22px;color: #909399"></u--input>
|
|
|
+ <view style="padding: 30rpx 0rpx;">银行卡号</view>
|
|
|
+ <u--input placeholder="银行卡号" prefixIcon="zhifubao" v-model="bank_number"
|
|
|
+ prefixIconStyle="font-size: 22px;color: #909399"></u--input>
|
|
|
+ <view class="bor_solp"></view>
|
|
|
+ <view style="padding: 30rpx 0rpx;">所属银行</view>
|
|
|
+ <u--input placeholder="所属银行" prefixIcon="zhifubao" v-model="branch"
|
|
|
+ prefixIconStyle="font-size: 22px;color: #909399"></u--input>
|
|
|
+ <view class="bor_solp"></view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="btn">
|
|
|
<view class="save bg-linear-gradient" @click="doSve">提交</view>
|
|
|
@@ -45,22 +58,34 @@
|
|
|
name: 'Withdraw',
|
|
|
data() {
|
|
|
return {
|
|
|
+ bank_name: '',
|
|
|
+ bank_number: '',
|
|
|
+ branch: '',
|
|
|
primary: this.$theme.primary,
|
|
|
settingFile: getApp().globalData.siteinfo,
|
|
|
money: 0,
|
|
|
items: [{
|
|
|
- value: 'weixin',
|
|
|
- color: '#62b900',
|
|
|
- isopen: true,
|
|
|
- name: '微信',
|
|
|
- img: 'weixin-fill'
|
|
|
- }, {
|
|
|
- value: 'zfb',
|
|
|
- color: 'rgb(85, 170, 255)',
|
|
|
- isopen: true,
|
|
|
- name: '支付宝',
|
|
|
- img: 'zhifubao'
|
|
|
- }],
|
|
|
+ value: 'weixin',
|
|
|
+ color: '#62b900',
|
|
|
+ isopen: true,
|
|
|
+ name: '微信',
|
|
|
+ img: 'weixin-fill'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 'zfb',
|
|
|
+ color: 'rgb(85, 170, 255)',
|
|
|
+ isopen: true,
|
|
|
+ name: '支付宝',
|
|
|
+ img: 'zhifubao'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 'bank',
|
|
|
+ color: 'rgb(85, 170, 255)',
|
|
|
+ isopen: true,
|
|
|
+ name: '银行卡',
|
|
|
+ img: 'rmb-circle'
|
|
|
+ }
|
|
|
+ ],
|
|
|
apply_account: '',
|
|
|
apply_name: '',
|
|
|
sitem: {
|
|
|
@@ -93,6 +118,11 @@
|
|
|
that.weixin = res.app.cash.wx.isopen;
|
|
|
that.zfb = res.app.cash.ali.isopen;
|
|
|
}
|
|
|
+ if(res && res.bank) {
|
|
|
+ that.bank_name = res.bank.bank_name
|
|
|
+ that.bank_number = res.bank.bank_number
|
|
|
+ that.branch = res.bank.branch
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -195,6 +225,25 @@
|
|
|
that.$api.msg(res.msg);
|
|
|
}
|
|
|
});
|
|
|
+ } else if (that.sitem.value == 'bank') {
|
|
|
+ txApi.bankTx({
|
|
|
+ bank_name: that.bank_name,
|
|
|
+ bank_number: that.bank_number,
|
|
|
+ branch: that.branch,
|
|
|
+ txprice: that.money,
|
|
|
+ systype: that.systype
|
|
|
+ }).then(res => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ that.$api.msg(res.msg);
|
|
|
+ setTimeout(() => {
|
|
|
+ uni.redirectTo({
|
|
|
+ url: '/pagesA/pages/mypurse/index'
|
|
|
+ });
|
|
|
+ }, 1000);
|
|
|
+ } else {
|
|
|
+ that.$api.msg(res.msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
} else {
|
|
|
that.$api.msg('请选择提现方式');
|
|
|
return;
|
|
|
@@ -309,4 +358,4 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|