浏览代码

修改粮商认证上传图片

wangchao 3 年之前
父节点
当前提交
f235823b3c
共有 3 个文件被更改,包括 281 次插入280 次删除
  1. 29 7
      components/upload.vue
  2. 113 149
      pageD/identity/companyIdentity.vue
  3. 139 124
      pageD/identity/companyIdentityThree.vue

+ 29 - 7
components/upload.vue

@@ -17,10 +17,10 @@
 				:src="item.url || item.path" :mode="imageMode"></image>
 				:src="item.url || item.path" :mode="imageMode"></image>
 		</view>
 		</view>
 		<slot name="file" :file="lists"></slot>
 		<slot name="file" :file="lists"></slot>
-		<view style="display: inline-block;" :class="{'customStyle':custom}" @tap="selectFile"
-			v-if="maxCount > lists.length">
+		<view style="display: inline-block;" :class="custom&&options.bgc==''?'customStyle':'customStyleBgc'"
+			@tap="selectFile" v-if="maxCount > lists.length">
 			<slot name="addBtn"></slot>
 			<slot name="addBtn"></slot>
-			<img v-if="custom" :src="options.bgc" alt="" class="imgstyle">
+			<img v-if="custom&&options.bgc!=''" :src="options.bgc" alt="" class="imgstyle">
 			<view class="u-list-item u-add-wrap" hover-class="u-add-wrap__hover" hover-stay-time="150" :style="{
 			<view class="u-list-item u-add-wrap" hover-class="u-add-wrap__hover" hover-stay-time="150" :style="{
 					width: width + 'rpx',
 					width: width + 'rpx',
 					height: width + 'rpx'
 					height: width + 'rpx'
@@ -665,12 +665,33 @@
 	// 	width: 100% !important;
 	// 	width: 100% !important;
 	// 	height: 100% !important;
 	// 	height: 100% !important;
 	// }
 	// }
+	.customStyleBgc {
+		width: 100% !important;
+		height: 440rpx !important;
+		display: flex !important;
+		justify-content: center;
+		align-items: center;
+		position: relative;
+
+		.u-add-wrap {
+			width: 100% !important;
+			height: 100% !important;
+			background: transparent;
+		}
+
+		.u-add-tips {
+			font-size: 18px;
+			font-weight: 600;
+			color: #617E8B;
+		}
+	}
+
 	.customStyle {
 	.customStyle {
 		width: 100% !important;
 		width: 100% !important;
 		height: 440rpx !important;
 		height: 440rpx !important;
-		// background: #F5F6FA;
-		// border-radius: 20rpx;
-		// border: 2px dashed #C6CBCE;
+		background: #F5F6FA;
+		border-radius: 20rpx;
+		border: 2px dashed #C6CBCE;
 		display: flex !important;
 		display: flex !important;
 		justify-content: center;
 		justify-content: center;
 		align-items: center;
 		align-items: center;
@@ -693,7 +714,8 @@
 		width: 100% !important;
 		width: 100% !important;
 		height: 440rpx !important;
 		height: 440rpx !important;
 	}
 	}
-	.imgstyle{
+
+	.imgstyle {
 		width: 100% !important;
 		width: 100% !important;
 		height: 440rpx !important;
 		height: 440rpx !important;
 		position: absolute;
 		position: absolute;

+ 113 - 149
pageD/identity/companyIdentity.vue

@@ -1,39 +1,16 @@
 <template>
 <template>
 	<view class="center">
 	<view class="center">
-		<view>
+		<view class="top">
 			<text @click='consent' v-bind:class="switchs1">公司</text>
 			<text @click='consent' v-bind:class="switchs1">公司</text>
 			<text @click='consent' v-bind:class="switchs2">个人</text>
 			<text @click='consent' v-bind:class="switchs2">个人</text>
 		</view>
 		</view>
 		<view v-if="consentStatus == true">
 		<view v-if="consentStatus == true">
-			<view>
-				<upload
-					class="upload"
-					ref="upload"
-					:action="action"
-					:max-size="maxSize"
-					:max-count="1"
-					:size-type="['compressed']"
-					@on-success="getImgUrl"
-					@on-error="onError"
-					@on-remove="onRemove"
-					@on-uploaded="isAdd = true"
-					:before-upload="filterFileType"
-					:options="uploadOptions"
-					:custom="uploadCustom"
-					@on-progress="onProgress"
-				></upload>
-				
-				<view style="margin: 0 auto;height: 240px;" v-if="license1 != ''" @click="license">
-					<image v-bind:src="license1" class="picture"></image>
-					<view class="floats" v-if="certificates == true">
-						<image src="../../static/img/authentication/xiangji@3x.png" style="width: 60px;height: 50px;">
-						</image>
-						<view class="words">
-							上传营业执照
-						</view>
-					</view>
-				</view>
-
+			<!-- 公司营业执照上传 -->
+			<view v-if="license1 != ''">
+				<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
+					:size-type="['compressed']" @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
+					@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions"
+					:custom="uploadCustom" @on-progress="onProgress"></upload>
 			</view>
 			</view>
 			<view class="c-row b-b">
 			<view class="c-row b-b">
 				<text class="tit">公司名称</text>
 				<text class="tit">公司名称</text>
@@ -51,12 +28,16 @@
 		</view>
 		</view>
 		<view v-else>
 		<view v-else>
 			<view>
 			<view>
-				<view style="margin: 0 auto;" @click="idUp">
-					<image v-bind:src="id1" class="picture"></image>
-				</view>
-				<view style="margin: 0 auto;" @click="idLow">
-					<image v-bind:src="id2" class="picture"></image>
-				</view>
+				<!-- 个人身份证正面 -->
+				<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
+					:size-type="['compressed']" @on-success="getImgUrl1" @on-error="onError" @on-remove="onRemove"
+					@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions1"
+					:custom="uploadCustom1" @on-progress="onProgress"></upload>
+				<!-- 个人身份证反面 -->
+				<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
+					:size-type="['compressed']" @on-success="getImgUrl2" @on-error="onError" @on-remove="onRemove"
+					@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions2"
+					:custom="uploadCustom1" @on-progress="onProgress"></upload>
 			</view>
 			</view>
 			<view class="c-row b-b">
 			<view class="c-row b-b">
 				<text class="tit">姓名</text>
 				<text class="tit">姓名</text>
@@ -84,19 +65,30 @@
 		mapState
 		mapState
 	} from 'vuex';
 	} from 'vuex';
 	export default {
 	export default {
-		components:{upload},
+		components: {
+			upload
+		},
 		name: "buy",
 		name: "buy",
 		data() {
 		data() {
 			return {
 			return {
 				action: this.$uploadUrl,
 				action: this.$uploadUrl,
-				maxSize: 20 * 1024 * 1024, //限制文件大小 2M
+				maxSize: 5 * 1024 * 1024, //限制文件大小 2M
 				btnLoading: false, //防止重复点击
 				btnLoading: false, //防止重复点击
 				isAdd: true,
 				isAdd: true,
-				imgUrls:[],
-				uploadCustom:true,
-				uploadOptions:{
-					"text":"上传营业执照",
-					"bgc":"../../static/img/authentication/business@3x.png"
+				imgUrls: [],
+				uploadCustom: true,
+				uploadCustom1: true,
+				uploadOptions: {
+					"text": "上传营业执照",
+					"bgc": ""
+				},
+				uploadOptions1: {
+					"text": "上传身份证头像页",
+					"bgc": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/identityup%282%29.png"
+				},
+				uploadOptions2: {
+					"text": "上传身份证国徽页",
+					"bgc": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/identitylow%282%29.png"
 				},
 				},
 				tupian: "",
 				tupian: "",
 				inputContent: null,
 				inputContent: null,
@@ -122,7 +114,6 @@
 				businessLicenseAddressUrl: "",
 				businessLicenseAddressUrl: "",
 				certificates: true,
 				certificates: true,
 			};
 			};
-
 		},
 		},
 		computed: {
 		computed: {
 			...mapState(['hasLogin', 'userInfo'])
 			...mapState(['hasLogin', 'userInfo'])
@@ -140,27 +131,93 @@
 					this.isAdd = false;
 					this.isAdd = false;
 				}
 				}
 			},
 			},
+			// 营业执照上传
 			getImgUrl(res) {
 			getImgUrl(res) {
 				console.log(res)
 				console.log(res)
+				console.log('------------res-----------')
 				this.imgUrls.push(res);
 				this.imgUrls.push(res);
+				this.identityAuthenticationInfo.businessLicenseAddressUrl = res
 			},
 			},
-			onError(error){
+			// 身份证正面
+			getImgUrl1(res) {
+				console.log(res)
+				let that = this
+				that.id[0] = res
+				that.id1 = res
+				that.identityImgs1.personImg = res
+				that.$api.doRequest('get', '/driverViewInfo/personShibie', that
+					.identityImgs1).then(res => {
+					if (res.data.data.recPerson != null) {
+						if (res.data.data.recPerson != "") {
+							that.$set(that.identityAuthenticationInfo,
+								'customerName', res.data.data.recPerson)
+						}
+					}
+					if (res.data.data.recPersonNo != null) {
+						if (res.data.data.recPersonNo != "") {
+							that.$set(that.identityAuthenticationInfo,
+								'customerNumberCard', res.data.data
+								.recPersonNo)
+						}
+					}
+				}).catch(res => {
+					uni.showToast({
+						title: res.data.message,
+						icon: 'none',
+						duration: 2000
+					})
+				})
+			},
+			// 身份证反面
+			getImgUrl2(res) {
+				console.log(res)
+				let that = this
+				that.id[1] = res
+				that.id2 = res
+				that.identityImgs1.personImg = res
+				that.$api.doRequest('get', '/driverViewInfo/personShibie', that
+					.identityImgs1).then(res => {
+					if (res.data.data.recPerson != null) {
+						if (res.data.data.recPerson != "") {
+							that.$set(that.identityAuthenticationInfo,
+								'customerName', res.data.data.recPerson)
+						}
+					}
+					if (res.data.data.recPersonNo != null) {
+						if (res.data.data.recPersonNo != "") {
+							that.$set(that.identityAuthenticationInfo,
+								'customerNumberCard', res.data.data
+								.recPersonNo)
+						}
+					}
+				}).catch(res => {
+					uni.showToast({
+						title: res.data.message,
+						icon: 'none',
+						duration: 2000
+					})
+				})
+			},
+			onError(error) {
+				alert(error)
+				console.log('------------error-----------')
 				console.log(error)
 				console.log(error)
 			},
 			},
-			onProgress(e){
-				console.log('-----------------------')
+			onProgress(e) {
 				console.log(e)
 				console.log(e)
 			},
 			},
 			onRemove(index) {
 			onRemove(index) {
 				this.imgUrls.splice(index, 1);
 				this.imgUrls.splice(index, 1);
 			},
 			},
 			jumpUrl() {
 			jumpUrl() {
+				debugger
 				if (this.consentStatus) {
 				if (this.consentStatus) {
 					if (!this.identityAuthenticationInfo.compName) {
 					if (!this.identityAuthenticationInfo.compName) {
 						this.$api.msg('公司名称不能为空')
 						this.$api.msg('公司名称不能为空')
 						return
 						return
 					}
 					}
-					if (this.identityAuthenticationInfo.compName.length < 2 || this.identityAuthenticationInfo.compName.length > 25) {
+					if (this.identityAuthenticationInfo.compName.length < 2 || this.identityAuthenticationInfo.compName
+						.length > 25) {
 						this.$api.msg('公司名称输入错误')
 						this.$api.msg('公司名称输入错误')
 						return
 						return
 					}
 					}
@@ -168,7 +225,8 @@
 						this.$api.msg('纳税人识别号不能为空')
 						this.$api.msg('纳税人识别号不能为空')
 						return
 						return
 					}
 					}
-					if (this.identityAuthenticationInfo.payTaxesCard.length < 15 || this.identityAuthenticationInfo.payTaxesCard.length > 20) {
+					if (this.identityAuthenticationInfo.payTaxesCard.length < 15 || this.identityAuthenticationInfo
+						.payTaxesCard.length > 20) {
 						this.$api.msg('纳税人识别号输入错误')
 						this.$api.msg('纳税人识别号输入错误')
 						return
 						return
 					}
 					}
@@ -197,7 +255,8 @@
 						this.$api.msg('姓名不能为空')
 						this.$api.msg('姓名不能为空')
 						return
 						return
 					}
 					}
-					if (this.identityAuthenticationInfo.customerName.length < 2 || this.identityAuthenticationInfo.customerName.length > 10) {
+					if (this.identityAuthenticationInfo.customerName.length < 2 || this.identityAuthenticationInfo
+						.customerName.length > 10) {
 						this.$api.msg('姓名输入错误')
 						this.$api.msg('姓名输入错误')
 						return
 						return
 					}
 					}
@@ -230,105 +289,6 @@
 					this.switchs2 = "switchs1"
 					this.switchs2 = "switchs1"
 				}
 				}
 			},
 			},
-
-			license() {
-				var that = this
-				uni.chooseImage({
-					count:1,
-					success: function(res) {
-						uni.uploadFile({
-							url: 'https://www.zthymaoyi.com/upload/admin',
-							filePath: res.tempFilePaths[0],
-							name: 'file',
-							success(res) {
-								var data = res.data
-								var strToObj = JSON.parse(data)
-								that.identityAuthenticationInfo.businessLicenseAddressUrl = strToObj.url
-								that.license1 = strToObj.url
-								that.certificates = false
-							}
-						})
-					}
-				})
-			},
-			idUp(){
-				var that = this
-				uni.chooseImage({
-					count:1,
-					success: function(res) {
-						uni.uploadFile({
-							url: 'https://www.zthymaoyi.com/upload/admin',
-							filePath: res.tempFilePaths[0],
-							name: 'file',
-							success(res) {
-								var data = res.data
-								var strToObj = JSON.parse(data)			
-								that.id[0] = strToObj.url
-								that.id1 = strToObj.url
-								that.identityImgs1.personImg = strToObj.url
-								that.$api.doRequest('get', '/driverViewInfo/personShibie', that.identityImgs1).then(res => {
-									if(res.data.data.recPerson != null){
-										if(res.data.data.recPerson != ""){
-										that.$set(that.identityAuthenticationInfo,'customerName',res.data.data.recPerson)
-										}
-									}
-									if(res.data.data.recPersonNo != null){
-										if(res.data.data.recPersonNo != ""){
-										that.$set(that.identityAuthenticationInfo,'customerNumberCard',res.data.data.recPersonNo)
-										}
-									}			
-								}).catch(res => {
-									uni.showToast({
-										title: res.data.message,
-										icon: 'none',
-										duration: 2000
-									})
-								})
-							}
-						})
-					}
-				})
-			},
-			idLow(){
-				var that = this
-				uni.chooseImage({
-					count:1,
-					success: function(res) {
-						uni.uploadFile({
-							url: 'https://www.zthymaoyi.com/upload/admin',
-							filePath: res.tempFilePaths[0],
-							name: 'file',
-							success(res) {
-								var data = res.data
-								var strToObj = JSON.parse(data)			
-								that.id[1] = strToObj.url
-								that.id2 = strToObj.url
-								that.identityImgs1.personImg = strToObj.url
-								that.$api.doRequest('get', '/driverViewInfo/personShibie', that.identityImgs1).then(res => {
-									if(res.data.data.recPerson != null){
-										if(res.data.data.recPerson != ""){
-										that.$set(that.identityAuthenticationInfo,'customerName',res.data.data.recPerson)
-										}
-									}
-									if(res.data.data.recPersonNo != null){
-										if(res.data.data.recPersonNo != ""){
-										that.$set(that.identityAuthenticationInfo,'customerNumberCard',res.data.data.recPersonNo)
-										}
-									}
-									
-									
-								}).catch(res => {
-									uni.showToast({
-										title: res.data.message,
-										icon: 'none',
-										duration: 2000
-									})
-								})
-							}
-						})
-					}
-				})
-			},
 			phoneinput(e) {
 			phoneinput(e) {
 				if (e.detail.value.length == 11) {
 				if (e.detail.value.length == 11) {
 					this.codestatus = true
 					this.codestatus = true
@@ -432,4 +392,8 @@
 		top: -150px;
 		top: -150px;
 		text-align: center;
 		text-align: center;
 	}
 	}
+
+	.upload {
+		margin: 20rpx 0;
+	}
 </style>
 </style>

+ 139 - 124
pageD/identity/companyIdentityThree.vue

@@ -1,27 +1,16 @@
 <template>
 <template>
 	<view class="center">
 	<view class="center">
 		<view>
 		<view>
-
-			<view style="margin: 0 auto;height: 240px;" v-if="bank1 != ''" @click="bankUp()">
-				<image v-bind:src="bank1" class="picture"></image>
-				<view class="floats" v-if="certificates == true">
-					<image src="../../static/img/authentication/xiangji@3x.png" style="width: 60px;height: 50px;">
-					</image>
-					<view class="words">
-						上传银行卡正面
-					</view>
-				</view>
-			</view>
-			<view style="margin: 0 auto;height: 240px;" v-if="bank2 != ''" @click="bankLow()">
-				<image v-bind:src="bank2" class="picture"></image>
-				<view class="floats" v-if="certificatesTwo == true">
-					<image src="../../static/img/authentication/xiangji@3x.png" style="width: 60px;height: 50px;">
-					</image>
-					<view class="words">
-						上传银行卡反面
-					</view>
-				</view>
-			</view>
+			<!-- 上传银行卡正面 -->
+			<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
+				:size-type="['compressed']" @on-success="getImgUrl" @on-error="onError" @on-remove="onRemove"
+				@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions"
+				:custom="uploadCustom" @on-progress="onProgress"></upload>
+			<!-- 上传银行卡反面 -->
+			<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
+				:size-type="['compressed']" @on-success="getImgUrl1" @on-error="onError" @on-remove="onRemove"
+				@on-uploaded="isAdd = true" :before-upload="filterFileType" :options="uploadOptions1"
+				:custom="uploadCustom" @on-progress="onProgress"></upload>
 		</view>
 		</view>
 		<view class="c-row b-b">
 		<view class="c-row b-b">
 			<text class="tit">银行卡号</text>
 			<text class="tit">银行卡号</text>
@@ -66,12 +55,13 @@
 		<view class="c-row b-b">
 		<view class="c-row b-b">
 			<text class="tit">手机号</text>
 			<text class="tit">手机号</text>
 			<view class="con-list">
 			<view class="con-list">
-				<input placeholder="请填写手机号" @input='phoneinput' type="number" maxlength="11" v-model="identityAuthenticationInfo.customerPhone"></input>
+				<input placeholder="请填写手机号" @input='phoneinput' type="number" maxlength="11"
+					v-model="identityAuthenticationInfo.customerPhone"></input>
 			</view>
 			</view>
 		</view>
 		</view>
 		<view style='width:100%;border-bottom:1px solid #E8E9ED;padding:10px;' class="flex">
 		<view style='width:100%;border-bottom:1px solid #E8E9ED;padding:10px;' class="flex">
 			<button :class='codestatus&&!sendDisabled?"active":""' @click='obtain' class='getcode'>{{sendText}}</button>
 			<button :class='codestatus&&!sendDisabled?"active":""' @click='obtain' class='getcode'>{{sendText}}</button>
-			<view  class="con-list" style='position:relative;'>
+			<view class="con-list" style='position:relative;'>
 				<input style='text-align:right;' v-model='verifyCode' placeholder="请输入验证码" type="number" maxlength="6">
 				<input style='text-align:right;' v-model='verifyCode' placeholder="请输入验证码" type="number" maxlength="6">
 			</view>
 			</view>
 		</view>
 		</view>
@@ -92,15 +82,34 @@
 </template>
 </template>
 
 
 <script>
 <script>
+	import upload from '@/components/upload.vue';
 	import {
 	import {
 		mapState
 		mapState
 	} from 'vuex';
 	} from 'vuex';
 	export default {
 	export default {
+		components: {
+			upload
+		},
 		name: "buy",
 		name: "buy",
 		data() {
 		data() {
 			return {
 			return {
-				bank1: "../../static/img/authentication/bankup(3).png",
-				bank2: "../../static/img/authentication/banklow(3).png",
+				action: this.$uploadUrl,
+				maxSize: 5 * 1024 * 1024, //限制文件大小 2M
+				btnLoading: false, //防止重复点击
+				isAdd: true,
+				imgUrls: [],
+				uploadCustom: true,
+				uploadCustom1: true,
+				uploadOptions: {
+					"text": "上传银行卡正面",
+					"bgc": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/bankup%282%29.png"
+				},
+				uploadOptions1: {
+					"text": "上传银行卡反面",
+					"bgc": "https://taohaoliang.oss-cn-beijing.aliyuncs.com/app/tmp/banklow%282%29.png"
+				},
+				// bank1: "../../static/img/authentication/bankup(3).png",
+				// bank2: "../../static/img/authentication/banklow(3).png",
 				bankid: [],
 				bankid: [],
 				consentStatus: true,
 				consentStatus: true,
 				consentStatus1: false,
 				consentStatus1: false,
@@ -118,7 +127,7 @@
 				certificatesTwo: true,
 				certificatesTwo: true,
 				zhihangStatus: true,
 				zhihangStatus: true,
 				verification: true,
 				verification: true,
-				identityAuthenticationInfos:{},
+				identityAuthenticationInfos: {},
 			}
 			}
 		},
 		},
 		computed: {
 		computed: {
@@ -132,99 +141,100 @@
 			}
 			}
 		},
 		},
 		methods: {
 		methods: {
-			obtain() {
-				if (this.sendText == "获取验证码"){
-					this.getcode()
+			filterFileType(index, lists) {
+				if (lists[index].fileType != 'jpg' && lists[index].fileType != 'png' && lists[index].fileType != 'gif') {
+					lists.splice(index, 1);
+					// 当前文件不支持
+					uni.showModal({
+						title: '暂不支持当前图片类型',
+						showCancel: false
+					});
+				} else {
+					this.isAdd = false;
 				}
 				}
 			},
 			},
-			bankUp() {
-				var that = this
-				uni.chooseImage({
-					success: function(res) {
-						uni.uploadFile({
-							url: 'https://www.zthymaoyi.com/upload/admin',
-							filePath: res.tempFilePaths[0],
-							name: 'file',
-							success(res) {
-								var data = res.data
-								var strToObj = JSON.parse(data)
-								that.bankid[0] = strToObj.url
-								that.bank1 = strToObj.url
-								that.certificates = false
-								that.bankImgs1.bankImg = strToObj.url
-								that.$api.doRequest('get', '/driverViewInfo/bankShibie', that
-									.bankImgs1).then(res => {
-									if (res.data.data.bankNo != null) {
-										if (res.data.data.bankNo != "") {
-											that.$set(that.identityAuthenticationInfo,
-												'bankCard', res.data.data.bankNo)
-										}
-									}
-									if (res.data.data.bankName != null) {
-										if (res.data.data.bankName != "") {
-											that.$set(that.identityAuthenticationInfo,
-												'bankDeposit', res.data.data.bankName)
-										}
-									}
-									if (res.data.data.bankNameZhihang.length != 0) {
-										that.bankType = res.data.data.bankNameZhihang
-									}
-								}).catch(res => {
-									uni.showToast({
-										title: res.data.message,
-										icon: 'none',
-										duration: 2000
-									})
-								})
-							}
-						})
+			getImgUrl(res) {
+				console.log(res)
+				console.log('------------res-----------')
+				let that = this
+				that.bankid[0] = res
+				that.bank1 = res
+				that.certificates = false
+				that.bankImgs1.bankImg = res
+				that.$api.doRequest('get', '/driverViewInfo/bankShibie', that
+					.bankImgs1).then(res => {
+					if (res.data.data.bankNo != null) {
+						if (res.data.data.bankNo != "") {
+							that.$set(that.identityAuthenticationInfo,
+								'bankCard', res.data.data.bankNo)
+						}
+					}
+					if (res.data.data.bankName != null) {
+						if (res.data.data.bankName != "") {
+							that.$set(that.identityAuthenticationInfo,
+								'bankDeposit', res.data.data.bankName)
+						}
+					}
+					if (res.data.data.bankNameZhihang.length != 0) {
+						that.bankType = res.data.data.bankNameZhihang
 					}
 					}
+				}).catch(res => {
+					uni.showToast({
+						title: res.data.message,
+						icon: 'none',
+						duration: 2000
+					})
 				})
 				})
 			},
 			},
-			bankLow() {
-				var that = this
-				uni.chooseImage({
-					success: function(res) {
-						uni.uploadFile({
-							url: 'https://www.zthymaoyi.com/upload/admin',
-							filePath: res.tempFilePaths[0],
-							name: 'file',
-							success(res) {
-								var data = res.data
-								var strToObj = JSON.parse(data)
-								that.bankid[1] = strToObj.url
-								that.bank2 = strToObj.url
-								that.certificatesTwo = false
-								that.bankImgs1.bankImg = strToObj.url
-								that.$api.doRequest('get', '/driverViewInfo/bankShibie', that
-									.bankImgs1).then(res => {
-									if (res.data.data.bankNo != null) {
-										if (res.data.data.bankNo != "") {
-											that.$set(that.identityAuthenticationInfo,
-												'bankCard', res.data.data.bankNo)
-										}
-									}
-									if (res.data.data.bankName != null) {
-										if (res.data.data.bankName != "") {
-											that.$set(that.identityAuthenticationInfo,
-												'bankDeposit', res.data.data.bankName)
-										}
-									}
-									if (res.data.data.bankNameZhihang != null) {
-										that.bankType = res.data.data.bankNameZhihang
-									}
-								}).catch(res => {
-									uni.showToast({
-										title: res.data.message,
-										icon: 'none',
-										duration: 2000
-									})
-								})
-
-							}
-						})
+			getImgUrl1(res) {
+				console.log(res)
+				console.log('------------res-----------')
+				let that = this
+				that.bankid[1] = res
+				that.bank2 = res
+				that.certificatesTwo = false
+				that.bankImgs1.bankImg = res
+				that.$api.doRequest('get', '/driverViewInfo/bankShibie', that
+					.bankImgs1).then(res => {
+					if (res.data.data.bankNo != null) {
+						if (res.data.data.bankNo != "") {
+							that.$set(that.identityAuthenticationInfo,
+								'bankCard', res.data.data.bankNo)
+						}
 					}
 					}
+					if (res.data.data.bankName != null) {
+						if (res.data.data.bankName != "") {
+							that.$set(that.identityAuthenticationInfo,
+								'bankDeposit', res.data.data.bankName)
+						}
+					}
+					if (res.data.data.bankNameZhihang != null) {
+						that.bankType = res.data.data.bankNameZhihang
+					}
+				}).catch(res => {
+					uni.showToast({
+						title: res.data.message,
+						icon: 'none',
+						duration: 2000
+					})
 				})
 				})
+
+			},
+			onError(error) {
+				alert(error)
+				console.log('------------error-----------')
+				console.log(error)
+			},
+			onProgress(e) {
+				console.log(e)
+			},
+			onRemove(index) {
+				this.imgUrls.splice(index, 1);
+			},
+			obtain() {
+				if (this.sendText == "获取验证码") {
+					this.getcode()
+				}
 			},
 			},
 			bankChange(e) {
 			bankChange(e) {
 				this.bankIndex = e.detail.value
 				this.bankIndex = e.detail.value
@@ -337,10 +347,9 @@
 						verifyCode: this.verifyCode
 						verifyCode: this.verifyCode
 					}).then(res => {
 					}).then(res => {
 						if (res.data.code == 200) {
 						if (res.data.code == 200) {
-							if(that.userInfo){
+							if (that.userInfo) {
 								that.identityAuthenticationInfo.commonId = that.userInfo.id
 								that.identityAuthenticationInfo.commonId = that.userInfo.id
-							}
-							else{
+							} else {
 								that.identityAuthenticationInfo.commonId = res.data.data.id
 								that.identityAuthenticationInfo.commonId = res.data.data.id
 							}
 							}
 							that.identityAuthenticationInfo.payeeAddressUrl = that.bankid.toString()
 							that.identityAuthenticationInfo.payeeAddressUrl = that.bankid.toString()
@@ -351,7 +360,8 @@
 								confirmText: '确定',
 								confirmText: '确定',
 								success: function(res) {
 								success: function(res) {
 									if (res.confirm) {
 									if (res.confirm) {
-										that.identityAuthenticationInfos.customerPhone = that.identityAuthenticationInfo.customerPhone
+										that.identityAuthenticationInfos.customerPhone = that
+											.identityAuthenticationInfo.customerPhone
 										that.$api.doRequest('get',
 										that.$api.doRequest('get',
 												'/identityAuthenticationInfo/selectPhone', that
 												'/identityAuthenticationInfo/selectPhone', that
 												.identityAuthenticationInfos)
 												.identityAuthenticationInfos)
@@ -363,20 +373,25 @@
 														success: function(res) {
 														success: function(res) {
 															if (res.confirm) {
 															if (res.confirm) {
 																that.$api.doRequest('post',
 																that.$api.doRequest('post',
-																		'/identityAuthenticationInfo/api/addIdentityAuthenticationInfo',that.identityAuthenticationInfo)
+																		'/identityAuthenticationInfo/api/addIdentityAuthenticationInfo',
+																		that
+																		.identityAuthenticationInfo
+																		)
 																	.then(res => {
 																	.then(res => {
-																		if (res.data.code == 200) {
+																		if (res.data
+																			.code ==
+																			200) {
 																			uni.showToast({
 																			uni.showToast({
 																				title: '提交成功',
 																				title: '提交成功',
 																				icon: 'none',
 																				icon: 'none',
 																				duration: 2000
 																				duration: 2000
 																			})
 																			})
 																			uni.navigateBack({
 																			uni.navigateBack({
-																				delta:3
+																				delta: 3
 																			})
 																			})
 																		}
 																		}
 																	})
 																	})
-															} 
+															}
 														}
 														}
 													});
 													});
 												} else if (res.data.code == 200) {
 												} else if (res.data.code == 200) {
@@ -391,7 +406,7 @@
 																	duration: 2000
 																	duration: 2000
 																})
 																})
 																uni.navigateBack({
 																uni.navigateBack({
-																	delta:3
+																	delta: 3
 																})
 																})
 															}
 															}
 														})
 														})
@@ -490,7 +505,7 @@
 		align-items: center;
 		align-items: center;
 		padding: 20rpx 30rpx;
 		padding: 20rpx 30rpx;
 		position: relative;
 		position: relative;
-		font-size:14px;
+		font-size: 14px;
 	}
 	}
 
 
 	.con-list {
 	.con-list {
@@ -538,8 +553,8 @@
 	}
 	}
 
 
 	.getcode.active {
 	.getcode.active {
-		background:#22C572;
-		color:#fff;
+		background: #22C572;
+		color: #fff;
 	}
 	}
 
 
 	.words {
 	.words {