diff --git a/api/user.js b/api/user.js index c2d3b9a..f6ddd45 100644 --- a/api/user.js +++ b/api/user.js @@ -776,4 +776,20 @@ export function queryIdCard(data) { */ export function queryCheck(data) { return request.post('intention/check', data, {noAuth: true}) +} +/** + * 查询银行卡信息 + * @param object data + * + */ +export function queryBankCard(data) { + return request.post('intention/bank', data, {noAuth: true}) +} +/** + * 查询联行号 + * @param object data + * + */ +export function queryCNAPS(data) { + return request.post('intention/interbank', data, {noAuth: true}) } \ No newline at end of file diff --git a/libs/uniApi.js b/libs/uniApi.js index 3e4f7bd..b8e9cbe 100644 --- a/libs/uniApi.js +++ b/libs/uniApi.js @@ -219,9 +219,12 @@ export function throttle(fn, delay) { var delay = delay || 200; return function(...args) { lastArgs = args; + console.log('没进来'); if(!timer){ + console.log('进来了'); timer = setTimeout(()=>{ timer = null; + console.log('节----'); fn.apply(this, lastArgs); }, delay); } diff --git a/pages/store/settled/index.vue b/pages/store/settled/index.vue index 21dda96..6e24984 100644 --- a/pages/store/settled/index.vue +++ b/pages/store/settled/index.vue @@ -6,7 +6,7 @@ --> - + @@ -15,54 +15,84 @@ 3 - 基本信息 - 企业资料文件 - 结算信息 + 基本信息 + 企业资料文件 + 结算信息 - + - 商户名称 - + 商户名称 + (需与营业执照企业名称一致) - + + + + 商户分类 + + + + + + + + + + + 实际经营地址 - - + + @@ -72,28 +102,19 @@ - + - + 企业名称 - - - - - - - - 企业行业 - - - - - - + @@ -101,8 +122,10 @@ 企业类型 - - + + @@ -112,68 +135,53 @@ 企业客服电话 - + 企业对接人姓名 - + 企业对接人联系电话 - + 企业对接人编号 - + - 发起人姓名 - + 发起人联系电话 - + 发起人编号 - + @@ -182,23 +190,28 @@ 发起人手持介绍信照片 - + 下载模版 - + 示例模版 - + {{shopInfo.userPhoto.length}}/1 - + - + - + @@ -210,22 +223,24 @@ 店铺类型 - - - + + - + 是否惠美乡村店铺 - + 如果为惠美乡村店铺需上传惠美乡村红头文件 @@ -239,28 +254,31 @@ 惠美乡村红头文件 - {{pics.length}}/1 + {{shopInfo.isVeteranPhoto.length}}/1 - + - + - + - + 是否退伍军人 - + 如果为退伍军人则需要上传证件照 @@ -274,26 +292,29 @@ 退伍军人证件照 - {{pics.length}}/1 + {{shopInfo.isFlagshipStorePhoto.length}}/1 - + - + - + - + - + @@ -304,18 +325,27 @@ - - - + + + + \ No newline at end of file diff --git a/pages/store/settled/index - 副本.vue b/pages/store/settled/index备份.vue similarity index 100% rename from pages/store/settled/index - 副本.vue rename to pages/store/settled/index备份.vue diff --git a/pages/store/settled/step2.vue b/pages/store/settled/step2.vue index 270e36a..1642b5a 100644 --- a/pages/store/settled/step2.vue +++ b/pages/store/settled/step2.vue @@ -31,7 +31,7 @@ 身份证正反面上传 - {{pics.length}}/2 + {{shopInfo.idCardPhoto.length}}/2 @@ -112,7 +112,7 @@ 营业执照 - {{pics.length}}/1 + {{shopInfo.businessLicense.length}}/1 @@ -123,7 +123,7 @@ - + @@ -156,7 +156,12 @@ 请检查格式是否为:x年x月x日 - + + + 营业执照注册地址 + + + 经营范围 @@ -214,11 +219,11 @@ countStartTime:'', countEndTime:'', businessScope:'', + registerAddressDetail:'', }, successful: false, isType: false, showProtocol: false, - pics:[], }; }, onLoad(options) { @@ -271,10 +276,9 @@ }, verifyBusinessLicense(){ queryCheck({image:this.shopInfo.businessLicense[0]}).then((res)=>{ - console.log('res: ',res); this.shopInfo.countId=res.data.result.creditno; - this.shopInfo.countStartTime=res.data.result.startdate; - this.shopInfo.countEndTime=res.data.result.enddate; + this.shopInfo.countStartTime=res.data.result.start; + this.shopInfo.countEndTime=res.data.result.end; }) }, getAgreement() { @@ -308,26 +312,27 @@ this.shopInfo.businessAddress = address.map(v=>v.name).join('/'); }, validateBtn(){ - let {idCardPhoto, - idCardName, - idCardNumber, - idCardStartTime, - idCardEndTime, - businessLicense, - countId, - countStartTime, - countEndTime, - businessScope,}=this.shopInfo; - if(idCardPhoto&& - idCardName&& - idCardNumber&& - idCardStartTime&& - idCardEndTime&& - businessLicense&& - countId&& - countStartTime&& - countEndTime&& - businessScope){ + let data2=uni.getStorageSync('shopInfo'); + console.log('data2: ',data2); + let {idCardPhoto,idCardName,idCardNumber,idCardStartTime,idCardEndTime,businessLicense,countId,countStartTime,countEndTime,businessScope,registerAddressDetail}=this.shopInfo; + if(idCardPhoto&&idCardName&&idCardNumber&&idCardStartTime&&idCardEndTime&&businessLicense&&countId&&countStartTime&&countEndTime&&businessScope&®isterAddressDetail){ + let idcard={ + image1:idCardPhoto[0], + image2:idCardPhoto[1], + name:idCardName, + number:idCardNumber, + start:idCardStartTime, + end:idCardEndTime, + } + let biz=data2.biz; + biz.image=businessLicense; + biz.number=countId; + biz.start=countStartTime; + biz.end=countEndTime; + biz.address=registerAddressDetail; + data2.idcard=idcard; + uni.setStorageSync('shopInfo',data2); + console.log('data2: ',data2); this.validate=true; } }, @@ -356,7 +361,6 @@ let that = this; that.$util.uploadImageOne('upload/image', function(res) { item.push(res.data.path); - // that.$set(that, 'pics', that.pics); }); }, /** @@ -367,7 +371,6 @@ let that = this, pic = item[index]; item.splice(index, 1); - // that.$set(that, 'pics', that.pics); }, // 图片预览 // 获得相册 idx diff --git a/pages/store/settled/step3.vue b/pages/store/settled/step3.vue index b615261..6055963 100644 --- a/pages/store/settled/step3.vue +++ b/pages/store/settled/step3.vue @@ -1,5 +1,5 @@