|
@@ -264,6 +264,28 @@ export default {
|
|
|
this.allamount();
|
|
this.allamount();
|
|
|
this.$api.user.sysMenuRecordAdd(2,3).then((res) => {
|
|
this.$api.user.sysMenuRecordAdd(2,3).then((res) => {
|
|
|
});
|
|
});
|
|
|
|
|
+ this.$api.letter.getUserBankList({
|
|
|
|
|
+ auditStatus: '1',
|
|
|
|
|
+ delFlag: '0'
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ if (res.code == '200' && res.data.length) {
|
|
|
|
|
+ this.bankList.map(val => {
|
|
|
|
|
+ res.data.map(ele => {
|
|
|
|
|
+ if (val.bankName == ele.bankAccount) {
|
|
|
|
|
+ ele.logo = val.logo;
|
|
|
|
|
+ return ele;
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ let bankinfo = res.data.find(val => val.isDefault == 1)
|
|
|
|
|
+ if (bankinfo) {
|
|
|
|
|
+ this.bankCardInfo = bankinfo;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.bankCardInfo = res.data[0]
|
|
|
|
|
+ }
|
|
|
|
|
+ console.log(123, this.bankCardInfo)
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
// 方法函数
|
|
// 方法函数
|
|
|
methods: {
|
|
methods: {
|
|
@@ -347,7 +369,8 @@ export default {
|
|
|
that.withdrawLoading = true
|
|
that.withdrawLoading = true
|
|
|
if(userInfo) {
|
|
if(userInfo) {
|
|
|
that.$api.letter.signResult({
|
|
that.$api.letter.signResult({
|
|
|
- userId: userInfo.id
|
|
|
|
|
|
|
+ userId: userInfo.id,
|
|
|
|
|
+ bankNumber: this.bankCardInfo?this.bankCardInfo.bankNumber: null
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
that.withdrawLoading = false
|
|
that.withdrawLoading = false
|
|
|
if(res.data.bizCode === '2') {
|
|
if(res.data.bizCode === '2') {
|