ccjgmwz 3 năm trước cách đây
mục cha
commit
b0492f0a66

+ 5 - 8
pageD/identity/driverIdentity.vue

@@ -39,14 +39,14 @@
 			<view class="c-row b-b">
 				<text class="tit">手机号</text>
 				<view class="con-list">
-					<input placeholder="请填写手机号" type="number" maxlength = "11" @input='phoneinput' name="input" v-model="DriverViewInfo.driverPhone"></input>
+					<input placeholder="请填写手机号" maxlength = "11" @input='phoneinput' name="input" v-model="DriverViewInfo.driverPhone"></input>
 				</view>
 			</view>
 			<view style='padding:10px;' class="c-row b-b">
-				<button :class='codestatus&&!sendDisabled?"active":""' @click='getcode'
-					class='getcode'>{{sendText}}</button>
+				<button :class='!sendDisabled?"active getcode":"getcode"' @click='getcode'
+					>{{sendText}}</button>
 					<view class="con-list">
-						<input v-model='verifyCode'  maxlength = "6"  placeholder="请输入验证码" type="number">
+						<input v-model='verifyCode' maxlength = "6"  placeholder="请输入验证码" type="text">
 					</view>
 			</view>
 			<view class="c-row ">
@@ -127,8 +127,6 @@
 				this.region = e.province.label + '-' + e.city.label
 				this.DriverViewInfo.residentCityProvincial = e.province.label + e.city.label
 			},
-			//achao
-			//此处加载较慢,判断过多,获取验证码修改未异步,待修改
 			jumpUrl() {
 				if (this.id[0] == "" || this.id[0] == null) {
 					this.$api.msg('请上传身份证正面!')
@@ -480,7 +478,7 @@
 		border: none;
 	}
 
-	.getcode.active {
+	.active {
 		background: #22C572;
 		color: #fff;
 	}
@@ -530,7 +528,6 @@
 
 	.btns {
 		background-color: #22C572;
-		color: white;
 	}
 	.words{
 		font-size: 18px;

+ 30 - 59
pageD/identity/driverIdentityEdit.vue

@@ -1,7 +1,6 @@
 <template>
 	<view class="center">
 		<view>
-
 			<view>
 				<view style="margin: 0 auto;" v-if="id != ''" @click="idUp">
 					<image v-bind:src="id1" class="picture"></image>
@@ -12,8 +11,6 @@
 				</view>
 			</view>
 			<view class="personalcss">
-
-
 				<view class="c-row b-b">
 					<text class="tit">姓名</text>
 					<view class="con-list">
@@ -33,9 +30,9 @@
 					</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;'>
+					<button :class='!sendDisabled?"getcode active":"getcode"' @click='getcode'
+						>{{sendText}}</button>
+					<view style='width:70%;position:relative;margin-left: 200rpx;'>
 						<view class="con-list">
 							<!-- style='width:70%;position:relative;margin-left: 200px;' -->
 							<input v-model='verifyCode' placeholder="请输入验证码" type="text">
@@ -43,11 +40,11 @@
 
 					</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>
+						<view @click='regionchange'>{{region}}</view>
+						<u-picker :params='params1' @confirm='regionpicker' mode="region" v-model="show1"></u-picker>
 					</view>
 				</view>
 			</view>
@@ -59,7 +56,7 @@
 			<view class="c-row">
 				<text class="tit" style="line-height: 36px;">货车信息</text>
 				<view class="con-list">
-					<image v-bind:src="opencar" class="open" opencarboolean @click="opencarclick"></image>
+					<image v-bind:src="opencar" class="open"  @click="opencarclick"></image>
 				</view>
 			</view>
 		</view>
@@ -270,6 +267,10 @@
 				params: {
 					year: true,
 				},
+				params1: {
+					province: true,
+					city: true,
+				},
 				verifyCode: "",
 				codestatus: false,
 				customerPhone: '',
@@ -278,6 +279,7 @@
 				openuserboolean: false,
 				carchength: true,
 				show: false,
+				show1: false,
 				opencar: "../../static/img/authentication/down2@3x.png",
 				openuser: "../../static/img/authentication/down2@3x.png",
 				bankimg: "",
@@ -285,6 +287,7 @@
 				bankIndex: -1,
 				bankType: [],
 				year:[],
+				region:"请选择常驻城市",
 			}
 		},
 		computed: {
@@ -307,6 +310,15 @@
 			this.getList(option.id)
 		},
 		methods: {
+			regionchange() {
+				this.show1 = true
+			},
+			regionpicker(e) {
+				// this.deptList.outputPrivate = e.province.label
+				// this.deptList.outputCity = e.city.label
+				this.region = e.province.label + '-' + e.city.label
+				this.DriverViewInfo.residentCityProvincial = e.province.label + e.city.label
+			},
 			yearpicker(e, index) {
 				this.year[index] = e.year
 				this.driverCarInfoList[index].yearManufacture = e.year
@@ -398,6 +410,7 @@
 							this.operates = this.address[2]
 							this.practices = this.address[3]
 						}
+						this.region = this.DriverViewInfo.residentCityProvincial
 					})
 					.catch(res => {
 						if(res.errmsg){
@@ -588,10 +601,10 @@
 			},
 			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)) {
+					console.log(that.DriverViewInfo.driverPhone)
 					this.$api.doRequest('get', '/commonUser/sendVerifyCode', {
-							customerPhone: that.DriverViewInfo.driverPhone
+							phone: that.DriverViewInfo.driverPhone
 						}).then(res => {
 							if (res.data.code == 200) {
 								that.sendDisabled = true
@@ -648,8 +661,7 @@
 	}
 
 	.labels {
-		font-size: 16px;
-		font-weight: 400;
+		font-size: 14px;
 	}
 
 	.c-row {
@@ -690,58 +702,17 @@
 		background: #F5F6F9;
 		height: 30px;
 		line-height: 30px;
+		
 	}
-
-	.getcode.active {
-		border: none;
+	.active {
+		background: #22C572;
+		color: #fff;
 	}
-
 	.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;

+ 0 - 1
pages/sale/information.vue

@@ -167,7 +167,6 @@
 			this.loadData()
 			var userInfo = uni.getStorageSync("userInfo")
 			var that = this
-			console.log("userInfo",userInfo)
 			this.$api.doRequest('get', '/salePlanInfo/getTips', {phone:userInfo.phone}).then(res => {
 				if (res.data.data) {
 					let name = 'myTip';

+ 5 - 0
pages/sale/newsinfo.vue

@@ -172,6 +172,11 @@
 						uni.hideLoading()
 					}).then(res => {
 						let data = res.data
+						for(var i=0;i<data.length;i++){
+							if(data[i].title.length > 20){
+								data[i].title = data[i].title.substring(0,20) + "..."
+							}
+						}
 						that.newsInfo = data
 						uni.hideLoading()
 					})

+ 4 - 4
pages/user/setUp.vue

@@ -1,21 +1,21 @@
 <template>
 	<view class="container">
-		<view class=" flex headPortrait justify-between">
+		<view class=" flex headPortrait justify-between" @click="switchPicture">
 			<view class="title">头像</view>
 			<view class="nextStep flex">
 				<view class="pictures">
 					<image :src="headUrl" class="picture"></image>
 				</view>
-				<image src="../../static/img/myimg/gengduo1@3x.png" class="arrow" @click="switchPicture"></image>
+				<image src="../../static/img/myimg/gengduo1@3x.png" class="arrow" ></image>
 			</view>
 		</view>
-		<view class="flex headPortrait justify-between">
+		<view class="flex headPortrait justify-between" @click="nickname">
 			<view class="title">昵称</view>
 			<view class="nextStep flex">
 				<view class="username">
 					{{username}}
 					</view>
-				<image src="../../static/img/myimg/gengduo1@3x.png" class="arrow" @click="nickname"></image>
+				<image src="../../static/img/myimg/gengduo1@3x.png" class="arrow" ></image>
 			</view>
 		</view>
 	</view>