zhongtianhaoyuan 3 лет назад
Родитель
Сommit
aaf4ed66eb

+ 4 - 2
pageD/identity/companyIdentity.vue

@@ -345,9 +345,11 @@
 				this.identityAuthenticationInfo.cardAddressUrl = this.id.toString()
 				this.identityAuthenticationInfo.payeeAddressUrl = this.bankid.toString()
 				if(this.consentStatus1 == true){
-					this.identityAuthenticationInfo.customerTypeFlag = "个人"
+					this.identityAuthenticationInfo.customerTypeFlag = "1"
+					this.identityAuthenticationInfo.customerType = "个人"
 				}else if(this.consentStatus == true){
-					this.identityAuthenticationInfo.customerTypeFlag = "企业"
+					this.identityAuthenticationInfo.customerTypeFlag = "2"
+					this.identityAuthenticationInfo.customerType = "企业"
 				}
 				this.$api.doRequest('post', '/identityAuthenticationInfo/api/addIdentityAuthenticationInfo', this
 						.identityAuthenticationInfo)

+ 234 - 198
pageD/identity/driverIdentity.vue

@@ -1,17 +1,15 @@
 <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="id1 != ''">
-					<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 style="margin: 0 auto;" v-if="id1 != ''" @click="idUp">
+				<image v-bind:src="id1" class="picture"></image>
 			</view>
+			<view style="margin: 0 auto;" v-if="id2 != ''" @click="idLow">
+				<image v-bind:src="id2" class="picture"></image>
+			</view>
+		</view>
+		<view class="information">
 			<view class="c-row b-b">
 				<text class="tit">姓名</text>
 				<view class="con-list">
@@ -34,14 +32,14 @@
 				<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 class="con-list">
+						<!-- style='width:70%;position:relative;margin-left: 200px;' -->
+						<input v-model='verifyCode' placeholder="请输入验证码" type="text">
+					</view>
+
 				</view>
-			
-			</view>
 			</view>
-			<view class="c-row b-b">
+			<view class="c-row ">
 				<text class="tit">常驻城市</text>
 				<view class="con-list">
 					<input placeholder="请填写常驻城市" name="input" v-model="DriverViewInfo.residentCityProvincial"></input>
@@ -49,10 +47,15 @@
 			</view>
 
 
-		</view>
+			<!-- </view>
 		<view class="margin-top">
-			<view class="labels">货车信息</view>
-			<view class="labels"> 车辆 -?</view>
+		<view class="information">	
+			<view class="c-row ">
+				<text class="tit">车辆 -?</text>
+				<view class="con-list">
+					<image src="../../static/img/jiaoyi/shanchu@2x.png" class="eliminate"></image>
+				</view>
+			</view>
 			<view class="c-row b-b">
 				<text class="tit">车牌号</text>
 				<view class="con-list">
@@ -61,23 +64,23 @@
 			</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>
@@ -85,19 +88,27 @@
 					<input placeholder="请填写载重(吨)" name="input" v-model="driverCarInfoList.carLoad"></input>
 				</view>
 			</view>
-			<view class="c-row b-b">
+			<view class="c-row ">
 				<text class="tit">出厂年份</text>
 				<view class="con-list">
 					<input placeholder="请填写出厂年份" name="input" v-model="driverCarInfoList.yearManufacture"></input>
 				</view>
 			</view>
+			
 
-			<button type="default">添加车辆</button>
+			
+			</view>	
+           <button  class="btn">添加车辆</button>
+		</view> -->
+			<!-- <view class="margin-top">
+			<view class="information">	
 
-		</view>
-		<view class="margin-top">
-			<view class="labels">账户信息</view>
-			<view class="labels"> 账户 -?</view>
+			<view class="c-row ">
+				<text class="tit">账户 -?</text>
+				<view class="con-list">
+					<image src="../../static/img/jiaoyi/shanchu@2x.png" class="eliminate"></image>
+				</view>
+			</view>
 			<view class="c-row b-b">
 				<text class="tit">账户类型</text>
 				<view class="con-list">
@@ -140,7 +151,8 @@
 					<input placeholder="请输入收款人身份证号" name="input" v-model="driverPayeeInfoList.payeeNumberCard"></input>
 				</view>
 			</view>
-			<button type="default">添加账号</button>
+			</view >	
+			<button class="btn">添加账号</button>
 		</view>
 		<view class="margin-top">
 			<view class="labels">上传附件</view>
@@ -163,59 +175,56 @@
 		</view>
 		<view class="padding flex flex-direction">
 			<button class="cu-btn bg-red margin-tb-sm lg" @click="commit">提交</button>
+		</view>-->
+
 		</view>
-	</view>
+		<button class="btns btn" @click="jumpUrl">下一步</button>
 	</view>
 </template>
 
 <script>
 	import {
-	    mapState 
+		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:[],
+				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: "../../static/img/authentication/identityup(2).png",
+				id2: "../../static/img/authentication/identitylow(2).png",
+				travels: "",
+				drives: "",
+				practices: "",
+				operates: "",
 				sendText: '获取验证码',
-                sendDisabled: false,
+				sendDisabled: false,
 				sendText: '获取验证码',
 				ModelIndex: '高栏',
 				Model: '',
 				ModelType: ["高栏", "集装箱", "自卸车"],
-				carLongIndex: '13',
 				carLong: '',
-				carLongIndex:0,
+				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,
+				verifyCode: "",
+				codestatus: false,
 				customerPhone: '',
-				addressUrl:[],
+				addressUrl: [],
+				personImgs:{},
+
 			}
 		},
 		computed: {
-			...mapState(['hasLogin','userInfo'])
+			...mapState(['hasLogin', 'userInfo'])
 		},
 		methods: {
 			// phoneinput(e) {
@@ -223,81 +232,40 @@
 			// 		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
-							}
-						})
-					}
+			jumpUrl() {
+				if (this.id[0] == "" || this.id[0] == null) {
+					this.$api.msg('请上传身份证正面!')
+					return
+				}
+				if (this.id[1] == "" || this.id[1] == null) {
+					this.$api.msg('请上传身份证反面!')
+					return
+				}
+				if (!this.DriverViewInfo.driverName) {
+					this.$api.msg('姓名不能为空')
+					return
+				}
+				if (!this.DriverViewInfo.numberCard) {
+					this.$api.msg('身份证号不能为空')
+					return
+				}
+				if (!this.DriverViewInfo.driverPhone) {
+					this.$api.msg('手机号不能为空')
+					return
+				}
+				if (!this.DriverViewInfo.residentCityProvincial) {
+					this.$api.msg('常住城市不能为空')
+					return
+				}
+				this.DriverViewInfo.cardAddressUrl = this.id.toString()
+				var model = JSON.stringify(this.DriverViewInfo);
+				uni.navigateTo({
+					url: `/pageD/identity/driverIdentityTwo?DriverViewInfo=` + model,
 				})
-				},
-				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
-					console.log(that.DriverViewInfo.driverPhone)
+				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
@@ -347,7 +315,7 @@
 				this.carLongIndex = e.detail.value
 				this.carLong = this.carLongType[this.carLongIndex];
 			},
-			idUp(){
+			idUp() {
 				var that = this
 				wx.chooseImage({
 					success: function(res) {
@@ -357,15 +325,28 @@
 							name: 'file',
 							success(res) {
 								var data = res.data
-								var strToObj = JSON.parse(data)			
+								var strToObj = JSON.parse(data)
 								that.id[0] = strToObj.url
 								that.id1 = strToObj.url
+								that.personImgs.personImg = that.id[0]
+								that.$api.doRequest('get', '/driverViewInfo/personShibie', that.personImgs).then(res => {
+									console.log("成功!")
+									 that.DriverViewInfo.driverName = res.data.data.recPerson
+									  that.DriverViewInfo.numberCard = res.data.data.recPersonNo
+									  console.log(that.DriverViewInfo.driverName)
+								}).catch(res => {
+									uni.showToast({
+										title: res.data.message,
+										icon: 'none',
+										duration: 2000
+									})
+								})
 							}
 						})
 					}
-				})
+				})	
 			},
-			idLow(){
+			idLow() {
 				var that = this
 				wx.chooseImage({
 					success: function(res) {
@@ -375,7 +356,7 @@
 							name: 'file',
 							success(res) {
 								var data = res.data
-								var strToObj = JSON.parse(data)			
+								var strToObj = JSON.parse(data)
 								that.id[1] = strToObj.url
 								that.id2 = strToObj.url
 							}
@@ -391,78 +372,86 @@
 				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({
-						title: res.data.message,
-						icon: 'none',
-						duration: 2000
+				console.log(this.DriverViewInfo, "司机对象")
+				this.$api.doRequest('post', '/driverViewInfo/api/addInfo', this.DriverViewInfo).then(res => {}).catch(
+					res => {
+						uni.showToast({
+							title: res.data.message,
+							icon: 'none',
+							duration: 2000
+						})
 					})
-				})
 			},
 		}
 	}
 </script>
 
-<style>
+<style scoped>
 	.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;
-		}
+		background-color: #F5F6FA;
+	}
+
+	.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: #AFB3BF;
+		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;
@@ -535,4 +524,51 @@
 		background: #22C572;
 		color: #fff;
 	}
+
+	.picture {
+		width: 100%;
+		height: 220px;
+		text-align: center;
+		margin-top: 10px;
+	}
+
+	.tit {
+		font-size: 14px;
+	}
+
+	.labels {
+		margin: 5px 10px;
+	}
+
+	.information {
+		margin-top: 10px;
+		background-color: #FFFFFF;
+		border-radius: 20px;
+	}
+
+	.btn {
+		margin-top: 10px;
+		background-color: #FFFFFF;
+		border-radius: 25px;
+		border: none;
+	}
+
+	/* //清除 */
+	.eliminate {
+		width: 20px;
+		height: 20px;
+		float: right;
+	}
+
+	/* 下一步 */
+	.btn {
+		margin-top: 10px;
+		background-color: #FFFFFF;
+		border-radius: 25px;
+		border: none;
+	}
+
+	.btns {
+		background-color: #22C572;
+	}
 </style>

+ 185 - 0
pageD/identity/driverIdentityThree.vue

@@ -0,0 +1,185 @@
+<template>
+	<view class="center">
+		<view class="picture">
+			<view style="margin: 0 auto;" v-if="travels != ''"  @click="travel">
+				<image v-bind:src = "travels"  class="picture"></image>
+			</view>
+			<view style="margin: 0 auto;" v-if="drives != ''"  @click="drive">
+				<image v-bind:src = "drives"  class="picture"></image>
+			</view>
+			<view style="margin: 0 auto;" v-if="practices != ''"  @click="practice">
+				<image v-bind:src = "practices"  class="picture"></image>
+			</view>
+			<view style="margin: 0 auto;" v-if="operates != ''" class="fujian" @click="operate">
+				<image v-bind:src = "operates"  class="picture"></image> 
+			</view>
+			 <button class="btns btn"  @click="commit">提交</button>
+
+		</view>
+
+	</view>
+</template>
+
+<script>
+	import {
+		mapState
+	} from 'vuex';
+	export default {
+		data() {
+			return {
+				travels: "../../static/img/authentication/travel(3).png",
+				drives: "../../static/img/authentication/drive(3).png",
+				practices: "../../static/img/authentication/travel(3).png",
+				operates: "../../static/img/authentication/drive(3).png",
+				DriverViewInfo: {	
+				},
+				addressUrl:[],
+			}
+		},
+		computed: {
+			...mapState(['hasLogin', 'userInfo'])
+		},
+		onLoad(options){
+			this.DriverViewInfo = JSON.parse(options.DriverViewInfo)
+		},
+		methods:{
+			commit() {
+				if (this.addressUrl[0] == "" || this.addressUrl[0] == null) {
+					console.log(this.addressUrl)
+					this.$api.msg('请上传行驶证!')
+					return
+				}
+				if (this.addressUrl[1] == "" || this.addressUrl[1] == null) {
+					console.log(this.addressUrl)
+					this.$api.msg('请上传驾驶证!')
+					return
+				}
+				if (this.addressUrl[2] == "" || this.addressUrl[2] == null) {
+					console.log(this.addressUrl)
+					this.$api.msg('请上传道路运营证!')
+					return
+				}
+				if (this.addressUrl[3] == "" || this.addressUrl[3] == null) {
+					console.log(this.addressUrl)
+					this.$api.msg('请上传从业资格证')
+					return
+				}
+				this.DriverViewInfo.addressUrl = this.addressUrl.toString()
+				this.DriverViewInfo.commonId = this.userInfo.id
+				this.DriverViewInfo.pcFlag = 0
+				this.DriverViewInfo.compId = "2710b21efc1e4393930c5dc800010dc4"
+				console.log(this.DriverViewInfo,"司机对象")
+				return
+				this.$api.doRequest('post', '/driverViewInfo/api/addInfo', this.DriverViewInfo).then(res => {
+				}).catch(res => {
+					uni.showToast({
+						title: res.data.message,
+						icon: 'none',
+						duration: 2000
+					})
+				})
+			},
+			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)
+									}
+								})
+							}
+						})
+					},
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.center {
+		padding: 10px 20px;
+		background-color: #F5F6FA;
+	}
+	.picture{
+		width: 100%;
+		 height: 220px;
+		 text-align: center;
+		 margin-top: 10px;
+	}
+
+		
+	
+	.btn {
+		margin-top: 10px;
+		background-color: #FFFFFF;
+		border-radius: 25px;
+		border: none;
+	}
+	.btns{
+		background-color: #22C572;
+	}
+</style>

+ 375 - 0
pageD/identity/driverIdentityTwo.vue

@@ -0,0 +1,375 @@
+<template>
+	<view class="center">
+		<!-- 车辆信息 -->
+		<view class="information">
+			<view class="c-row">
+				<text class="tit">货车信息</text>
+				<view class="con-list">
+					<image v-bind:src="opencar" class="open" opencarboolean @click="opencarclick"></image>
+				</view>
+			</view>
+		</view>
+		<view class="informations" v-if="opencarboolean == true" v-for="(item , index) in driverCarInfoList"
+			:Key="index">
+			<view class="c-row ">
+				<text class="tit">车辆 -{{index+1}}</text>
+				<view class="con-list">
+					<image src="../../static/img/jiaoyi/shanchu@2x.png" class="eliminate" @click="carDel(index)"></image>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">车牌号</text>
+				<view class="con-list">
+					<input placeholder="请填写车牌号" name="input" v-model="item.carNumber"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">车型</text>
+				<picker @change="ModelChange" :value="ModelIndex" :range="ModelType" class="con-list">
+					<view class="picker " v-model="item.carModel">
+						{{ModelIndex>-1?ModelType[ModelIndex]:'请选择车型'}}
+					</view>
+				</picker>
+				<!-- </view> -->
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">不含车头车长(米)</text>
+				<picker @change="carLongChange" :value="carLongIndex" :range="carLongType" class="con-list">
+					<view class="picker" v-model="item.carLength">
+						{{carLongIndex>-1?carLongType[carLongIndex]:'请选择车长'}}
+					</view>
+				</picker>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">载重(吨)</text>
+				<view class="con-list">
+					<input placeholder="请填写载重(吨)" name="input" v-model="item.carLoad"></input>
+				</view>
+			</view>
+			<view class="c-row ">
+				<text class="tit">出厂年份</text>
+				<view class="con-list">
+					<input placeholder="请填写出厂年份" name="input" v-model="item.yearManufacture"></input>
+				</view>
+			</view>
+		</view>
+		<button class="btn" v-if="opencarboolean == true" @click="carAdd">
+				 <image src="../../static/img/jiaoyi/ic_fabu@3x.png" class="add"></image> 
+				 <texe>添加车辆</texe>
+				 </button>
+		<!-- 账户信息 -->
+		<view class="information">
+			<view class="c-row">
+				<text class="tit">账户信息</text>
+				<view class="con-list">
+					<image v-bind:src="openuser" class="open" openuserboolean @click="openuserclick"></image>
+				</view>
+			</view>
+		</view>
+
+		<view class="informations" v-if="openuserboolean == true" v-for="(items , index) in driverPayeeInfoList"
+			:Key="index">
+			<!-- <view class="labels"> 账户 -?</view> -->
+			<view class="c-row ">
+				<text class="tit">账户 -{{index+1}}</text>
+				<view class="con-list">
+					<image src="../../static/img/jiaoyi/shanchu@2x.png" class="eliminate" @click="userDel(index)"></image>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">账户类型</text>
+				<view class="con-list">
+					<input placeholder="请填写账户类型" name="input" v-model="items.accountType"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">银行卡照片(可选)</text>
+				<view class="con-list">
+					<input placeholder="请上传照片" name="input" v-model="items.payeeAddressUrl"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">银行卡号</text>
+				<view class="con-list">
+					<input placeholder="请输入银行卡号" name="input" v-model="items.bankCard"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">开户行</text>
+				<view class="con-list">
+					<input placeholder="请输入开户行" name="input" v-model="items.bankDeposit"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">开户支行</text>
+				<view class="con-list">
+					<input placeholder="请输入开户支行" name="input" v-model="items.bankDepositBranch"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">收款人姓名</text>
+				<view class="con-list">
+					<input placeholder="请输入收款人姓名" name="input" v-model="items.payeeName"></input>
+				</view>
+			</view>
+			<view class="c-row b-b">
+				<text class="tit">收款人身份证号</text>
+				<view class="con-list">
+					<input placeholder="请输入收款人身份证号" name="input" v-model="items.payeeNumberCard"></input>
+				</view>
+			</view>
+		</view>
+		<button class="btn" v-if="openuserboolean == true" @click="userAdd()">
+			 <image src="../../static/img/jiaoyi/ic_fabu@3x.png" class="add"></image> 
+			<text style="margin-top: -2px;">添加账户</text>
+			</button>
+		 <button class="btns btn"  @click="jumpUrl">下一步</button>
+	</view>
+	   
+	</view>
+</template>
+
+<script>
+	import {
+		mapState
+	} from 'vuex';
+	export default {
+		data() {
+			return {
+				opencar: "../../static/img/authentication/down2@3x.png",
+				openuser: "../../static/img/authentication/down2@3x.png",
+				opencarboolean: false,
+				openuserboolean: false,
+				driverCarInfoList: [{
+					carNumber: '',
+					carModel: "高栏",
+					carLength: "13",
+					carLoad: "",
+					yearManufacture: "",
+				}],
+				driverPayeeInfoList: [
+					{
+						accountType:"",
+						cardAddressUrl:"",
+						bankCard:"",
+						bankDeposit:"",
+						bankDepositBranch:"",
+						payeeName:"",
+						payeeNumberCard:"",
+					}
+				],
+				ModelIndex: 0,
+				Model: '',
+				ModelType: ["高栏", "集装箱", "自卸车"],
+				carLong: '',
+				carLongIndex: 0,
+				carLongType: ['13', '9.6', '8.2', '8.7', '11.7', '12.5', '13.7', '15', '16', '17.5'],
+				DriverViewInfo:{},
+			}
+		},
+		onLoad(options){
+			this.DriverViewInfo = JSON.parse(options.DriverViewInfo)
+		},
+		methods: {
+			jumpUrl(){
+				for(var i = 0 ; i < this.driverCarInfoList.length ; i++){
+					if (!this.driverCarInfoList[i].carNumber) {
+						this.$api.msg('车牌号不能为空')
+						return
+					}
+					if (!this.driverCarInfoList[i].carModel) {
+						this.$api.msg('车型不能为空')
+						return
+					}
+					if (!this.driverCarInfoList[i].carLength) {
+						this.$api.msg('车长不能为空')
+						return
+					}
+					if (!this.driverCarInfoList[i].carLoad) {
+						this.$api.msg('载重不能为空')
+						return
+					}
+					if (!this.driverCarInfoList[i].yearManufacture) {
+						this.$api.msg('出厂年份不能为空')
+						return
+					}
+				}
+				for(var i = 0 ; i < this.driverPayeeInfoList.length ; i++){
+					if (!this.driverPayeeInfoList[i].accountType) {
+						this.$api.msg('账户类型不能为空')
+						return
+					}
+					// if (!this.driverCarInfoList[i].cardAddressUrl) {
+					// 	this.$api.msg('银行卡照片不能为空')
+					
+					// }
+					if (!this.driverPayeeInfoList[i].bankCard) {
+						this.$api.msg('银行卡号不能为空')
+						return
+					}
+					if (!this.driverPayeeInfoList[i].bankDeposit) {
+						this.$api.msg('开户行不能为空')
+						return
+					}
+					if (!this.driverPayeeInfoList[i].bankDepositBranch) {
+						this.$api.msg('开户支行不能为空')
+						return
+					}
+					if (!this.driverPayeeInfoList[i].payeeName) {
+						this.$api.msg('收款人姓名不能为空')
+						return
+					}
+					if (!this.driverPayeeInfoList[i].payeeNumberCard) {
+						this.$api.msg('收款人身份证号不能为空')
+						return
+					}
+				}
+					this.DriverViewInfo.driverCarInfoList = this.driverCarInfoList
+					this.DriverViewInfo.driverPayeeInfoList = this.driverPayeeInfoList
+					var model = JSON.stringify(this.DriverViewInfo);
+					console.log(this.DriverViewInfo,"sjijsoi")
+				uni.navigateTo({
+					url: `/pageD/identity/driverIdentityThree?DriverViewInfo=` + model
+				})
+			},
+			carAdd() {
+				this.driverCarInfoList.push({
+					carNumber: '',
+					carModel: "",
+					carLength: "",
+					carLoad: "",
+					yearManufacture: "",
+				})
+			},
+			userAdd() {
+				this.driverPayeeInfoList.push({
+					accountType:"",
+					cardAddressUrl:"",
+					bankCard:"",
+					bankDeposit:"",
+					bankDepositBranch:"",
+					payeeName:"",
+					payeeNumberCard:"",
+				})
+			},
+			carDel(index) {
+				if (this.driverCarInfoList.length > 1) {
+					this.driverCarInfoList.splice(index, 1)
+				}
+			},
+			userDel(index) {
+				if (this.driverPayeeInfoList.length > 1) {
+					this.driverPayeeInfoList.splice(index, 1)
+				}
+			},
+			ModelChange(e) {
+				this.ModelIndex = e.detail.value
+				this.Model = this.ModelType[this.ModelIndex];
+				
+				this.driverCarInfoList[this.driverCarInfoList.length - 1].carModel = this.ModelType[this.ModelIndex];
+			},
+			carLongChange(e) {
+				this.carLongIndex = e.detail.value
+				this.carLong = this.carLongType[this.carLongIndex];
+				this.driverCarInfoList[this.driverCarInfoList.length - 1].carLength = this.carLongType[this.carLongIndex];
+			},
+			opencarclick() {
+				if (this.opencarboolean == false) {
+					this.opencarboolean = true;
+					this.opencar = "../../static/img/authentication/up2%20(3).png"
+				} else if (this.opencarboolean == true) {
+					this.opencarboolean = false;
+					this.opencar = "../../static/img/authentication/down2@3x.png"
+				}
+			},
+			openuserclick() {
+				if (this.openuserboolean == false) {
+					this.openuserboolean = true;
+					this.openuser = "../../static/img/authentication/up2%20(3).png"
+				} else if (this.openuserboolean == true) {
+					this.openuserboolean = false;
+					this.openuser = "../../static/img/authentication/down2@3x.png"
+				}
+			}
+		}
+	}
+</script>
+
+<style scoped>
+	.center {
+		padding: 10px 20px;
+		background-color: #F5F6FA;
+	}
+
+	.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;
+		line-height: 36px;
+	}
+
+	.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: #AFB3BF;
+		line-height: 40rpx;
+		text-align: right;
+		padding-right: 20rpx;
+		font-size: 14px;
+	}
+
+	.open {
+		width: 30px;
+		height: 20px;
+	}
+
+	.information {
+		margin-top: 10px;
+		width: 100%;
+		height: 56px;
+		background-color: #FFFFFF;
+		border-radius: 16px;
+	}
+
+	.informations {
+		margin-top: 10px;
+		background-color: #FFFFFF;
+		border-radius: 20px;
+	}
+
+	.btn {
+		margin-top: 10px;
+		background-color: #FFFFFF;
+		border-radius: 25px;
+		border: none;
+	}
+	.btns{
+		background-color: #22C572;
+	}
+	.add{
+		width: 26px;
+		height: 26px;
+		margin-top: 10px;
+		/* background-image: url(../../static/img/jiaoyi/ic_fabu@3x.png); */
+	}
+
+	/* 清除 */
+	.eliminate {
+		width: 20px;
+		height: 20px;
+		float: right;
+	}
+</style>

+ 18 - 0
pages.json

@@ -338,6 +338,24 @@
             }
             
         },
+		{
+		    "path" : "pageD/identity/driverIdentityTwo",
+		    "style" :                                                                                    
+		    {
+		        "navigationBarTitleText": "司机认证",
+		        "enablePullDownRefresh": false
+		    }
+		    
+		},
+		{
+		    "path" : "pageD/identity/driverIdentityThree",
+		    "style" :                                                                                    
+		    {
+		        "navigationBarTitleText": "司机认证",
+		        "enablePullDownRefresh": false
+		    }
+		    
+		},
 		{
 		    "path" : "pageD/identity/driverIdentityLook",
 		    "style" :                                                                                    

+ 1 - 3
pages/attestation/index.vue

@@ -40,9 +40,7 @@
 					<view class="info">{{items.driverName}}
 						<view class='cu-tag radius line-pink but'>{{items.authenticationStatus}}</view>
 					</view>
-					<view class="info">{{items.driverPhone}}</view>
-
-					
+					<view class="info">{{items.driverPhone}}</view>		
 				</view>
 			</view>
 			<view class='cu-tag radius line-pink ' @click="deleteSJ(items)">删除</view>

BIN
static/img/authentication/down2.png


BIN
static/img/authentication/down2@2x.png


BIN
static/img/authentication/down2@3x.png


BIN
static/img/authentication/up2 (1).png


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


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