diff --git a/src/views/user/accountSetting/userInformation/companyInformation.vue b/src/views/user/accountSetting/userInformation/companyInformation.vue index f604432c..a1a0fbe8 100644 --- a/src/views/user/accountSetting/userInformation/companyInformation.vue +++ b/src/views/user/accountSetting/userInformation/companyInformation.vue @@ -9,9 +9,9 @@ /> - + + + @@ -262,14 +262,14 @@ export default { methods: { searchBankAddress(){ let data = { - sheng:this.form.sheng, - shi:this.form.shi, - bankType:this.form.bankType, - bankDeposit:this.form.bankDeposit, + sheng:this.userForm.sheng, + shi:this.userForm.shi, + bankType:this.userForm.bankType, + bankDeposit:this.userForm.bankDeposit, } depositList(data).then(response => { if (response.rows.length<1){ - if (this.form.sheng==''||this.form.shi==''){ + if (this.userForm.sheng==''||this.userForm.shi==''){ this.$toast({ icon: 'fail', // 找到自己需要的图标 message: '请选择省市', @@ -277,7 +277,7 @@ export default { }) return; } - if (this.form.bankDeposit==''){ + if (this.userForm.bankDeposit==''){ this.$toast({ icon: 'fail', // 找到自己需要的图标 message: '请输入关键词', @@ -423,14 +423,14 @@ export default { file:file.content } base64Upload(params1).then((r1) => { - this.form.companyLicense = r1.fileName; + this.userForm.companyLicense = r1.fileName; }) }, deleteFileYYZZ(elIndex){ return (file, name) => { let fileIndex = name.index this.fileListYYZZ[elIndex].splice(fileIndex, 1) - this.form.companyLicense = ''; + this.userForm.companyLicense = ''; } }, submitForm(){ @@ -469,27 +469,27 @@ export default { }, onConfirmBankType(value){ this.showBankType = false; - this.form.bankAddress = ''; - this.form.payeePaymentLines = ''; + this.userForm.bankAddress = ''; + this.userForm.payeePaymentLines = ''; this.bankType = value.dictLabel; - this.form.bankType = value.dictValue; + this.userForm.bankType = value.dictValue; }, onConfirmSheng(value){ console.log(value) this.showSheng = false; - this.form.sheng = value[0]; - this.form.shi = value[1]; + this.userForm.sheng = value[0]; + this.userForm.shi = value[1]; this.sheng = value.join('/'); }, onConfirmBankAddress(value){ console.log(value) - this.form.bankAddress = value.bankDeposit; - this.form.payeePaymentLines = value.payeePaymentLines; + this.userForm.bankAddress = value.bankDeposit; + this.userForm.payeePaymentLines = value.payeePaymentLines; this.showBankAddress = false; }, onConfirmAccountType(value){ console.log(value) - this.form.accountType = value.dictValue; + this.userForm.accountType = value.dictValue; this.accountType = value.dictLabel; this.showAccountType = false; }, diff --git a/src/views/user/accountSetting/userInformation/userInformation.vue b/src/views/user/accountSetting/userInformation/userInformation.vue index 403095e9..fdd0a810 100644 --- a/src/views/user/accountSetting/userInformation/userInformation.vue +++ b/src/views/user/accountSetting/userInformation/userInformation.vue @@ -9,9 +9,9 @@ /> - + + + @@ -128,7 +128,7 @@ import { getInfo } from "@/api/login/index"; import {getMember, base64Attach, userUpdate, showUserImg, deleteUserImg, options} from "@/api/user/index"; import {Dialog} from "vant"; -import {base64Upload} from "@/api/register"; +import {base64Upload, depositList, realtimeBackList} from "@/api/register"; export default { name: "userInformation", data() { @@ -183,6 +183,40 @@ export default { this.getInfo(); }, methods: { + searchBankAddress(){ + let data = { + sheng:this.userForm.sheng, + shi:this.userForm.shi, + bankType:this.userForm.bankType, + bankDeposit:this.userForm.bankDeposit, + } + depositList(data).then(response => { + if (response.rows.length<1){ + if (this.userForm.sheng==''||this.userForm.shi==''){ + this.$toast({ + icon: 'fail', // 找到自己需要的图标 + message: '请选择省市', + duration:"1000", + }) + return; + } + if (this.userForm.bankDeposit==''){ + this.$toast({ + icon: 'fail', // 找到自己需要的图标 + message: '请输入关键词', + duration:"1000", + }) + return; + } + realtimeBackList(data).then(response2 => { + console.log(response2) + this.bankAddressOption = response2.data; + }); + }else{ + this.bankAddressOption = response.rows; + } + }); + }, getInfo(){ getInfo().then(response => { getMember(response.user.userId).then(response => { @@ -296,27 +330,27 @@ export default { }, onConfirmBankType(value){ this.showBankType = false; - this.form.bankAddress = ''; - this.form.payeePaymentLines = ''; + this.userForm.bankAddress = ''; + this.userForm.payeePaymentLines = ''; this.bankType = value.dictLabel; - this.form.bankType = value.dictValue; + this.userForm.bankType = value.dictValue; }, onConfirmSheng(value){ console.log(value) this.showSheng = false; - this.form.sheng = value[0]; - this.form.shi = value[1]; + this.userForm.sheng = value[0]; + this.userForm.shi = value[1]; this.sheng = value.join('/'); }, onConfirmBankAddress(value){ console.log(value) - this.form.bankAddress = value.bankDeposit; - this.form.payeePaymentLines = value.payeePaymentLines; + this.userForm.bankAddress = value.bankDeposit; + this.userForm.payeePaymentLines = value.payeePaymentLines; this.showBankAddress = false; }, onConfirmAccountType(value){ console.log(value) - this.form.accountType = value.dictValue; + this.userForm.accountType = value.dictValue; this.accountType = value.dictLabel; this.showAccountType = false; },