فهرست منبع

前端小程序 认证完成sdy

zhongtianhaoyuan 3 سال پیش
والد
کامیت
2b8bfda1cf

+ 1 - 2
pageD/identity/companyIdentity.vue

@@ -26,8 +26,7 @@
 			<view class="c-row b-b">
 				<text class="tit">纳税人识别号</text>
 				<view class="con-list">
-					<input placeholder="请填写纳税人识别号" name="input"
-						v-model="identityAuthenticationInfo.payTaxesCard"></input>
+					<input placeholder="请填写纳税人识别号" name="input"v-model="identityAuthenticationInfo.payTaxesCard"></input>
 				</view>
 			</view>
 			<view>

+ 416 - 0
pageD/identity/companyIdentityEdit.vue

@@ -0,0 +1,416 @@
+<template>
+	<view class="center">
+		<view>
+			<image @click='consent' style='width:14px;height:14px;position:relative;top:2px;margin-right:5px;' :src="consentStatus==true?'../../static/img/login/select@2x.png':'../../static/img/login/selected2.png'" alt=""></image>
+			<text>公司</text>
+			<image @click='consent' style='width:14px;height:14px;position:relative;top:2px;margin-right:5px;' :src="consentStatus1==true?'../../static/img/login/select@2x.png':'../../static/img/login/selected2.png'" alt=""></image>
+			<text>个人</text>
+
+		</view>
+		<view v-if="consentStatus == true">
+			<view>
+				<button type="default" @click="license">营业执照</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="license1 != ''">
+					<image v-bind:src = "license1" style="width: 100px;height: 100px;"></image>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">公司名称</text>
+				<view class="con-list">
+					<input placeholder="请填写公司名称" name="input" v-model="deptList.compName"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">纳税人识别号</text>
+				<view class="con-list">
+				<input placeholder="请填写纳税人识别号" name="input" v-model="deptList.payTaxesCard"></input>
+				</view>
+			</view>
+			<view>
+				<button type="default" @click="idUp">身份证正面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="idup != ''">
+					<image v-bind:src = "idup" style="width: 100px;height: 100px;"></image>
+				</view>
+				<button type="default"  @click="idLow">身份证反面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="idlow != ''">
+					<image v-bind:src = "idlow" style="width: 100px;height: 100px;"></image>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">姓名</text>
+				<view class="con-list">
+					<input placeholder="请填写姓名" name="input" v-model="deptList.customerName"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">身份证号</text>
+				<view class="con-list">
+					<input placeholder="请填写身份证号" name="input"
+						v-model="deptList.customerNumberCard"></input>
+				</view>
+			</view>
+			<view>
+				<button type="default"  @click="bankUp()">银行卡正面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="bank1 != ''">
+					<image v-bind:src = "bank1" style="width: 100px;height: 100px;"></image>
+				</view>
+				<button type="default" @click="bankLow()">银行卡反面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="bank2 != ''">
+					<image v-bind:src = "bank2" style="width: 100px;height: 100px;"></image>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">银行卡号</text>
+				<view class="con-list">
+					<input placeholder="请填写银行卡号" name="input" v-model="deptList.bankCard"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">开户行</text>
+				<view class="con-list">
+				<input placeholder="请填写开户行" name="input" v-model="deptList.bankDeposit"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">开户支行</text>
+				<view class="con-list">
+				<input placeholder="请填写开户支行" name="input"
+					v-model="deptList.bankDepositBranch"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">手机号</text>
+				<view class="con-list">
+						<input placeholder="请填写手机号" @input='phoneinput' v-model="deptList.customerPhone"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">公司地址</text>
+				<view class="con-list">
+					<input placeholder="请填写公司地址" name="input" v-model="deptList.compAddress"></input>
+				</view>
+			</view>
+		</view>
+		<view v-else>
+			<view>
+				<button type="default" @click="idUp">上传身份证正面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="idup != ''">
+					<image v-bind:src = "idup" style="width: 100px;height: 100px;"></image>
+				</view>
+				<button type="default" @click="idLow">上传身份证反面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="idlow != ''">
+					<image v-bind:src = "idlow" style="width: 100px;height: 100px;"></image>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">姓名</text>
+				<view class="con-list">
+					<input placeholder="请填写姓名" name="input" v-model="deptList.customerName"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">身份证号</text>
+				<view class="con-list">
+					<input placeholder="请填写身份证号" name="input"
+						v-model="deptList.customerNumberCard"></input>
+				</view>
+			</view>
+			<view>
+				<button type="default" @click="bankUp()">上传银行卡正面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="bank1 != ''">
+					<image v-bind:src = "bank1" style="width: 100px;height: 100px;"></image>
+				</view>
+				<button type="default" @click="bankLow()">上传银行卡反面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="bank2 != ''">
+					<image v-bind:src = "bank2" style="width: 100px;height: 100px;"></image>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">银行卡号</text>
+				<view class="con-list">
+					<input placeholder="请填写银行卡号" name="input" v-model="deptList.bankCard"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">开户行</text>
+				<view class="con-list">
+					<input placeholder="请填写开户行" name="input" v-model="deptList.bankDeposit"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">开户支行</text>
+				<view class="con-list">
+					<input placeholder="请填写开户支行" name="input"
+						v-model="deptList.bankDepositBranch"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">收款人姓名</text>
+				<view class="con-list">
+					<input placeholder="请填写收款人姓名" name="input" v-model="deptList.payeeName"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">收款人身份证号</text>
+				<view class="con-list">
+					<input placeholder="请填写收款身份证号" name="input"
+						v-model="deptList.payeeNumberCard"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">手机号</text>
+				<view class="con-list">
+				<input placeholder="请填写手机号" @input='phoneinput' v-model="deptList.customerPhone"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">联系地址</text>
+				<view class="con-list">
+					<input placeholder="请填写联系地址" name="input" v-model="deptList.compAddress"></input>
+				</view>
+			</view>
+		
+		</view>
+		<view class="padding flex flex-direction">
+			<button class="cu-btn bg-red margin-tb-sm lg" @click="commitEdit">修改</button>
+		</view>
+	</view>
+</template>
+
+<script>
+	import {
+	    mapState 
+	} from 'vuex';
+	export default {
+		name: "buy",
+		data() {
+			return {
+				radios: 2,
+				deptList:{
+					compName:"",
+					payTaxesCard:"",
+				},
+				consentStatus:true,
+				consentStatus1:false,
+				parameter:{},
+				businessman:{},
+				id:[],
+				idup:"",
+				idlow:"",
+				license1:"",
+				bank1:"",
+				bank2:"",
+				bankid:[],
+				payeeAddress:[],
+				commitEdits:{}
+			};
+		},
+		onLoad(option) {
+			this.parameter.id = option.id,
+			this.getList()
+		},
+		computed: {
+			...mapState(['hasLogin','userInfo'])
+		},
+		methods: {
+			commitEdit(item){
+				console.log(this.deptList.compName,"公司名称")
+				this.deptList.commonId = this.userInfo.id
+				this.deptList.cardAddressUrl = this.id.toString()
+				this.deptList.payeeAddressUrl = this.bankid.toString()
+				if(this.consentStatus1 == true){
+					this.deptList.customerTypeFlag = "个人"
+				}else if(this.consentStatus == true){
+					this.deptList.customerTypeFlag = "企业"
+				}
+				// console.log(this.deptList,"编辑对象")
+				this.$api.doRequest('post', '/identityAuthenticationInfo/api/editIdentityAuthenticationInfo', this.deptList, 'application/json;charset=UTF-8').then(res => {
+						console.log("成功连接")
+						if (!this.deptList.goodsName) {
+							this.$api.msg('修改成功!')
+							
+							return
+						}
+						uni.navigateTo({
+							url: `/pages/attestation/index`
+						})
+					
+					})
+					.catch(res => {
+						uni.showToast({
+							title: res.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					});
+				
+				
+				},
+				license() {
+					var that = this
+					wx.chooseImage({
+						success: function(res) {
+							wx.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.deptList.businessLicenseAddressUrl = strToObj.url
+									that.license1 = strToObj.url
+								}
+							})
+						}
+					})
+				},
+				idUp(){
+					var that = this
+					wx.chooseImage({
+						success: function(res) {
+							wx.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.idup = strToObj.url
+								}
+							})
+						}
+					})
+				},
+				idLow(){
+					var that = this
+					wx.chooseImage({
+						success: function(res) {
+							wx.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.idlow = strToObj.url
+								}
+							})
+						}
+					})
+				},
+				bankUp(){
+					var that = this
+					wx.chooseImage({
+						success: function(res) {
+							wx.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
+								}
+							})
+						}
+					})
+				},
+				bankLow(){
+					var that = this
+					wx.chooseImage({
+						success: function(res) {
+							wx.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
+								}
+							})
+						}
+					})
+				},
+			getList(ids) {		
+					this.$api.doRequest('get', '/identityAuthenticationInfo/api/getIdentityAuthenticationInfo', this.parameter, 'application/json;charset=UTF-8').then(res => {
+							console.log("成功连接")
+				
+							this.deptList = res.data.data
+					console.log(this.deptList)
+							if(this.deptList.businessLicenseAddressUrl != ""){
+								this.license1 = this.deptList.businessLicenseAddressUrl
+							}
+							if(this.deptList.cardAddressUrl != ""){
+								this.id = this.deptList.cardAddressUrl.split(",")
+								this.idup = this.id[0]
+								this.idlow = this.id[1]
+							}
+							if(this.deptList.payeeAddressUrl != ""){
+								this.payeeAddress = this.deptList.payeeAddressUrl.split(","),
+							this.bank1 = this.payeeAddress[0]
+							this.bank2 = this.payeeAddress[1]
+							}
+		
+						})
+						.catch(res => {
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						});
+			},
+			consent(){
+				if(this.consentStatus == false && this.consentStatus1 == true){
+					this.consentStatus = true
+					this.consentStatus1 = false
+				}else if(this.consentStatus == true && this.consentStatus1 == false){
+					this.consentStatus = false
+					this.consentStatus1 = true
+				}
+				
+			},
+			
+		}
+	}
+</script>
+
+<style>
+	.center {
+		padding: 10px 20px;
+	}
+
+	.c-row {
+		display: -webkit-box;
+		display: -webkit-flex;
+		display: flex;
+		-webkit-box-align: center;
+		-webkit-align-items: center;
+		align-items: center;
+		padding: 20rpx 30rpx;
+		position: relative;
+	}
+
+	.con-list {
+		-webkit-box-flex: 1;
+		-webkit-flex: 1;
+		flex: 1;
+		display: -webkit-box;
+		display: -webkit-flex;
+		display: flex;
+		-webkit-box-orient: vertical;
+		-webkit-box-direction: normal;
+		-webkit-flex-direction: column;
+		flex-direction: column;
+		color: #303133;
+		line-height: 40rpx;
+		text-align: right;
+		padding-right: 20rpx;
+		font-size: 14px;
+	}
+</style>

+ 79 - 18
pageD/identity/companyIdentityLook.vue

@@ -5,14 +5,14 @@
 			<text>公司</text>
 			<image @click='consent' style='width:14px;height:14px;position:relative;top:2px;margin-right:5px;' :src="consentStatus1==true?'../../static/img/login/select@2x.png':'../../static/img/login/selected2.png'" alt=""></image>
 			<text>个人</text>
-			<!-- <label class="radio" v-model="radios">
-				<radio value="1" name="radios" /><text>公司</text>
-				<radio value="2" name="radios" /><text>个人</text>
-			</label> -->
+
 		</view>
 		<view v-if="consentStatus == true">
 			<view>
 				<button type="default" @click="license">营业执照</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="license1 != ''">
+					<image v-bind:src = "license1" style="width: 100px;height: 100px;"></image>
+				</view>
 			</view>
 			<view class="c-row b-b">
 				<text class="tit">公司名称</text>
@@ -28,7 +28,13 @@
 			</view>
 			<view>
 				<button type="default">身份证正面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="idup != ''">
+					<image v-bind:src = "idup" style="width: 100px;height: 100px;"></image>
+				</view>
 				<button type="default">身份证反面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="idlow != ''">
+					<image v-bind:src = "idlow" style="width: 100px;height: 100px;"></image>
+				</view>
 			</view>
 			<view class="c-row b-b">
 				<text class="tit">姓名</text>
@@ -44,7 +50,13 @@
 			</view>
 			<view>
 				<button type="default">银行卡正面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="bank1 != ''">
+					<image v-bind:src = "bank1" style="width: 100px;height: 100px;"></image>
+				</view>
 				<button type="default">银行卡反面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="bank2 != ''">
+					<image v-bind:src = "bank2" style="width: 100px;height: 100px;"></image>
+				</view>
 			</view>
 			<view class="c-row b-b">
 				<text class="tit">银行卡号</text>
@@ -80,7 +92,13 @@
 		<view v-else>
 			<view>
 				<button type="default">上传身份证正面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="id1 != ''">
+					<image v-bind:src = "id1" style="width: 100px;height: 100px;"></image>
+				</view>
 				<button type="default">上传身份证反面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="id2 != ''">
+					<image v-bind:src = "id2" style="width: 100px;height: 100px;"></image>
+				</view>
 			</view>
 			<view class="c-row b-b">
 				<text class="tit">姓名</text>
@@ -96,7 +114,13 @@
 			</view>
 			<view>
 				<button type="default">上传银行卡正面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="bank1 != ''">
+					<image v-bind:src = "bank1" style="width: 100px;height: 100px;"></image>
+				</view>
 				<button type="default">上传银行卡反面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="bank2 != ''">
+					<image v-bind:src = "bank2" style="width: 100px;height: 100px;"></image>
+				</view>
 			</view>
 			<view class="c-row b-b">
 				<text class="tit">银行卡号</text>
@@ -154,32 +178,69 @@
 			return {
 				radios: 2,
 				deptList:{},
-				id:"2c4b2845e9dc47ca95c05ad471881be0",
 				consentStatus:true,
 				consentStatus1:false,
-
+				parameter:{},
+				businessman:{},
+				id:[],
+				idup:"",
+				idlow:"",
+				license1:"",
+				bank1:"",
+				bank2:"",
+				bankid:[],
+				payeeAddress:[],
 			};
 		},
-		onLoad() {
+		onLoad(option) {
+			this.parameter.id = option.id,
 			this.getList()
 		},
 		computed: {
 			...mapState(['hasLogin','userInfo'])
 		},
 		methods: {
-			getList() {
+			getList(ids) {		
+				// this.$api.doRequest('get', '/identityAuthenticationInfo/api/getIdentityAuthenticationInfo', this.parameter).then(res => {
+				// 		console.log("成功连接")
+				// 		this.businessman = res.data.data
+				// 	})
+				// 	.catch(res => {
+				// 		uni.showToast({
+				// 			title: res.errmsg,
+				// 			icon: 'none',
+				// 			duration: 2000
+				// 		})
+				// 	});
+					this.$api.doRequest('get', '/identityAuthenticationInfo/api/getIdentityAuthenticationInfo', this.parameter, 'application/json;charset=UTF-8').then(res => {
+							console.log("成功连接")
+							// this.procurementPlanInfos = res.data.data
 				
-				this.$api.doRequest('get', '/identityAuthenticationInfo/getInfo', {id:this.id}, 'application/json;charset=UTF-8').then(res => {
-						console.log("成功连接")
-						this.procurementPlanInfos = res.data.data
-					})
-					.catch(res => {
-						uni.showToast({
-							title: res.errmsg,
-							icon: 'none',
-							duration: 2000
+							this.deptList = res.data.data
+					
+							if(this.deptList.businessLicenseAddressUrl != ""){
+								this.license1 = this.deptList.businessLicenseAddressUrl
+							}
+							if(this.deptList.cardAddressUrl != ""){
+								this.id = this.deptList.cardAddressUrl.split(",")
+								this.idup = this.id[0]
+								this.idlow = this.id[1]
+								console.log(this.id,"fdsfdfsfgdsds")
+							}
+							if(this.deptList.payeeAddressUrl != ""){
+								this.payeeAddress = this.deptList.payeeAddressUrl.split(","),
+							this.bank1 = this.payeeAddress[0]
+							this.bank2 = this.payeeAddress[1]
+							}
+							console.log(this.businessmanbusinessman,"langshang")
 						})
-					});
+						.catch(res => {
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						});
 			},
 			consent(){
 				if(this.consentStatus == false && this.consentStatus1 == true){

+ 113 - 94
pageD/identity/driverIdentity.vue

@@ -39,6 +39,7 @@
 					<input v-model='verifyCode' placeholder="请输入验证码" type="text">
 				</view>
 			
+			</view>
 			</view>
 			<view class="c-row b-b">
 				<text class="tit">常驻城市</text>
@@ -143,11 +144,22 @@
 		</view>
 		<view class="margin-top">
 			<view class="labels">上传附件</view>
-
-			<button type="default">行驶证</button>
-			<button type="default">驾驶证</button>
-			<button type="default">道路运营证</button>
-			<button type="default">从业资格证</button>
+			<button type="default" @click="travel">行驶证</button>
+			<view style="width: 100px;margin: 0 auto;" v-if="travels != ''">
+				<image v-bind:src = "travels" style="width: 100px;height: 100px;"></image>
+			</view>
+			<button type="default" @click="drive">驾驶证</button>
+			<view style="width: 100px;margin: 0 auto;" v-if="drives != ''">
+				<image v-bind:src = "drives" style="width: 100px;height: 100px;"></image>
+			</view>
+			<button type="default" @click="operate">道路运营证</button>
+			<view style="width: 100px;margin: 0 auto;" v-if="operates != ''">
+				<image v-bind:src = "operates" style="width: 100px;height: 100px;"></image>
+			</view>
+			<button type="default" @click="practice">从业资格证</button>
+			<view style="width: 100px;margin: 0 auto;" v-if="practices != ''">
+				<image v-bind:src = "practices" style="width: 100px;height: 100px;"></image>
+			</view>
 		</view>
 		<view class="padding flex flex-direction">
 			<button class="cu-btn bg-red margin-tb-sm lg" @click="commit">提交</button>
@@ -172,39 +184,122 @@
 				id:[],
 				id1:"",
 				id2:"",
+				travels:"",
+				drives:"",
+				practices:"",
+				operates:"",
 				// bank1:"",
 				// bank2:"",
 				// bankid:[],
 				sendText: '获取验证码',
-
+                sendDisabled: false,
 				sendText: '获取验证码',
 				ModelIndex: '高栏',
 				Model: '',
 				ModelType: ["高栏", "集装箱", "自卸车"],
 				carLong: '',
+				carLongIndex:0,
 				carLongType: ['13', '9.6', '8.2', '8.7', '11.7', '12.5', '13.7', '15', '16', '17.5'],
 				driverCarInfoList: {},
 				driverPayeeInfoList: {},
 				DriverViewInfo: {
 					driverCarInfoList: [],
 					driverPayeeInfoList: [],
+					
 				},
+				verifyCode:"",
+				codestatus:false,
+				customerPhone: '',
+				addressUrl:[],
 			}
 		},
 		computed: {
 			...mapState(['hasLogin','userInfo'])
 		},
 		methods: {
-			phoneinput(e) {
-				if (e.detail.value.length == 11) {
-					this.codestatus = true
-				}
-			},
+			// phoneinput(e) {
+			// 	if (e.detail.value.length == 11) {
+			// 		this.codestatus = true
+			// 	}
+			// },
+			travel(){
+				var that = this
+				wx.chooseImage({
+					success: function(res) {
+						wx.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.travels = strToObj.url
+								that.addressUrl[0] = strToObj.url
+							}
+						})
+					}
+				})
+				},
+				drive(){
+					var that = this
+					wx.chooseImage({
+						success: function(res) {
+							wx.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.drives = strToObj.url
+										that.addressUrl[1] = strToObj.url
+								}
+							})
+						}
+					})
+					},
+					operate(){
+						var that = this
+						wx.chooseImage({
+							success: function(res) {
+								wx.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.operates = strToObj.url
+											that.addressUrl[2] = strToObj.url
+									}
+								})
+							}
+						})
+					},
+					practice(){
+						var that = this
+						wx.chooseImage({
+							success: function(res) {
+								wx.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.practices = strToObj.url
+											that.addressUrl[3] = strToObj.url
+									}
+								})
+							}
+						})
+					},
 			getcode() {
 				var that = this
-				if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(this.customerPhone)) {
+					console.log(that.DriverViewInfo.driverPhone)
+				if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(that.DriverViewInfo.driverPhone)) {
 					this.$api.doRequest('get', '/commonUser/sendVerifyCode', {
-							customerPhone: this.customerPhone
+							customerPhone: that.DriverViewInfo.driverPhone
 						}).then(res => {
 							if (res.data.code == 200) {
 								that.sendDisabled = true
@@ -242,42 +337,6 @@
 				}
 
 			},
-			doGetVerify() {
-				const that = this
-				var phone = this.inputContent;
-				if (!phone || phone.length != 11) {
-					uni.showToast({
-						title: '请输入正确手机号!',
-						icon: 'none'
-					})
-					return
-				}
-
-				that.$api.request('user', 'sendVerifyCode', {
-					phone: phone,
-				}).then(res => {
-					that.sendDisabled = true
-					let sec = 60
-					let interval = setInterval(() => {
-						sec--;
-						that.sendText = sec + 's后重发'
-						if (sec <= 0) {
-							that.sendDisabled = false
-							that.sendText = "获取验证码"
-							clearInterval(interval)
-						}
-					}, 1000)
-				})
-
-			},
-			verifyCodeInput(e) {
-				this.verifyCode = e.detail.value
-			},
-			cancel() {
-				this.inputShow = false
-				this.inputStatus = 'none'
-				this.isPhone = false
-			},
 			ModelChange(e) {
 				this.ModelIndex = e.detail.value
 				this.Model = this.ModelType[this.ModelIndex];
@@ -323,55 +382,15 @@
 					}
 				})
 			},
-			getcode() {
-				var that = this
-				if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(this.identityAuthenticationInfo.customerPhone)) {
-					this.$api.doRequest('get', '/commonUser/sendVerifyCode', {
-							phone: this.identityAuthenticationInfo.customerPhone
-						}).then(res => {
-							if (res.data.code == 200) {
-								that.sendDisabled = true
-								let sec = 60
-								let interval = setInterval(() => {
-									sec--;
-									that.sendText = sec + 's后重发'
-									if (sec <= 0) {
-										that.sendDisabled = false
-										that.sendText = "获取验证码"
-										clearInterval(interval)
-									}
-								}, 1000)
-							} else {
-								uni.showToast({
-									title: res.data.message,
-									icon: 'none',
-									duration: 2000
-								})
-							}
-						})
-						.catch(res => {
-							uni.showToast({
-								title: res.data.message,
-								icon: 'none',
-								duration: 2000
-							})
-						});
-				} else {
-					uni.showToast({
-						title: '请输入正确的手机号',
-						icon: 'none',
-						duration: 2000
-					})
-				}
-				this.driverCarInfoList.carLength = this.carLongType[this.carLongIndex];
-			},
 			commit() {
-				
+				this.DriverViewInfo.addressUrl = this.addressUrl.toString()
 				this.DriverViewInfo.driverCarInfoList = [this.driverCarInfoList]
 				this.DriverViewInfo.driverPayeeInfoList = [this.driverPayeeInfoList]
 				this.DriverViewInfo.commonId = this.userInfo.id
-
-		
+				this.DriverViewInfo.cardAddressUrl = this.id.toString()
+				this.DriverViewInfo.pcFlag = 0
+				this.DriverViewInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
+				console.log(this.DriverViewInfo,"司机对象")
 				this.$api.doRequest('post', '/driverViewInfo/api/addInfo', this.DriverViewInfo).then(res => {
 				}).catch(res => {
 					uni.showToast({

+ 577 - 0
pageD/identity/driverIdentityEdit.vue

@@ -0,0 +1,577 @@
+<template>
+	<view class="center">
+		<view>
+			<view class="labels">司机信息</view>
+			<view>
+				<button type="default" @click="idUp">上传身份证正面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="id != ''">
+					<image v-bind:src = "id1" style="width: 100px;height: 100px;"></image>
+				</view>
+				<button type="default" @click="idLow">上传身份证反面</button>
+				<view style="width: 100px;margin: 0 auto;" v-if="id2 != ''">
+					<image v-bind:src = "id2" style="width: 100px;height: 100px;"></image>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">姓名</text>
+				<view class="con-list">
+					<input placeholder="请填写姓名" name="input" v-model="DriverViewInfo.driverName"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">身份证号</text>
+				<view class="con-list">
+					<input placeholder="请填写身份证号" name="input" v-model="DriverViewInfo.numberCard"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">手机号</text>
+				<view class="con-list">
+					<input placeholder="请填写手机号" name="input" v-model="DriverViewInfo.driverPhone"></input>
+				</view>
+			</view>
+			<view style='width:100%;border-bottom:1px solid #E8E9ED;position:relative;padding:10px;' class="flex">
+				<button :class='codestatus&&!sendDisabled?"active":""' @click='getcode'
+					class='getcode'>{{sendText}}</button>
+				<view style='width:70%;position:relative;margin-left: 200px;'>
+				<view class="con-list">
+					<!-- style='width:70%;position:relative;margin-left: 200px;' -->
+					<input v-model='verifyCode' placeholder="请输入验证码" type="text">
+				</view>
+			
+			</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">常驻城市</text>
+				<view class="con-list">
+					<input placeholder="请填写常驻城市" name="input" v-model="DriverViewInfo.residentCityProvincial"></input>
+				</view>
+			</view>
+
+
+		</view>
+		<view class="margin-top">
+			<view class="labels">货车信息</view>
+			<view class="labels"> 车辆 -?</view>
+			<view class="c-row b-b">
+				<text class="tit">车牌号</text>
+				<view class="con-list">
+					<input placeholder="请填写车牌号" name="input" v-model="driverCarInfoList[0].carNumber"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">车型</text>
+				<!-- <view class="con-list"> -->
+				<picker @change="ModelChange" :value="ModelIndex" :range="ModelType" class="con-list">
+					<view class="picker ">
+						{{ModelIndex>-1?ModelType[ModelIndex]:'请选择车型'}}
+					</view>
+				</picker>
+				<!-- </view> -->
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">不含车头车长(米)</text>
+				<!-- 	 <view class="con-list"> -->
+				<picker @change="carLongChange" :value="carLongIndex" :range="carLongType" class="con-list">
+					<view class="picker">
+						{{carLongIndex>-1?carLongType[carLongIndex]:'请选择车长'}}
+					</view>
+				</picker>
+				<!-- </view> -->
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">载重(吨)</text>
+				<view class="con-list">
+					<input placeholder="请填写载重(吨)" name="input" v-model="driverCarInfoList[0].carLoad"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">出厂年份</text>
+				<view class="con-list">
+					<input placeholder="请填写出厂年份" name="input" v-model="driverCarInfoList[0].yearManufacture"></input>
+				</view>
+			</view>
+
+			<button type="default">添加车辆</button>
+
+		</view>
+		<view class="margin-top">
+			<view class="labels">账户信息</view>
+			<view class="labels"> 账户 -?</view>
+			<view class="c-row b-b">
+				<text class="tit">账户类型</text>
+				<view class="con-list">
+					<input placeholder="请填写账户类型" name="input" v-model="driverPayeeInfoList[0].accountType"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">银行卡照片(可选)</text>
+				<view class="con-list">
+					<input placeholder="请上传照片" name="input" v-model="driverPayeeInfoList[0].payeeAddressUrl"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">银行卡号</text>
+				<view class="con-list">
+					<input placeholder="请输入银行卡号" name="input" v-model="driverPayeeInfoList[0].bankCard"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">开户行</text>
+				<view class="con-list">
+					<input placeholder="请输入开户行" name="input" v-model="driverPayeeInfoList[0].bankDeposit"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">开户支行</text>
+				<view class="con-list">
+					<input placeholder="请输入开户支行" name="input" v-model="driverPayeeInfoList[0].bankDepositBranch"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">收款人姓名</text>
+				<view class="con-list">
+					<input placeholder="请输入收款人姓名" name="input" v-model="driverPayeeInfoList[0].payeeName"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">收款人身份证号</text>
+				<view class="con-list">
+					<input placeholder="请输入收款人身份证号" name="input" v-model="driverPayeeInfoList[0].payeeNumberCard"></input>
+				</view>
+			</view>
+			<button type="default">添加账号</button>
+		</view>
+		<view class="margin-top">
+			<view class="labels">上传附件</view>
+			<button type="default" @click="travel">行驶证</button>
+			<view style="width: 100px;margin: 0 auto;" v-if="travels != ''">
+				<image v-bind:src = "travels" style="width: 100px;height: 100px;"></image>
+			</view>
+			<button type="default" @click="drive">驾驶证</button>
+			<view style="width: 100px;margin: 0 auto;" v-if="drives != ''">
+				<image v-bind:src = "drives" style="width: 100px;height: 100px;"></image>
+			</view>
+			<button type="default" @click="operate">道路运营证</button>
+			<view style="width: 100px;margin: 0 auto;" v-if="operates != ''">
+				<image v-bind:src = "operates" style="width: 100px;height: 100px;"></image>
+			</view>
+			<button type="default" @click="practice">从业资格证</button>
+			<view style="width: 100px;margin: 0 auto;" v-if="practices != ''">
+				<image v-bind:src = "practices" style="width: 100px;height: 100px;"></image>
+			</view>
+		</view>
+		<view class="padding flex flex-direction">
+			<button class="cu-btn bg-red margin-tb-sm lg" @click="commitEdit">修改</button>
+		</view>
+	</view>
+	</view>
+</template>
+
+<script>
+	import {
+	    mapState 
+	} from 'vuex';
+	export default {
+		data() {
+			return {
+				goods:{},
+				ModelIndex:'高栏',
+				Model:'',
+				ModelType:["高栏","集装箱","自卸车"],
+				carLong:'',
+				carLongType:['13','9.6','8.2','8.7','11.7','12.5','13.7','15','16','17.5'],
+				id:[],
+				id1:"",
+				id2:"",
+				travels:"",
+				drives:"",
+				practices:"",
+				operates:"",
+				// bank1:"",
+				// bank2:"",
+				// bankid:[],
+				sendText: '获取验证码',
+                sendDisabled: false,
+				sendText: '获取验证码',
+				ModelIndex: '高栏',
+				Model: '',
+				ModelType: ["高栏", "集装箱", "自卸车"],
+				carLong: '',
+				carLongIndex:0,
+				carLongType: ['13', '9.6', '8.2', '8.7', '11.7', '12.5', '13.7', '15', '16', '17.5'],
+				driverCarInfoList: [],
+				driverPayeeInfoList: [],
+				DriverViewInfo: {
+					driverCarInfoList: [],
+					driverPayeeInfoList: [],	
+				},
+				verifyCode:"",
+				codestatus:false,
+				customerPhone: '',
+				addressUrl:[],
+			}
+		},
+		computed: {
+			...mapState(['hasLogin','userInfo'])
+		},
+		onLoad(option){
+			this.getList(option.id)
+		},
+		methods: {
+			// phoneinput(e) {
+			// 	if (e.detail.value.length == 11) {
+			// 		this.codestatus = true
+			// 	}
+			// },
+			getList(ids) {
+				this.$api.doRequest('get', '/driverViewInfo/getDriver', {
+						id: ids
+					}, 'application/json;charset=UTF-8').then(res => {
+						console.log("成功连接")
+						this.procurementPlanInfos = res.data.data
+						this.DriverViewInfo = res.data.data
+						this.driverCarInfoList = this.DriverViewInfo.driverCarInfoList
+						this.driverPayeeInfoList = this.DriverViewInfo.driverPayeeInfoList
+						this.addressUrl =this.DriverViewInfo.addressUrl.split(",")
+						console.log(this.driverPayeeInfoList,"dsfds")
+						this.drivers = res.data.data
+						if (this.drivers.cardAddressUrl != "") {
+							this.id = this.drivers.cardAddressUrl.split(","),
+								this.id1 = this.id[0]
+							    this.id2 = this.id[1]
+						}
+						if (this.drivers.addressUrl != "") {
+							this.address = this.drivers.addressUrl.split(","),
+								this.travels = this.address[0]
+							this.drives = this.address[1]
+							this.practices = this.address[2]
+							this.operates = this.address[3]
+						}
+					})
+					.catch(res => {
+						uni.showToast({
+							title: res.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					});
+			},
+			commitEdit() {
+				console.log(this.addressUrl,"数组")
+				this.DriverViewInfo.addressUrl = this.addressUrl.toString()
+				console.log(this.DriverViewInfo.addressUrl,"字符串")
+				
+				this.DriverViewInfo.driverCarInfoList = this.driverCarInfoList
+				this.DriverViewInfo.driverPayeeInfoList = this.driverPayeeInfoList
+				this.DriverViewInfo.commonId = this.userInfo.id
+				this.DriverViewInfo.cardAddressUrl = this.id.toString()
+				this.DriverViewInfo.pcFlag = 0
+				this.DriverViewInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
+				console.log(this.DriverViewInfo,"司机对象")
+				this.$api.doRequest('post', '/driverViewInfo/api/editInfo', this.DriverViewInfo).then(res => {
+				}).catch(res => {
+					uni.showToast({
+						title: res.data.message,
+						icon: 'none',
+						duration: 2000
+					})
+				})
+			},
+			idUp(){
+				var that = this
+				wx.chooseImage({
+					success: function(res) {
+						wx.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
+							}
+						})
+					}
+				})
+			},
+			idLow(){
+				var that = this
+				wx.chooseImage({
+					success: function(res) {
+						wx.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
+							}
+						})
+					}
+				})
+			},
+			travel(){
+				var that = this
+				wx.chooseImage({
+					success: function(res) {
+						wx.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.travels = strToObj.url
+								that.addressUrl[0] = strToObj.url
+								console.log(that.addressUrl)
+							}
+						})
+					}
+				})
+				},
+				drive(){
+					var that = this
+					wx.chooseImage({
+						success: function(res) {
+							wx.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.drives = strToObj.url
+									that.addressUrl[1] = strToObj.url
+										console.log(that.addressUrl)
+								}
+							})
+						}
+					})
+					},
+					operate(){
+						var that = this
+						wx.chooseImage({
+							success: function(res) {
+								wx.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.operates = strToObj.url
+										that.addressUrl[2] = strToObj.url
+										console.log(that.addressUrl)
+									}
+								})
+							}
+						})
+					},
+					practice(){
+						var that = this
+						wx.chooseImage({
+							success: function(res) {
+								wx.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.practices = strToObj.url
+										that.addressUrl[3] = strToObj.url
+										console.log(that.addressUrl)
+									}
+								})
+							}
+						})
+					},
+			getcode() {
+				var that = this
+					console.log(that.DriverViewInfo.driverPhone)
+				if (/^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(that.DriverViewInfo.driverPhone)) {
+					this.$api.doRequest('get', '/commonUser/sendVerifyCode', {
+							customerPhone: that.DriverViewInfo.driverPhone
+						}).then(res => {
+							if (res.data.code == 200) {
+								that.sendDisabled = true
+								let sec = 60
+								let interval = setInterval(() => {
+									sec--;
+									that.sendText = sec + 's后重发'
+									if (sec <= 0) {
+										that.sendDisabled = false
+										that.sendText = "获取验证码"
+										clearInterval(interval)
+									}
+								}, 1000)
+							} else {
+								uni.showToast({
+									title: res.data.message,
+									icon: 'none',
+									duration: 2000
+								})
+							}
+						})
+						.catch(res => {
+							uni.showToast({
+								title: res.data.message,
+								icon: 'none',
+								duration: 2000
+							})
+						});
+				} else {
+					uni.showToast({
+						title: '请输入正确的手机号',
+						icon: 'none',
+						duration: 2000
+					})
+				}
+			},
+			ModelChange(e) {
+				this.ModelIndex = e.detail.value
+				this.Model = this.ModelType[this.ModelIndex];
+				this.driverCarInfoList.carModel = this.ModelType[this.ModelIndex];
+			},
+			carLongChange(e) {
+				this.carLongIndex = e.detail.value
+				this.carLong = this.carLongType[this.carLongIndex];
+			},
+			
+		}
+	}
+</script>
+
+<style>
+	.center {
+		padding: 10px 20px;
+		}
+		.labels{
+			font-size: 16px;
+			font-weight: 400;
+		}
+		.c-row {
+		    display: -webkit-box;
+		    display: -webkit-flex;
+		    display: flex;
+		    -webkit-box-align: center;
+		    -webkit-align-items: center;
+		    align-items: center;
+		    padding: 20rpx 30rpx;
+		    position: relative;
+		}
+		.con-list {
+		    -webkit-box-flex: 1;
+		    -webkit-flex: 1;
+		    flex: 1;
+		    display: -webkit-box;
+		    display: -webkit-flex;
+		    display: flex;
+		    -webkit-box-orient: vertical;
+		    -webkit-box-direction: normal;
+		    -webkit-flex-direction: column;
+		    flex-direction: column;
+		    color: #303133;
+		    line-height: 40rpx;
+		    text-align: right;
+		    padding-right: 20rpx;
+			font-size: 14px;
+		}
+		.getcode {
+			font-size: 14px;
+			position: absolute;
+			top: 50%;
+			transform: translateY(-50%);
+			color: #AFB3BF;
+			background: #F5F6F9;
+			height: 30px;
+			line-height: 30px;
+		}
+		.getcode.active {
+			border: none;
+		}
+		.uni-navigator{
+			display:inline-block;
+			color:#22C572;
+		}
+		.getcode.active {
+			background: #22C572;
+			color: #fff;
+		}
+
+	
+
+	.labels {
+		font-size: 16px;
+		font-weight: 400;
+	}
+
+	.c-row {
+		display: -webkit-box;
+		display: -webkit-flex;
+		display: flex;
+		-webkit-box-align: center;
+		-webkit-align-items: center;
+		align-items: center;
+		padding: 20rpx 30rpx;
+		position: relative;
+	}
+
+	.con-list {
+		-webkit-box-flex: 1;
+		-webkit-flex: 1;
+		flex: 1;
+		display: -webkit-box;
+		display: -webkit-flex;
+		display: flex;
+		-webkit-box-orient: vertical;
+		-webkit-box-direction: normal;
+		-webkit-flex-direction: column;
+		flex-direction: column;
+		color: #303133;
+		line-height: 40rpx;
+		text-align: right;
+		padding-right: 20rpx;
+		font-size: 14px;
+	}
+	.verificationCode {
+		margin-top: 20px;
+		background: #F5F6F9;
+		color: #AFB3BF;
+	}
+
+	.verificationCode:after {
+		border: none;
+	}
+
+	.verificationCode.active {
+		background: #22C572;
+		color: #fff;
+	}
+
+	.getcode {
+		font-size: 14px;
+		position: absolute;
+		/*  right:0; */
+		top: 50%;
+		transform: translateY(-50%);
+		color: #AFB3BF;
+		background: #F5F6F9;
+		height: 30px;
+		line-height: 30px;
+
+	}
+
+	.getcode:after {
+		border: none;
+	}
+
+	.getcode.active {
+		background: #22C572;
+		color: #fff;
+	}
+</style>

+ 166 - 98
pageD/identity/driverIdentityLook.vue

@@ -3,125 +3,150 @@
 		<view>
 			<view class="labels">司机信息</view>
 			<button type="default">身份证正面</button>
+			<view style="width: 100px;margin: 0 auto;" v-if="idup != ''">
+				<image v-bind:src="idup" style="width: 100px;height: 100px;"></image>
+			</view>
 			<button type="default">身份证反面</button>
+			<view style="width: 100px;margin: 0 auto;" v-if="idlow != ''">
+				<image v-bind:src="idlow" style="width: 100px;height: 100px;"></image>
+			</view>
 			<view class="c-row b-b">
 				<text class="tit">姓名</text>
 				<view class="con-list">
-					<input placeholder="请填写姓名" name="input" @input="addressInput"></input>
+					{{drivers.driverName}}
 				</view>
 			</view>
 			<view class="c-row b-b">
 				<text class="tit">身份证号</text>
 				<view class="con-list">
-					<input placeholder="请填写身份证号" name="input" @input="addressInput"></input>
+					{{drivers.numberCard}}
 				</view>
 			</view>
 			<view class="c-row b-b">
 				<text class="tit">手机号</text>
 				<view class="con-list">
-					<input placeholder="请填写手机号" name="input" @input="addressInput"></input>
+					{{drivers.driverPhone}}
 				</view>
 			</view>
 			<view class="c-row b-b">
 				<text class="tit">常驻城市</text>
 				<view class="con-list">
-					<input placeholder="请填写常驻城市" name="input" @input="addressInput"></input>
+					{{drivers.residentCityProvincial}}
 				</view>
 			</view>
-		
-		
+
+
 		</view>
 		<view class="margin-top">
 			<view class="labels">货车信息</view>
-			<view class="labels"> 车辆 -?</view>
-			<view class="c-row b-b">
-				<text class="tit">车牌号</text>
-				<view class="con-list">
-					<input placeholder="请填写车牌号" name="input" @input="addressInput"></input>
+			<view v-for="(item , index) in  drivers.driverCarInfoList" :Key="index">
+
+
+				<view class="labels"> 车辆 -{{index+1}}</view>
+				<view class="c-row b-b">
+					<text class="tit">车牌号</text>
+					<view class="con-list">
+						{{item.carNumber}}
+					</view>
 				</view>
-			</view>
-			<view class="c-row b-b">
-				<text class="tit">车型</text>
-				<view class="con-list">
-					<input placeholder="请填写车型" name="input" @input="addressInput"></input>
+				<view class="c-row b-b">
+					<text class="tit">车型</text>
+					<view class="con-list">
+						{{item.carModel}}
+					</view>
 				</view>
-			</view>
-			<view class="c-row b-b">
-				<text class="tit">不含车头车长(米)</text>
-		         <view class="con-list">
-		         	<input placeholder="请填写车长" name="input" @input="addressInput"></input>
-		         </view>
-			</view>
-			<view class="c-row b-b">
-				<text class="tit">载重(吨)</text>
-				<view class="con-list">
-					<input placeholder="请填写载重(吨)" name="input" @input="addressInput"></input>
+				<view class="c-row b-b">
+					<text class="tit">不含车头车长(米)</text>
+					<view class="con-list">
+						{{item.carLength}}
+					</view>
 				</view>
-			</view>
-			<view class="c-row b-b">
-				<text class="tit">出厂年份</text>
-				<view class="con-list">
-					<input placeholder="请填写载重(吨)" name="input" @input="addressInput"></input>
+				<view class="c-row b-b">
+					<text class="tit">载重(吨)</text>
+					<view class="con-list">
+						{{item.carLoad}}
+					</view>
+				</view>
+				<view class="c-row b-b">
+					<text class="tit">出厂年份</text>
+					<view class="con-list">
+						{{item.yearManufacture}}
+					</view>
 				</view>
 			</view>
-			
-			
+
 		</view>
 		<view class="margin-top">
 			<view class="labels">账户信息</view>
-			<view class="labels"> 账户 -?</view>
-			<view class="c-row b-b">
-				<text class="tit">账户类型</text>
-				<view class="con-list">
-					<input placeholder="请填写账户类型" name="input" @input="addressInput"></input>
+			<view v-for="(items , index) in  drivers.driverPayeeInfoList" :Key="index">
+
+
+				<view class="labels"> 账户 - {{index+1}}</view>
+				<view class="c-row b-b">
+					<text class="tit">账户类型</text>
+					<view class="con-list">
+						{{items.accountType}}
+					</view>
 				</view>
-			</view>
-			<view class="c-row b-b">
-				<text class="tit">银行卡照片(可选)</text>
-				<view class="con-list">
-					<input placeholder="请上传照片" name="input" @input="addressInput"></input>
+				<view class="c-row b-b">
+					<text class="tit">银行卡照片(可选)</text>
+					<view class="con-list">
+						真的没做呐
+					</view>
 				</view>
-			</view>
-			<view class="c-row b-b">
-				<text class="tit">银行卡号</text>
-				<view class="con-list">
-					<input placeholder="请输入银行卡号" name="input" @input="addressInput"></input>
+				<view class="c-row b-b">
+					<text class="tit">银行卡号</text>
+					<view class="con-list">
+						{{items.bankCard}}
+					</view>
 				</view>
-			</view>
-			<view class="c-row b-b">
-				<text class="tit">开户行</text>
-				<view class="con-list">
-					<input placeholder="请输入开户行" name="input" @input="addressInput"></input>
+				<view class="c-row b-b">
+					<text class="tit">开户行</text>
+					<view class="con-list">
+						{{items.bankDeposit}}
+					</view>
 				</view>
-			</view>
-			<view class="c-row b-b">
-				<text class="tit">开户支行</text>
-				<view class="con-list">
-					<input placeholder="请输入开户支行" name="input" @input="addressInput"></input>
+				<view class="c-row b-b">
+					<text class="tit">开户支行</text>
+					<view class="con-list">
+						{{items.bankDepositBranch}}
+					</view>
 				</view>
-			</view>
-			<view class="c-row b-b">
-				<text class="tit">收款人姓名</text>
-				<view class="con-list">
-					<input placeholder="请输入收款人姓名" name="input" @input="addressInput"></input>
+				<view class="c-row b-b">
+					<text class="tit">收款人姓名</text>
+					<view class="con-list">
+						{{items.payeeName}}
+					</view>
 				</view>
-			</view>
-			<view class="c-row b-b">
-				<text class="tit">收款人身份证号</text>
-				<view class="con-list">
-					<input placeholder="请输入收款人身份证号" name="input" @input="addressInput"></input>
+				<view class="c-row b-b">
+					<text class="tit">收款人身份证号</text>
+					<view class="con-list">
+						{{items.payeeNumberCard}}
+					</view>
 				</view>
 			</view>
 		</view>
 		<view class="margin-top">
-				<view class="labels">上传附件</view>
-			
+			<view class="labels">上传附件</view>
+
 			<button type="default">行驶证</button>
+			<view style="width: 100px;margin: 0 auto;" v-if="travels != ''">
+				<image v-bind:src="travels" style="width: 100px;height: 100px;"></image>
+			</view>
 			<button type="default">驾驶证</button>
+			<view style="width: 100px;margin: 0 auto;" v-if="drives != ''">
+				<image v-bind:src="drives" style="width: 100px;height: 100px;"></image>
+			</view>
 			<button type="default">道路运营证</button>
+			<view style="width: 100px;margin: 0 auto;" v-if="practices != ''">
+				<image v-bind:src="practices" style="width: 100px;height: 100px;"></image>
+			</view>
 			<button type="default">从业资格证</button>
+			<view style="width: 100px;margin: 0 auto;" v-if="operates != ''">
+				<image v-bind:src="operates" style="width: 100px;height: 100px;"></image>
+			</view>
 		</view>
-		
+
 	</view>
 </template>
 
@@ -129,48 +154,91 @@
 	export default {
 		data() {
 			return {
-	
+				drivers: {},
+				id: [],
+				address: [],
+				travels: "",
+				drives: "",
+				practices: "",
+				operates: "",
+				idup: "",
+				idlow: "",
 			}
 		},
+		onLoad(option) {
+			this.getList(option.id)
+		},
 		methods: {
-		
+			getList(ids) {
+
+				this.$api.doRequest('get', '/driverViewInfo/getDriver', {
+						id: ids
+					}, 'application/json;charset=UTF-8').then(res => {
+						console.log("成功连接")
+						this.procurementPlanInfos = res.data.data
+						this.drivers = res.data.data
+						if (this.drivers.cardAddressUrl != "") {
+							this.id = this.drivers.cardAddressUrl.split(","),
+								this.idup = this.id[0]
+							this.idlow = this.id[1]
+						}
+						if (this.drivers.addressUrl != "") {
+							this.address = this.drivers.addressUrl.split(","),
+								this.travels = this.address[0]
+							this.drives = this.address[1]
+							this.practices = this.address[2]
+							this.operates = this.address[3]
+						}
+					})
+					.catch(res => {
+						uni.showToast({
+							title: res.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					});
+			},
+
 		}
 	}
 </script>
 
 <style>
-	.center{
+	.center {
 		padding: 10px 20px;
 	}
-	.labels{
+
+	.labels {
 		font-size: 16px;
 		font-weight: 400;
 	}
+
 	.c-row {
-	    display: -webkit-box;
-	    display: -webkit-flex;
-	    display: flex;
-	    -webkit-box-align: center;
-	    -webkit-align-items: center;
-	    align-items: center;
-	    padding: 20rpx 30rpx;
-	    position: relative;
+		display: -webkit-box;
+		display: -webkit-flex;
+		display: flex;
+		-webkit-box-align: center;
+		-webkit-align-items: center;
+		align-items: center;
+		padding: 20rpx 30rpx;
+		position: relative;
 	}
+
 	.con-list {
-	    -webkit-box-flex: 1;
-	    -webkit-flex: 1;
-	    flex: 1;
-	    display: -webkit-box;
-	    display: -webkit-flex;
-	    display: flex;
-	    -webkit-box-orient: vertical;
-	    -webkit-box-direction: normal;
-	    -webkit-flex-direction: column;
-	    flex-direction: column;
-	    color: #303133;
-	    line-height: 40rpx;
-	    text-align: right;
-	    padding-right: 20rpx;
+		-webkit-box-flex: 1;
+		-webkit-flex: 1;
+		flex: 1;
+		display: -webkit-box;
+		display: -webkit-flex;
+		display: flex;
+		-webkit-box-orient: vertical;
+		-webkit-box-direction: normal;
+		-webkit-flex-direction: column;
+		flex-direction: column;
+		color: #303133;
+		line-height: 40rpx;
+		text-align: right;
+		padding-right: 20rpx;
 		font-size: 14px;
 	}
 </style>

+ 16 - 0
pages.json

@@ -360,6 +360,22 @@
 		        "navigationBarTitleText": "认证信息",
 		        "enablePullDownRefresh": false
 		    }   
+		},
+		{
+		    "path" : "pageD/identity/companyIdentityEdit",
+		    "style" :                                                                                    
+		    {
+		        "navigationBarTitleText": "编辑认证信息",
+		        "enablePullDownRefresh": false
+		    }   
+		},
+		{
+		    "path" : "pageD/identity/driverIdentityEdit",
+		    "style" :                                                                                    
+		    {
+		        "navigationBarTitleText": "编辑认证信息",
+		        "enablePullDownRefresh": false
+		    }   
 		}
         ,{
             "path" : "pages/release/release",

+ 131 - 26
pages/attestation/index.vue

@@ -1,41 +1,55 @@
 <template>
 	<view class="center">
-		<view>
+		<view >
 			<view class="title">粮商身份</view>
 			<view class='cu-tag radius line-pink' @click="adddriver(1)">新增</view>
-			<view class="company">****公司</view>
-			<view class="guess-item" @click="navToDetailPage(1)">
-				<view class="infos">
+			<view v-for="(item , index) in businessman" :Key="index" >
+				
+			
+			<view class="company">{{item.compName}}</view>
+			<view class="guess-item" >
+				<view class="infos" @click="navToDetailPage(1,item)">
 
-					<view class="info">张三
-						<view class='cu-tag radius line-pink but'>审核中</view>
+					<view class="info">{{item.customerName}}
+						<view class='cu-tag radius line-pink but'>{{item.authenticationStatus}}</view>
 					</view>
-					<view class="info">13333333333</view>
-					<label>
-						<checkbox :value="1" /><text>设置默认</text>
-					</label>
-					<view class='cu-tag radius line-pink '>删除</view>
-					<view class='cu-tag radius line-pink but'>更换手机号</view>
+					<view class="info">{{item.customerPhone}}</view>
+					
+					
 				</view>
+				<label>
+					<checkbox :value="1" /><text>设置默认</text>
+				</label>
+				<view class='cu-tag radius line-pink ' @click="deleteLS(item)">删除</view>
+				<view class='cu-tag radius line-pink ' @click="companyEdit(item)" >修改</view>
+				<view class='cu-tag radius line-pink but'>更换手机号</view>
 
 			</view>
+			<hr>
+			</view>
 		</view>
 
-		<view class="margin-top">
+		<view class="margin-top" >
 			<view class="title">司机身份</view>
 			<view class='cu-tag radius line-pink' @click="adddriver(2)">新增</view>
-			<view class="guess-item" @click="navToDetailPage(2)">
+			<view v-for="(items , index) in drivers" :Key="index">
+				
+			
+			<view class="guess-item" @click="navToDetailPage(2,items)">
 				<view class="infos">
-					<view class="info">张三
-						<view class='cu-tag radius line-pink but'>审核中</view>
+					<view class="info">{{items.driverName}}
+						<view class='cu-tag radius line-pink but'>{{items.authenticationStatus}}</view>
 					</view>
-					<view class="info">13333333333</view>
+					<view class="info">{{items.driverPhone}}</view>
 
-					<view class='cu-tag radius line-pink '>删除</view>
-					<view class='cu-tag radius line-pink '>修改</view>
-					<view class='cu-tag radius line-pink but'>更换手机号</view>
+					
 				</view>
 			</view>
+			<view class='cu-tag radius line-pink ' @click="deleteSJ(items)">删除</view>
+			<view class='cu-tag radius line-pink ' @click="driverIdentityEdit(items)">修改</view>
+			<view class='cu-tag radius line-pink but'>更换手机号</view>
+			<hr>
+			</view>
 		</view>
 	</view>
 
@@ -66,6 +80,11 @@
 					currentPage:1,
 					commonId:"",
 				},
+				businessman:[],
+				drivers:[],
+				deletes:{
+					id:"",
+				},
 			};
 		},
 		onLoad(){
@@ -75,15 +94,84 @@
 			...mapState(['hasLogin','userInfo'])
 		},
 		methods: {
+			driverIdentityEdit(items){
+				uni.navigateTo({
+					url: `/pageD/identity/driverIdentityEdit?id=${items.id}`
+				})
+			},
+			companyEdit(item){
+				uni.navigateTo({
+					url: `/pageD/identity/companyIdentityEdit?id=${item.id}`
+				})
+			},
+			deleteLS(item){	
+					uni.showModal({
+						// title: '登录提示',
+						content: '身份信息删除后不可恢复,是否确定删除?',
+						showCancel: true,
+						confirmText: '确定',
+						success: (e) => {
+							this.$api.doRequest('post','/identityAuthenticationInfo/api/deleteIdentityAuthenticationInfo',{id:item.id},'application/json;charset=UTF-8').then(res => {
+								this.procurementPlanInfos = res.data.data.records
+								if (res.errmsg == "Success") {
+									this.$api.msg('删除成功!')
+									this.getList()
+									return
+								}
+								
+							})
+							.catch(res => {
+								uni.showToast({
+									title: res.errmsg,
+									icon:'none',
+									duration: 2000
+								})
+							});
+						},
+						fail: () => {},
+						complete: () => {}
+					})
+			},
+			deleteSJ(item){
+				console.log(item.driverName)
+				this.deletes = {}
+				this.deletes.id = item.id
+					uni.showModal({
+						// title: '登录提示',
+						content: '身份信息删除后不可恢复,是否确定删除?',
+						showCancel: true,
+						confirmText: '确定',
+						success: (e) => {
+							this.$api.doRequest('get','/driverViewInfo/api/deleteDriver',this.deletes,'application/json;charset=UTF-8').then(res => {
+								this.procurementPlanInfos = res.data.data.records
+								if (res.errmsg == "Success") {
+									this.$api.msg('删除成功!')
+									this.getList()
+									return
+								}
+								
+							})
+							.catch(res => {
+								uni.showToast({
+									title: res.errmsg,
+									icon:'none',
+									duration: 2000
+								})
+							});
+						},
+						fail: () => {},
+						complete: () => {}
+					})
+				},
 			getList(){
-				
 				this.identityAuthenticationInfo.commonId = this.userInfo.id
-				console.log(12313)
 			this.$api.doRequest('get', '/identityAuthenticationInfo/selectIdentityAuthenticationInfo', {pageSize:10,
 					currentPage:1,
 					commonId:this.userInfo.id},'application/json;charset=UTF-8').then(res => {
 				console.log("成功连接")
-					this.procurementPlanInfos = res.data.data
+			
+					
+					this.businessman = res.data.data.records
 				})
 				.catch(res => {
 					uni.showToast({
@@ -92,6 +180,23 @@
 						duration: 2000
 					})
 				});
+				
+				this.$api.doRequest('get', '/driverViewInfo/selectDriverInfoPage', {pageSize:10,
+						currentPage:1,
+						commonId:this.userInfo.id,flag:0},'application/json;charset=UTF-8').then(res => {
+					console.log("成功连接")
+					
+						this.drivers = res.data.data.records
+						
+						console.log(this.drivers,"skalkdkk")
+					})
+					.catch(res => {
+						uni.showToast({
+							title: res.errmsg,
+							icon: 'none',
+							duration: 2000
+						})
+					});
 				},
 			adddriver(index) {
 				if (index == 1) {
@@ -104,14 +209,14 @@
 					})
 				}
 			},
-			navToDetailPage(index) {
+			navToDetailPage(index,item) {
 				if (index == 1) {
 					uni.navigateTo({
-						url: `/pageD/identity/companyIdentityLook`
+						url: `/pageD/identity/companyIdentityLook?id=${item.id}`
 					})
 				} else {
 					uni.navigateTo({
-						url: `/pageD/identity/driverIdentityLook`
+						url: `/pageD/identity/driverIdentityLook?id=${item.id}`
 					})
 				}
 

BIN
static/img/authentication/drive(2).png


BIN
static/img/authentication/drive(3).png


BIN
static/img/authentication/drive.png


BIN
static/img/authentication/identitylow(2).png


BIN
static/img/authentication/identitylow(3).png


BIN
static/img/authentication/identitylow.png


BIN
static/img/authentication/identityup(2).png


BIN
static/img/authentication/identityup(3).png


BIN
static/img/authentication/identityup.png


BIN
static/img/authentication/return(2).png


BIN
static/img/authentication/return(3).png


BIN
static/img/authentication/return.png


BIN
static/img/authentication/travel(2).png


BIN
static/img/authentication/travel(3).png


BIN
static/img/authentication/travel.png