ccj 3 år sedan
förälder
incheckning
2c71bca7e4

+ 41 - 36
pageD/identity/companyIdentity.vue

@@ -8,11 +8,12 @@
 			<!-- 公司营业执照上传 -->
 			<view v-if="license1 != ''">
 				<upload v-if="consentStatus == true" class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
-					:size-type="['compressed']" @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
+					:size-type="['compressed']" @on-success="getImgUrl"  @on-remove="onRemove"
 					@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions"
-					:custom="uploadCustom" @on-progress="onProgress"></upload>
+					:custom="uploadCustom" ></upload>
 			</view>
 			<view class="c-row b-b">
+				<text class="tit_red">*</text>
 				<text class="tit">公司名称</text>
 				<view class="con-list">
 					<input placeholder="请填写公司名称" name="input" v-model="identityAuthenticationInfo.compName"></input>
@@ -30,16 +31,17 @@
 			<view>
 				<!-- 个人身份证正面 -->
 				<upload class="upload" ref="upload1" :action="action" :max-size="maxSize" :max-count="1"
-					:size-type="['compressed']" @on-success="getImgUrl1" @on-error="onError" @on-remove="onRemove"
+					:size-type="['compressed']" @on-success="getImgUrl1" @on-remove="onRemove"
 					@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions1"
-					:custom="uploadCustom1" @on-progress="onProgress"></upload>
+					:custom="uploadCustom1" ></upload>
 				<!-- 个人身份证反面 -->
 				<upload class="upload" ref="upload2" :action="action" :max-size="maxSize" :max-count="1"
-					:size-type="['compressed']" @on-success="getImgUrl2" @on-error="onError" @on-remove="onRemove"
+					:size-type="['compressed']" @on-success="getImgUrl2"  @on-remove="onRemove"
 					@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions2"
-					:custom="uploadCustom2" @on-progress="onProgress"></upload>
+					:custom="uploadCustom2" ></upload>
 			</view>
 			<view class="c-row b-b">
+				<text class="tit_red">*</text>
 				<text class="tit">姓名</text>
 				<view class="con-list">
 					<input placeholder="请填写姓名" name="input" v-model="identityAuthenticationInfo.customerName"></input>
@@ -218,20 +220,20 @@
 						this.$api.msg('公司名称输入错误')
 						return
 					}
-					if (!this.identityAuthenticationInfo.payTaxesCard) {
-						this.$api.msg('纳税人识别号不能为空')
-						return
-					}
-					if (this.identityAuthenticationInfo.payTaxesCard.length < 15 || this.identityAuthenticationInfo
-						.payTaxesCard.length > 20) {
-						this.$api.msg('纳税人识别号输入错误')
-						return
-					}
-					if (this.identityAuthenticationInfo.businessLicenseAddressUrl == "" || this.identityAuthenticationInfo
-						.businessLicenseAddressUrl == null) {
-						this.$api.msg('请上传营业执照')
-						return
-					}
+					// if (!this.identityAuthenticationInfo.payTaxesCard) {
+					// 	this.$api.msg('纳税人识别号不能为空')
+					// 	return
+					// }
+					// if (this.identityAuthenticationInfo.payTaxesCard.length < 15 || this.identityAuthenticationInfo
+					// 	.payTaxesCard.length > 20) {
+					// 	this.$api.msg('纳税人识别号输入错误')
+					// 	return
+					// }
+					// if (this.identityAuthenticationInfo.businessLicenseAddressUrl == "" || this.identityAuthenticationInfo
+					// 	.businessLicenseAddressUrl == null) {
+					// 	this.$api.msg('请上传营业执照')
+					// 	return
+					// }
 					this.identityAuthenticationInfo.customerTypeFlag = "2"
 					this.identityAuthenticationInfo.customerType = "企业"
 					var model = JSON.stringify(this.identityAuthenticationInfo);
@@ -240,14 +242,14 @@
 					})
 				} else if (this.consentStatus1) {
 					this.identityAuthenticationInfo.cardAddressUrl = this.id.toString()
-					if (this.id[0] == '' || this.id[0] == null) {
-						this.$api.msg('请上传身份证正面')
-						return
-					}
-					if (this.id[1] == '' || this.id[1] == null) {
-						this.$api.msg('请上传身份证反面')
-						return
-					}
+					// if (this.id[0] == '' || this.id[0] == null) {
+					// 	this.$api.msg('请上传身份证正面')
+					// 	return
+					// }
+					// if (this.id[1] == '' || this.id[1] == null) {
+					// 	this.$api.msg('请上传身份证反面')
+					// 	return
+					// }
 					if (!this.identityAuthenticationInfo.customerName) {
 						this.$api.msg('姓名不能为空')
 						return
@@ -257,14 +259,14 @@
 						this.$api.msg('姓名输入错误')
 						return
 					}
-					if (!this.identityAuthenticationInfo.customerNumberCard) {
-						this.$api.msg('身份证号不能为空')
-						return
-					}
-					if (this.identityAuthenticationInfo.customerNumberCard.length != 18) {
-						this.$api.msg('身份证号输入错误')
-						return
-					}
+					// if (!this.identityAuthenticationInfo.customerNumberCard) {
+					// 	this.$api.msg('身份证号不能为空')
+					// 	return
+					// }
+					// if (this.identityAuthenticationInfo.customerNumberCard.length != 18) {
+					// 	this.$api.msg('身份证号输入错误')
+					// 	return
+					// }
 					this.identityAuthenticationInfo.customerTypeFlag = "1"
 					this.identityAuthenticationInfo.customerType = "个人"
 					var model = JSON.stringify(this.identityAuthenticationInfo);
@@ -393,4 +395,7 @@
 	.upload {
 		margin: 20rpx 0;
 	}
+	.tit_red{
+		color: #E54D42;
+	}
 </style>

+ 73 - 69
pageD/identity/companyIdentityThree.vue

@@ -53,6 +53,7 @@
 			</view>
 		</view>
 		<view class="c-row b-b">
+			<text class="tit_red">*</text>
 			<text class="tit">手机号</text>
 			<view class="con-list">
 				<input placeholder="请填写手机号" @input='phoneinput' type="number" maxlength="11"
@@ -246,41 +247,41 @@
 			},
 			commit() {
 				var that = this
-				if (this.bankid[0] == '' || this.bankid[0] == null) {
-					this.$api.msg('请上传银行卡正面')
-					return
-				}
-				if (this.bankid[1] == '' || this.bankid[1] == null) {
-					this.$api.msg('请上传银行卡反面')
-					return
-				}
-				if (!this.identityAuthenticationInfo.bankCard) {
-					this.$api.msg('银行卡号不能为空')
-					return
-				}
-				if (this.identityAuthenticationInfo.bankCard.length < 16 || this.identityAuthenticationInfo.bankCard
-					.length > 19) {
-					this.$api.msg('银行卡号输入错误')
-					return
-				}
-				if (!this.identityAuthenticationInfo.bankDeposit) {
-					this.$api.msg('开户行不能为空')
-					return
-				}
-				if (this.identityAuthenticationInfo.bankDeposit.length < 4 || this.identityAuthenticationInfo.bankDeposit
-					.length > 15) {
-					this.$api.msg('开户行输入错误')
-					return
-				}
-				if (!this.identityAuthenticationInfo.bankDepositBranch) {
-					this.$api.msg('开户支行不能为空')
-					return
-				}
-				if (this.identityAuthenticationInfo.bankDepositBranch.length < 4 || this.identityAuthenticationInfo
-					.bankDepositBranch.length > 30) {
-					this.$api.msg('开户支行输入错误')
-					return
-				}
+				// if (this.bankid[0] == '' || this.bankid[0] == null) {
+				// 	this.$api.msg('请上传银行卡正面')
+				// 	return
+				// }
+				// if (this.bankid[1] == '' || this.bankid[1] == null) {
+				// 	this.$api.msg('请上传银行卡反面')
+				// 	return
+				// }
+				// if (!this.identityAuthenticationInfo.bankCard) {
+				// 	this.$api.msg('银行卡号不能为空')
+				// 	return
+				// }
+				// if (this.identityAuthenticationInfo.bankCard.length < 16 || this.identityAuthenticationInfo.bankCard
+				// 	.length > 19) {
+				// 	this.$api.msg('银行卡号输入错误')
+				// 	return
+				// }
+				// if (!this.identityAuthenticationInfo.bankDeposit) {
+				// 	this.$api.msg('开户行不能为空')
+				// 	return
+				// }
+				// if (this.identityAuthenticationInfo.bankDeposit.length < 4 || this.identityAuthenticationInfo.bankDeposit
+				// 	.length > 15) {
+				// 	this.$api.msg('开户行输入错误')
+				// 	return
+				// }
+				// if (!this.identityAuthenticationInfo.bankDepositBranch) {
+				// 	this.$api.msg('开户支行不能为空')
+				// 	return
+				// }
+				// if (this.identityAuthenticationInfo.bankDepositBranch.length < 4 || this.identityAuthenticationInfo
+				// 	.bankDepositBranch.length > 30) {
+				// 	this.$api.msg('开户支行输入错误')
+				// 	return
+				// }
 				if (!this.identityAuthenticationInfo.customerPhone) {
 					this.$api.msg('手机号不能为空')
 					return
@@ -294,41 +295,41 @@
 					return
 				}
 				if (this.identityAuthenticationInfo.customerTypeFlag == 1) {
-					if (!this.identityAuthenticationInfo.payeeName) {
-						this.$api.msg('收款人姓名不能为空')
-						return
-					}
-					if (this.identityAuthenticationInfo.payeeName < 2 || this.identityAuthenticationInfo.payeeName > 10) {
-						this.$api.msg('收款人姓名输入错误')
-						return
-					}
-					if (!this.identityAuthenticationInfo.payeeNumberCard) {
-						this.$api.msg('收款人身份证号不能为空')
-						return
-					}
-					if (this.identityAuthenticationInfo.payeeNumberCard.length != 18) {
-						this.$api.msg('收款人身份证号输入错误')
-						return
-					}
-					if (!this.identityAuthenticationInfo.compAddress) {
-						this.$api.msg('联系地址不能为空')
-						return
-					}
-					if (this.identityAuthenticationInfo.compAddress.length < 2 || this.identityAuthenticationInfo
-						.compAddress.length > 20) {
-						this.$api.msg('联系地址输入错误')
-						return
-					}
+					// if (!this.identityAuthenticationInfo.payeeName) {
+					// 	this.$api.msg('收款人姓名不能为空')
+					// 	return
+					// }
+					// if (this.identityAuthenticationInfo.payeeName < 2 || this.identityAuthenticationInfo.payeeName > 10) {
+					// 	this.$api.msg('收款人姓名输入错误')
+					// 	return
+					// }
+					// if (!this.identityAuthenticationInfo.payeeNumberCard) {
+					// 	this.$api.msg('收款人身份证号不能为空')
+					// 	return
+					// }
+					// if (this.identityAuthenticationInfo.payeeNumberCard.length != 18) {
+					// 	this.$api.msg('收款人身份证号输入错误')
+					// 	return
+					// }
+					// if (!this.identityAuthenticationInfo.compAddress) {
+					// 	this.$api.msg('联系地址不能为空')
+					// 	return
+					// }
+					// if (this.identityAuthenticationInfo.compAddress.length < 2 || this.identityAuthenticationInfo
+					// 	.compAddress.length > 20) {
+					// 	this.$api.msg('联系地址输入错误')
+					// 	return
+					// }
 				} else if (this.identityAuthenticationInfo.customerTypeFlag == 2) {
-					if (!this.identityAuthenticationInfo.compAddress) {
-						this.$api.msg('公司地址不能为空')
-						return
-					}
-					if (this.identityAuthenticationInfo.compAddress.length < 2 || this.identityAuthenticationInfo
-						.compAddress.length > 20) {
-						this.$api.msg('公司地址输入错误')
-						return
-					}
+					// if (!this.identityAuthenticationInfo.compAddress) {
+					// 	this.$api.msg('公司地址不能为空')
+					// 	return
+					// }
+					// if (this.identityAuthenticationInfo.compAddress.length < 2 || this.identityAuthenticationInfo
+					// 	.compAddress.length > 20) {
+					// 	this.$api.msg('公司地址输入错误')
+					// 	return
+					// }
 				}
 				this.amendprice()
 
@@ -593,4 +594,7 @@
 	.upload {
 		margin: 20rpx 0;
 	}
+	.tit_red{
+		color: #E54D42;
+	}
 </style>

+ 20 - 16
pageD/identity/companyIdentityTwo.vue

@@ -13,6 +13,7 @@
 				:custom="uploadCustom1" ></upload>
 		</view>
 		<view class="c-row b-b">
+			<text class="tit_red">*</text>
 			<text class="tit">姓名</text>
 			<view class="con-list">
 				<input placeholder="请填写姓名" name="input" v-model="identityAuthenticationInfo.customerName"></input>
@@ -152,14 +153,14 @@
 			},
 			jumpUrl() {
 				this.identityAuthenticationInfo.cardAddressUrl = this.id.toString()
-				if (this.id[0] == '' || this.id[0] == null) {
-					this.$api.msg('请上传身份证正面')
-					return
-				}
-				if (this.id[1] == '' || this.id[1] == null) {
-					this.$api.msg('请上传身份证反面')
-					return
-				}
+				// if (this.id[0] == '' || this.id[0] == null) {
+				// 	this.$api.msg('请上传身份证正面')
+				// 	return
+				// }
+				// if (this.id[1] == '' || this.id[1] == null) {
+				// 	this.$api.msg('请上传身份证反面')
+				// 	return
+				// }
 				if (!this.identityAuthenticationInfo.customerName) {
 					this.$api.msg('姓名不能为空')
 					return
@@ -169,14 +170,14 @@
 					this.$api.msg('姓名输入错误')
 					return
 				}
-				if (!this.identityAuthenticationInfo.customerNumberCard) {
-					this.$api.msg('身份证号不能为空')
-					return
-				}
-				if (this.identityAuthenticationInfo.customerNumberCard.length != 18) {
-					this.$api.msg('身份证号输入错误')
-					return
-				}
+				// if (!this.identityAuthenticationInfo.customerNumberCard) {
+				// 	this.$api.msg('身份证号不能为空')
+				// 	return
+				// }
+				// if (this.identityAuthenticationInfo.customerNumberCard.length != 18) {
+				// 	this.$api.msg('身份证号输入错误')
+				// 	return
+				// }
 				var model = JSON.stringify(this.identityAuthenticationInfo);
 				uni.navigateTo({
 					url: `/pageD/identity/companyIdentityThree?identityAuthenticationInfo=` + model,
@@ -255,4 +256,7 @@
 	.upload {
 		margin: 20rpx 0;
 	}
+	.tit_red{
+		color: #E54D42;
+	}
 </style>