From 6ef0d56d5cb4799c9cc6be89f214fc1926aced5d Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Fri, 1 Mar 2024 17:42:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=AE=A4=E8=AF=81=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=83=A8=E5=88=86=E4=BF=AE=E6=94=B9=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/verify.js | 4 + pages/user/mycertinfo/orgverify.vue | 199 ++++++++++++++++++++++++---- 2 files changed, 177 insertions(+), 26 deletions(-) diff --git a/api/verify.js b/api/verify.js index f0f5bff..eecc898 100644 --- a/api/verify.js +++ b/api/verify.js @@ -32,4 +32,8 @@ export const upload = files => { .then(result => resolve(result.map(item => item.data.fileInfo.file_id), result)) .catch(reject) }) +} + +export function getUploadUrl() { + return api.cerscan_url } \ No newline at end of file diff --git a/pages/user/mycertinfo/orgverify.vue b/pages/user/mycertinfo/orgverify.vue index f553b57..eb091f3 100644 --- a/pages/user/mycertinfo/orgverify.vue +++ b/pages/user/mycertinfo/orgverify.vue @@ -137,11 +137,11 @@ - + - + @@ -149,12 +149,12 @@ - + - + @@ -162,32 +162,42 @@ - + - 银行卡类型 - - + 银行卡类型 + + 借记卡 + 单位结算卡 - + - + - - 开户银行所在地 - + 开户银行所在地 + + + {{bankStr}} + + + - + + + + + @@ -200,13 +210,22 @@ - - - + + + + + + + - - - + + + + + + + + @@ -218,7 +237,10 @@ - + 身份 + 买方 + 卖方 + 中介服务机构 @@ -235,7 +257,7 @@ - + 提交认证 @@ -253,13 +275,39 @@ import * as VerifyApi from '@/api/verify' import * as cityjson from 'utils/json/city.json' import region from 'utils/json/pca.json'; + import UCheckbox from "../../../uview-ui/components/u-checkbox/u-checkbox"; // //const citydata = cityjson export default { - data() { + components: {UCheckbox}, + data() { return { + // 机构名称 + desc: "", + // 法人名称 + legalsName: "", + // 法人证件类型 + legalsType: "", + // 法人证件号 + legalsIdnum: "", + // 银行账号 + publicAccount: "", + // 开户行名称 + bankName: "", + // 银行行号 + bankType: "", + // 开户人身份证号码 + certIdnum: "", + // 开户银行预留手机号 + bankCellPhone: "", + // 营业执照有效期 + licenseDate: "", + // 法人手机号 + legalsCellPhone: "", + // 开户人 + bankAccountName: "", // 认证步骤 step:3, // 当前标签索引 @@ -279,6 +327,8 @@ // 经办人身份证 jfr_idafile:[], jfr_idbfile:[], + fr_idbfile:[], + door_idbfile:[], // 行业id industryType:0, // 行业列表 @@ -299,9 +349,24 @@ regionIndex: [0, 0, 0], // 处理后的数组 region: [[],[],[]], + // 省区地址 + bankProvince:"", + // 请选择省/市/区 + bankStr:"请选择省/市/区", + //选择省市区的下标Index 传则默认选中传递的 + bankIndex: [0, 0, 0], + // 处理后的数组 + bank: [[],[],[]], //原数组 oldRegion: region, - + // 隐私政策 + isTick: false, + buyer_identity: false, + seller_identity: false, + agency_identity: false, + new_privacy_pers: false, + new_user_pers: false, + new_exceptions_pers: false, } }, mounted() { @@ -488,6 +553,57 @@ } }, // ++++++++++++++++++++++++++ + // +++++++++++++++++++++++++++ + pickerBankChange(e) { + this.bankIndex = e.detail.value; + this.bankStr = this.region[0][this.bankIndex[0]].name + ' ' + this.region[1][this.bankIndex[1]].name + ' ' + + this.region[2][this.bankIndex[2]].name; + + // 组件传值 + this.$emit('region', [this.region[0][this.bankIndex[0]].name , this.region[1][this.bankIndex[1]].name, + this.region[2][this.bankIndex[2]].name]); + }, + pickerBankColumnChange(e) { + if (e.detail.column === 0) { + // 声明城市数组 + let cityArr = []; + let countyArr = []; + // 设置下标 + this.bankIndex = [e.detail.value, 0, 0]; + // 改变城市列表 + this.region[1] = this.oldRegion[e.detail.value].children.map(item => { + cityArr.push({ + name: item.name, + code: item.code + }); + }) + this.$set(this.region, 1, cityArr); + // 改变县区列表 + this.oldRegion[e.detail.value].children[0].children.map(item => { + countyArr.push({ + name: item.name, + code: item.code + }); + }) + this.$set(this.region, 2, countyArr); + } + if (e.detail.column === 1) { + this.bankIndex[1] = e.detail.value; + this.bankIndex[2] = 0; + let countyArr = []; + this.oldRegion[this.bankIndex[0]].children[this.bankIndex[1]].children.map(item => { + countyArr.push({ + name: item.name, + code: item.code + }); + }) + this.$set(this.bank, 2, countyArr); + } + if (e.detail.column === 2) { + this.bankIndex[2] = e.detail.value; + } + }, + // ++++++++++++++++++++++++++ // 选择图片 chooseImage( item) { @@ -503,6 +619,17 @@ //app.formData[index].imageList = oldImageList.concat(tempFiles) //oldImageList.concat(tempFiles) oldImageList.push(tempFiles) + uni.uploadFile({ + url: VerifyApi.getUploadUrl(), //仅为示例,非真实的接口地址 + filePath: tempFiles[0].path, + name: 'file', + success: (uploadFileRes) => { + let res = JSON.parse(uploadFileRes.data) + if (res.resultCode != '00000000' ) { + alert('上传失败') + } + } + }); } }); console.log(oldImageList.length) @@ -539,7 +666,18 @@ })) .then(resolve, reject) }) - } + }, + readpri() { + this.isTick = true; + }, + handleSubmit() { + + let institutionsdata = { + + }; + + + } } } @@ -759,7 +897,16 @@ } } } - + + .title_left { + padding-right: 20rpx; + } + .title_radio .title_left_radio { + margin-right: 20rpx; + } + .title_radio .title_left_radio.last-child { + margin-right: 0; + } } }