|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<template> |
|
|
|
|
<!--pages/release/companyAuth/index.wxml--> |
|
|
|
|
<view class="auth-page"> |
|
|
|
|
<!--pages/release/companyAuth/index.wxml--> |
|
|
|
|
<view class="auth-page"> |
|
|
|
|
<view class="is-legal-box"> |
|
|
|
|
<view class="acea-row row-between row-middle"> |
|
|
|
|
<view>申请人是否为企业法人</view> |
|
|
|
@ -16,7 +16,8 @@
|
|
|
|
|
<view class="authbook-box" v-if="form.isLegalPerson == 0"> |
|
|
|
|
<view class="tips">非法人申请需上传加盖公章的申请授权书</view> |
|
|
|
|
<view class="upload-box acea-row row-between"> |
|
|
|
|
<image src="https://download.cyjyyjy.com/sq.png" v-if="form.authorizationPath == ''" @tap="upCard" data-type="ap"></image> |
|
|
|
|
<image src="https://download.cyjyyjy.com/sq.png" v-if="form.authorizationPath == ''" @tap="upCard" |
|
|
|
|
data-type="ap"></image> |
|
|
|
|
<image :src="form.authorizationPath" v-else @tap="upCard" data-type="ap"></image> |
|
|
|
|
<image src="https://download.cyjyyjy.com/sqs.png" @tap="prevImg"></image> |
|
|
|
|
</view> |
|
|
|
@ -34,13 +35,15 @@
|
|
|
|
|
<view class="form-item acea-row row-between row-middle"> |
|
|
|
|
<view class="label">企业名称</view> |
|
|
|
|
<view class="inp-box"> |
|
|
|
|
<input type="text" :value="form.enterpriseName" @input="inpChange" data-type="enterpriseName" placeholder="请填写企业名称"> |
|
|
|
|
<input type="text" :value="form.enterpriseName" @input="inpChange" data-type="enterpriseName" |
|
|
|
|
placeholder="请填写企业名称"> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="form-item acea-row row-between row-middle"> |
|
|
|
|
<view class="label">信用代码</view> |
|
|
|
|
<view class="inp-box"> |
|
|
|
|
<input type="text" :value="form.creditCode" @input="inpChange" data-type="creditCode" placeholder="13位或18位数字及大写字母"> |
|
|
|
|
<input type="text" :value="form.creditCode" @input="inpChange" data-type="creditCode" |
|
|
|
|
placeholder="13位或18位数字及大写字母"> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="form-item acea-row row-between row-middle"> |
|
|
|
@ -48,7 +51,8 @@
|
|
|
|
|
<view class="inp-box acea-row row-right row-middle"> |
|
|
|
|
<!-- <input type="text" value="{{form.profession}}" disabled="true" placeholder="请选择" /> |
|
|
|
|
<image src="https://download.cyjyyjy.com/home/arrow-r.png" class="arrorR"></image> --> |
|
|
|
|
<picker class="pick-box" @change="resourcesChange" :value="idx" :range="resourcesList" :range-key="'cagetoryName'" mode="selector"> |
|
|
|
|
<picker class="pick-box" @change="resourcesChange" :value="idx" :range="resourcesList" |
|
|
|
|
:range-key="'cagetoryName'" mode="selector"> |
|
|
|
|
<view class="picker">{{resourcesList[resourcesIdx].cagetoryName || '请选择'}}</view> |
|
|
|
|
</picker> |
|
|
|
|
</view> |
|
|
|
@ -64,7 +68,8 @@
|
|
|
|
|
<view class="form-item noBorder"> |
|
|
|
|
<view class="label">营业执照</view> |
|
|
|
|
<view class="inp-box yyzz"> |
|
|
|
|
<image src="https://download.cyjyyjy.com/yyzz.png" v-if="form.businessLicense == ''" @tap="upCard" data-type="bl"></image> |
|
|
|
|
<image src="https://download.cyjyyjy.com/yyzz.png" v-if="form.businessLicense == ''" @tap="upCard" |
|
|
|
|
data-type="bl"></image> |
|
|
|
|
<image :src="form.businessLicense" v-else @tap="upCard" data-type="bl"></image> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -75,19 +80,22 @@
|
|
|
|
|
<view class="form-item acea-row row-between row-middle"> |
|
|
|
|
<view class="label">银行账号</view> |
|
|
|
|
<view class="inp-box"> |
|
|
|
|
<input type="text" :value="form.bankAccount" @input="inpChange" @blur="checkBank" data-type="bankAccount" placeholder="银行账号"> |
|
|
|
|
<input type="text" :value="form.bankAccount" @input="inpChange" @blur="checkBank" |
|
|
|
|
data-type="bankAccount" placeholder="银行账号"> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="form-item acea-row row-between row-middle"> |
|
|
|
|
<view class="label">开户银行</view> |
|
|
|
|
<view class="inp-box"> |
|
|
|
|
<input type="text" :value="form.bankName" @input="inpChange" data-type="bankName" placeholder="请填写开户银行"> |
|
|
|
|
<input type="text" :value="form.bankName" @input="inpChange" data-type="bankName" |
|
|
|
|
placeholder="请填写开户银行"> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="form-item acea-row row-between row-middle"> |
|
|
|
|
<view class="label">开户网点</view> |
|
|
|
|
<view class="inp-box"> |
|
|
|
|
<input type="text" :value="form.bankBranch" @input="inpChange" data-type="bankBranch" placeholder="请填写开户网点"> |
|
|
|
|
<input type="text" :value="form.bankBranch" @input="inpChange" data-type="bankBranch" |
|
|
|
|
placeholder="请填写开户网点"> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -97,19 +105,22 @@
|
|
|
|
|
<view class="form-item acea-row row-between row-middle"> |
|
|
|
|
<view class="label">姓名</view> |
|
|
|
|
<view class="inp-box"> |
|
|
|
|
<input type="text" :value="form.legalPersonName" @input="inpChange" data-type="name" placeholder="请填写姓名"> |
|
|
|
|
<input type="text" :value="form.legalPersonName" @input="inpChange" data-type="name" |
|
|
|
|
placeholder="请填写姓名"> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="form-item acea-row row-between row-middle"> |
|
|
|
|
<view class="label">手机号</view> |
|
|
|
|
<view class="inp-box"> |
|
|
|
|
<input type="text" :value="form.legalPhone" @input="inpChange" data-type="phone" placeholder="请填写手机号"> |
|
|
|
|
<input type="text" :value="form.legalPhone" @input="inpChange" data-type="phone" |
|
|
|
|
placeholder="请填写手机号"> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="form-item acea-row row-between row-middle"> |
|
|
|
|
<view class="label">身份证号</view> |
|
|
|
|
<view class="inp-box"> |
|
|
|
|
<input type="text" :value="form.legalPersonIdcard" @input="inpChange" data-type="idcard" placeholder="请填写身份证号"> |
|
|
|
|
<input type="text" :value="form.legalPersonIdcard" @input="inpChange" data-type="idcard" |
|
|
|
|
placeholder="请填写身份证号"> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- <view class="form-item noBorder"> |
|
|
|
@ -134,15 +145,15 @@
|
|
|
|
|
</view> --> |
|
|
|
|
</view> |
|
|
|
|
<view class="submit-btn" @tap="submit">保存并提交</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
// pages/release/companyAuth/index.js |
|
|
|
|
const util = require("../../../utils/util.js"); |
|
|
|
|
const app = getApp(); |
|
|
|
|
// pages/release/companyAuth/index.js |
|
|
|
|
const util = require("../../../utils/util.js"); |
|
|
|
|
const app = getApp(); |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
form: { |
|
|
|
@ -192,46 +203,28 @@ export default {
|
|
|
|
|
/** |
|
|
|
|
* 生命周期函数--监听页面加载 |
|
|
|
|
*/ |
|
|
|
|
onLoad: function (options) { |
|
|
|
|
onLoad: function(options) { |
|
|
|
|
this.getResourcesCagetory(); |
|
|
|
|
|
|
|
|
|
if (options.authInfo) { |
|
|
|
|
let authInfo = JSON.parse(decodeURIComponent(options.authInfo)); |
|
|
|
|
//try fix |
|
|
|
|
this.form.authorizationType = 1; |
|
|
|
|
//try fix |
|
|
|
|
this.form.id = authInfo.id; |
|
|
|
|
//try fix |
|
|
|
|
this.form.enterpriseId = authInfo.enterpriseId; |
|
|
|
|
//try fix |
|
|
|
|
this.form.idcardPicHold = authInfo.idcardPicHold || ''; |
|
|
|
|
//try fix |
|
|
|
|
this.form.idcardPicBehind = authInfo.idcardPicBehind || ''; |
|
|
|
|
//try fix |
|
|
|
|
this.form.idcardPicFront = authInfo.idcardPicFront || ''; |
|
|
|
|
//try fix |
|
|
|
|
this.form.legalPersonIdcard = authInfo.legalPersonIdcard || ''; |
|
|
|
|
//try fix |
|
|
|
|
this.form.legalPhone = authInfo.legalPhone || ''; |
|
|
|
|
//try fix |
|
|
|
|
this.form.legalPersonName = authInfo.legalPersonName || ''; |
|
|
|
|
//try fix |
|
|
|
|
this.form.bankBranch = authInfo.bankBranch || ''; |
|
|
|
|
//try fix |
|
|
|
|
this.form.bankName = authInfo.bankName || ''; |
|
|
|
|
//try fix |
|
|
|
|
this.form.bankAccount = authInfo.bankAccount || ''; |
|
|
|
|
//try fix |
|
|
|
|
this.form.businessLicense = authInfo.businessLicense || ''; |
|
|
|
|
//try fix |
|
|
|
|
this.form.enterpriseScale = authInfo.enterpriseScale || '请选择'; |
|
|
|
|
//try fix |
|
|
|
|
this.form.creditCode = authInfo.creditCode; |
|
|
|
|
//try fix |
|
|
|
|
this.form.enterpriseName = authInfo.enterpriseName; |
|
|
|
|
//try fix |
|
|
|
|
this.form.authorizationPath = authInfo.authorizationPath || ''; |
|
|
|
|
//try fix |
|
|
|
|
this.form.isLegalPerson = 0; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -251,15 +244,14 @@ export default {
|
|
|
|
|
resourcesChange(e) { |
|
|
|
|
// console.log(e) |
|
|
|
|
let idx = Number(e.detail.value); |
|
|
|
|
this.setData({//['form.industryId']: this.data.resourcesList[idx].id |
|
|
|
|
this.setData({ //['form.industryId']: this.data.resourcesList[idx].id |
|
|
|
|
resourcesIdx: idx, |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.industryId = this.resourcesList[idx].id; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
//选择行业 |
|
|
|
|
toProfession() {// wx.navigateTo({ |
|
|
|
|
toProfession() { // wx.navigateTo({ |
|
|
|
|
// url: '/pages/user/profession/index', |
|
|
|
|
// }) |
|
|
|
|
}, |
|
|
|
@ -270,7 +262,7 @@ export default {
|
|
|
|
|
bankAccount: e.detail.value |
|
|
|
|
}).then(res => { |
|
|
|
|
if (res.data.success) { |
|
|
|
|
this.setData({//['form.bankName']: res.data.data |
|
|
|
|
this.setData({ //['form.bankName']: res.data.data |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.bankName = res.data.data; |
|
|
|
@ -284,58 +276,27 @@ export default {
|
|
|
|
|
|
|
|
|
|
switch (type) { |
|
|
|
|
case 'enterpriseName': |
|
|
|
|
this.setData({//['form.enterpriseName']: value |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.enterpriseName = value; |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case 'creditCode': |
|
|
|
|
this.setData({//['form.creditCode']: value |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.creditCode = value; |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case 'bankAccount': |
|
|
|
|
this.setData({//['form.bankAccount']: value |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.bankAccount = value; |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case 'bankName': |
|
|
|
|
this.setData({//['form.bankName']: value |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.bankName = value; |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case 'bankBranch': |
|
|
|
|
this.setData({//['form.bankBranch']: value |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.bankBranch = value; |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case 'name': |
|
|
|
|
this.setData({//['form.legalPersonName']: value |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.legalPersonName = value; |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case 'phone': |
|
|
|
|
this.setData({//['form.legalPhone']: value |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.legalPhone = value; |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case 'idcard': |
|
|
|
|
this.setData({//['form.legalPersonIdcard']: value |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.legalPersonIdcard = value; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
@ -345,49 +306,28 @@ export default {
|
|
|
|
|
let type = e.currentTarget.dataset.type; |
|
|
|
|
util.chooseImages(img => { |
|
|
|
|
if (type == 'f') { |
|
|
|
|
this.setData({//['form.idcardPicFront']: img |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.idcardPicFront = img; |
|
|
|
|
} else if (type == 'b') { |
|
|
|
|
this.setData({//.form.idcardPicBehind: img |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.idcardPicBehind = img; |
|
|
|
|
} else if (type == 'h') { |
|
|
|
|
this.setData({//.form.idcardPicHold: img |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.idcardPicHold = img; |
|
|
|
|
} else if (type == 'ap') { |
|
|
|
|
this.setData({//.form.authorizationPath: img |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.authorizationPath = img; |
|
|
|
|
} else if (type == 'bl') { |
|
|
|
|
this.setData({//.form.businessLicense: img |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.businessLicense = img; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
bindPickerChange(e) { |
|
|
|
|
this.setData({//['form.enterpriseScale']: this.data.scaleArr[e.detail.value] |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.enterpriseScale = this.scaleArr[e.detail.value]; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
radioClick(e) { |
|
|
|
|
this.setData({//.form.isLegalPerson: e.detail.value |
|
|
|
|
}); |
|
|
|
|
//try fix |
|
|
|
|
this.form.isLegalPerson = e.detail.value; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
prevImg(e) {// let url = e.currentTarget.dataset.url; |
|
|
|
|
prevImg(e) { // let url = e.currentTarget.dataset.url; |
|
|
|
|
// wx.previewImage({ |
|
|
|
|
// urls: [url], |
|
|
|
|
// }) |
|
|
|
@ -470,7 +410,6 @@ export default {
|
|
|
|
|
uni.showModal({ |
|
|
|
|
title: '提示!', |
|
|
|
|
content: '提交成功!请等待审核', |
|
|
|
|
|
|
|
|
|
success(res) { |
|
|
|
|
uni.navigateBack({ |
|
|
|
|
delta: 1 |
|
|
|
@ -511,72 +450,86 @@ export default {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
<style> |
|
|
|
|
/* pages/release/companyAuth/index.wxss */ |
|
|
|
|
/* pages/release/companyAuth/index.wxss */ |
|
|
|
|
|
|
|
|
|
.is-legal-box{ |
|
|
|
|
.is-legal-box { |
|
|
|
|
width: 100%; |
|
|
|
|
padding: 30rpx 40rpx; |
|
|
|
|
} |
|
|
|
|
.is-legal-box label{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.is-legal-box label { |
|
|
|
|
margin-right: 40rpx; |
|
|
|
|
} |
|
|
|
|
.authbook-box{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.authbook-box { |
|
|
|
|
font-size: 28rpx; |
|
|
|
|
color: #666; |
|
|
|
|
} |
|
|
|
|
.tips{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.tips { |
|
|
|
|
margin: 40rpx 0; |
|
|
|
|
} |
|
|
|
|
.upload-box image{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.upload-box image { |
|
|
|
|
width: 332rpx; |
|
|
|
|
height: 204rpx; |
|
|
|
|
} |
|
|
|
|
.splitLine{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.splitLine { |
|
|
|
|
width: 100%; |
|
|
|
|
height: 20rpx; |
|
|
|
|
background-color: #eee; |
|
|
|
|
} |
|
|
|
|
.company-info-box{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.company-info-box { |
|
|
|
|
width: 100%; |
|
|
|
|
padding: 32rpx 40rpx; |
|
|
|
|
} |
|
|
|
|
.title{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.title { |
|
|
|
|
font-size: 32rpx; |
|
|
|
|
color: #1D1D1D; |
|
|
|
|
margin-bottom: 38rpx; |
|
|
|
|
font-weight: 500; |
|
|
|
|
} |
|
|
|
|
.form-item{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.form-item { |
|
|
|
|
font-size: 28rpx; |
|
|
|
|
color: #666666; |
|
|
|
|
padding: 16rpx 0; |
|
|
|
|
border-bottom: 2rpx solid #EEEEEE; |
|
|
|
|
} |
|
|
|
|
.form-item .inp-box{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.form-item .inp-box { |
|
|
|
|
width: 70%; |
|
|
|
|
text-align: right; |
|
|
|
|
} |
|
|
|
|
.yyzz image{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.yyzz image { |
|
|
|
|
width: 670rpx; |
|
|
|
|
height: 368rpx; |
|
|
|
|
margin-top: 26rpx; |
|
|
|
|
} |
|
|
|
|
.noBorder{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.noBorder { |
|
|
|
|
border: none; |
|
|
|
|
} |
|
|
|
|
.form-item .sfz{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.form-item .sfz { |
|
|
|
|
width: 100%; |
|
|
|
|
margin-top: 26rpx; |
|
|
|
|
} |
|
|
|
|
.sfz image{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.sfz image { |
|
|
|
|
width: 332rpx; |
|
|
|
|
height: 205rpx; |
|
|
|
|
margin-bottom: 10rpx; |
|
|
|
|
} |
|
|
|
|
.submit-btn{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.submit-btn { |
|
|
|
|
width: 670rpx; |
|
|
|
|
height: 76rpx; |
|
|
|
|
background: linear-gradient(144deg, #FFA782 0%, #FF5100 100%); |
|
|
|
@ -585,11 +538,12 @@ export default {
|
|
|
|
|
font-size: 28rpx; |
|
|
|
|
line-height: 76rpx; |
|
|
|
|
text-align: center; |
|
|
|
|
margin:40rpx auto; |
|
|
|
|
} |
|
|
|
|
.arrorR{ |
|
|
|
|
margin: 40rpx auto; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.arrorR { |
|
|
|
|
width: 14rpx; |
|
|
|
|
height: 24rpx; |
|
|
|
|
margin-left: 10rpx; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |