ccjgmwz 3 роки тому
батько
коміт
09c52d0b67

+ 1 - 0
config/index.js

@@ -1,6 +1,7 @@
 const dev = {
 	baseUrl: 'https://www.zthymaoyi.com',
 	baseUrlNew: 'http://api1.eliangeyun.com/',
+	// baseUrlNew: 'http://192.168.1.119:9100/',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false
 }

+ 35 - 12
pageD/identity/companyIdentity.vue

@@ -55,12 +55,21 @@
 					</view>
 				</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.customerNumberCard"></input>
 					</view>
 				</view>
+				<view class="c-row">
+					<text class="tit_red">*</text>
+					<text class="tit">联系地址</text>
+					<view class="con-list">
+						<input  placeholder="请填写联系地址" name="input"
+							v-model="identityAuthenticationInfo.compAddress"></input>
+					</view>
+				</view>
 				</view>
 				
 			</view>
@@ -238,6 +247,13 @@
 								.recPersonNo)
 						}
 					}
+					
+					if (res.data.data.recPersonAddr != null) {
+						if (res.data.data.recPersonAddr != "") {
+							that.$set(that.identityAuthenticationInfo, 'compAddress', res.data.data
+								.recPersonAddr)
+						}
+					}
 				}).catch(res => {
 					uni.showToast({
 						title: res.data.message,
@@ -268,6 +284,13 @@
 								.recPersonNo)
 						}
 					}
+					
+					if (res.data.data.recPersonAddr != null) {
+						if (res.data.data.recPersonAddr != "") {
+							that.$set(that.identityAuthenticationInfo, 'compAddress', res.data.data
+								.recPersonAddr)
+						}
+					}
 				}).catch(res => {
 					uni.showToast({
 						title: res.data.message,
@@ -318,10 +341,10 @@
 					})
 				} 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[0] == '' || this.id[0] == null) {
+						this.$api.msg('请上传身份证正面')
+						return
+					}
 					// if (this.id[1] == '' || this.id[1] == null) {
 					// 	this.$api.msg('请上传身份证反面')
 					// 	return
@@ -335,14 +358,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);

+ 56 - 56
pageD/identity/companyIdentityThree.vue

@@ -262,41 +262,41 @@
 			},
 			commit() {
 				var that = this
-				// if (this.bankid[0] == '' || this.bankid[0] == null) {
-				// 	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.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
@@ -310,31 +310,31 @@
 					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('公司地址不能为空')

+ 33 - 8
pageD/identity/companyIdentityTwo.vue

@@ -21,11 +21,20 @@
 			</view>
 		</view>
 		<view class="c-row">
+			<text class="tit_red">*</text>
 			<text class="tit">身份证号</text>
 			<view class="con-list">
 				<input  placeholder="请填写身份证号" name="input"
 					v-model="identityAuthenticationInfo.customerNumberCard"></input>
 			</view>
+		</view>
+		<view class="c-row">
+			<text class="tit_red">*</text>
+			<text class="tit">联系地址</text>
+			<view class="con-list">
+				<input  placeholder="请填写联系地址" name="input"
+					v-model="identityAuthenticationInfo.compAddress"></input>
+			</view>
 		</view>
 			</view>
 		<button class="btns btn" @click="jumpUrl">下一步</button>
@@ -111,6 +120,12 @@
 								.recPersonNo)
 						}
 					}
+					if (res.data.data.recPersonAddr != null) {
+						if (res.data.data.recPersonAddr != "") {
+							that.$set(that.identityAuthenticationInfo, 'compAddress', res.data.data
+								.recPersonAddr)
+						}
+					}
 				}).catch(res => {
 					uni.showToast({
 						title: res.data.message,
@@ -141,6 +156,12 @@
 						}
 
 					}
+					if (res.data.data.recPersonAddr != null) {
+						if (res.data.data.recPersonAddr != "") {
+							that.$set(that.identityAuthenticationInfo, 'compAddress', res.data.data
+								.recPersonAddr)
+						}
+					}
 				}).catch(res => {
 					uni.showToast({
 						title: res.data.message,
@@ -163,10 +184,10 @@
 			jumpUrl() {
 				
 				this.identityAuthenticationInfo.cardAddressUrl = this.id.toString()
-				// if (this.id[0] == '' || this.id[0] == 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
@@ -180,10 +201,14 @@
 					this.$api.msg('姓名输入错误')
 					return
 				}
-				// if (!this.identityAuthenticationInfo.customerNumberCard) {
-				// 	this.$api.msg('身份证号不能为空')
-				// 	return
-				// }
+				if (!this.identityAuthenticationInfo.customerNumberCard) {
+					this.$api.msg('身份证号不能为空')
+					return
+				}
+				if (!this.identityAuthenticationInfo.compAddress) {
+					this.$api.msg('联系地址不能为空')
+					return
+				}
 				// if (this.identityAuthenticationInfo.customerNumberCard.length != 18) {
 				// 	this.$api.msg('身份证号输入错误')
 				// 	return