gjy 3 éve
szülő
commit
788f14c558

+ 2 - 2
components/ossutil/uploadFile.js

@@ -14,9 +14,9 @@ const Crypto = require('./crypto.js');
  */
  */
 const uploadFile = function(type, filePath, dir, successc, failc) {
 const uploadFile = function(type, filePath, dir, successc, failc) {
 	console.log('type', type)
 	console.log('type', type)
-	if (!filePath || filePath.length < 9) {
+	if (!filePath ) {
 		uni.showModal({
 		uni.showModal({
-			title: '图片错误',
+			title: '图片上传错误',
 			content: '请重试',
 			content: '请重试',
 			showCancel: false,
 			showCancel: false,
 		})
 		})

+ 12 - 4
pages/goodSource/index.vue

@@ -62,7 +62,7 @@
 						</view>
 						</view>
 						<view class="right gray">
 						<view class="right gray">
 							<!-- {{good.createDate}} -->
 							<!-- {{good.createDate}} -->
-							{{$helper.changeTime(good.createDate)}}
+							{{$helper.changeTime(good.updateDate)}}
 						</view>
 						</view>
 						<view class="flex flex-space-between yf-style">
 						<view class="flex flex-space-between yf-style">
 							<view class="left">
 							<view class="left">
@@ -70,10 +70,12 @@
 									<view class="gray mr20">货距 {{good.cargoDistance}}km</view>
 									<view class="gray mr20">货距 {{good.cargoDistance}}km</view>
 									<view class="gray ">运距 {{good.distance}}km</view>
 									<view class="gray ">运距 {{good.distance}}km</view>
 								</view>
 								</view>
-								<view class="flex gray row">
+								<view class="u-flex-wrap flex gray row ">
 									<view>{{good.goodsName}} | </view>
 									<view>{{good.goodsName}} | </view>
 									<!-- <u-line direction="col"></u-line> -->
 									<!-- <u-line direction="col"></u-line> -->
-									<view>{{carLength(good)}} | {{carType(good)}} | {{carWeight(good)}}</view>
+									<view> {{carLength(good)}} | </view>
+									<view>{{carType(good)}} | </view>
+									<view>{{carWeight(good)}}</view>
 								</view>
 								</view>
 								<view class="flex row">
 								<view class="flex row">
 									<view class="row-tips">{{good.taskDescription}}</view>
 									<view class="row-tips">{{good.taskDescription}}</view>
@@ -188,6 +190,9 @@
 				// #ifdef APP-PLUS
 				// #ifdef APP-PLUS
 				this.getLngLat();
 				this.getLngLat();
 				// #endif
 				// #endif
+				if(!this.startPlace.selected){
+					this.startPlace.selected = ''
+				}
 			}
 			}
 			if (uni.getStorageSync('sPlaceObj')) {
 			if (uni.getStorageSync('sPlaceObj')) {
 				this.endPlace = uni.getStorageSync('sPlaceObj');
 				this.endPlace = uni.getStorageSync('sPlaceObj');
@@ -412,6 +417,7 @@
 								});
 								});
 							}
 							}
 							uni.hideLoading()
 							uni.hideLoading()
+							
 						}
 						}
 					}
 					}
 				});
 				});
@@ -575,7 +581,9 @@
 		width: 100%;
 		width: 100%;
 		position: relative;
 		position: relative;
 	}
 	}
-
+.u-flex-wrap{
+	flex-wrap: wrap;
+}
 	.fixed,
 	.fixed,
 	.fixed1 {
 	.fixed1 {
 		background: linear-gradient(97deg, #4FABFD 0%, #2772FB 100%);
 		background: linear-gradient(97deg, #4FABFD 0%, #2772FB 100%);

+ 6 - 4
pages/mine/editDriverCertification.vue

@@ -374,7 +374,7 @@
 
 
 			},
 			},
 			next(val) {
 			next(val) {
-				console.log(111111111111)
+				// console.log(111111111111)
 				// if (this.validate()) return
 				// if (this.validate()) return
 				uni.$u.route('/pages/mine/editDriverCertificationNext', {
 				uni.$u.route('/pages/mine/editDriverCertificationNext', {
 					data: JSON.stringify(this.dataDetails),
 					data: JSON.stringify(this.dataDetails),
@@ -687,13 +687,12 @@
 		justify-content: center;
 		justify-content: center;
 		background: white;
 		background: white;
 		padding: 40rpx 20rpx 50rpx 20rpx;
 		padding: 40rpx 20rpx 50rpx 20rpx;
-
 		.next-btn {
 		.next-btn {
-			background: #F1F3F6;
+			background: rgb(39, 114, 251);
 			width: 90%;
 			width: 90%;
 			padding: 20rpx 20rpx;
 			padding: 20rpx 20rpx;
 			text-align: center;
 			text-align: center;
-			color: #C5CAD4;
+			color: #fff;
 			border-radius: 50rpx;
 			border-radius: 50rpx;
 		}
 		}
 	}
 	}
@@ -722,4 +721,7 @@
 		height: 80rpx;
 		height: 80rpx;
 		z-index: 9;
 		z-index: 9;
 	}
 	}
+	/deep/.u-radio{
+		margin-right:10px;
+	}
 </style>
 </style>

+ 1 - 1
pages/mine/manageBankCards/index.vue

@@ -128,7 +128,7 @@
 						driverId: this.userInfo.driverId,
 						driverId: this.userInfo.driverId,
 					}).then(res => {
 					}).then(res => {
 						if (res.code == '200') {
 						if (res.code == '200') {
-							debugger
+							// debugger
 							this.bankList = res.data
 							this.bankList = res.data
 							for (let i = 0; i < this.bankList.length; i++) {
 							for (let i = 0; i < this.bankList.length; i++) {
 								let _obj = this.bankList[i]
 								let _obj = this.bankList[i]

+ 13 - 4
pages/news/index.vue

@@ -2,7 +2,7 @@
 	<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback"
 	<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback"
 		style="background-color: #F5F6FA;">
 		style="background-color: #F5F6FA;">
 		<u-navbar title="消息中心" leftIconSize='0' :bgColor="bgColor" :placeholder='true' leftIconColor="#fff"
 		<u-navbar title="消息中心" leftIconSize='0' :bgColor="bgColor" :placeholder='true' leftIconColor="#fff"
-			titleStyle='color:#fff' rightText='一键已读' @rightClick="rightClick">
+			titleStyle='color:#fff' rightText='全部已读' @rightClick="rightClick">
 		</u-navbar>
 		</u-navbar>
 		<view class="top-bgc"></view>
 		<view class="top-bgc"></view>
 		<view class="content">
 		<view class="content">
@@ -24,7 +24,7 @@
 						</view>
 						</view>
 					</view>
 					</view>
 					<view class="row2 flex flex-space-between align-center">
 					<view class="row2 flex flex-space-between align-center">
-						<view class="text point">
+						<view class="text point1">
 							{{item.newsContent}}
 							{{item.newsContent}}
 						</view>
 						</view>
 						<view class="red-point" v-if="item.newsFlag==0"></view>
 						<view class="red-point" v-if="item.newsFlag==0"></view>
@@ -192,7 +192,7 @@
 						pageSize: page.size,
 						pageSize: page.size,
 						currentPage: page.num,
 						currentPage: page.num,
 					}).then(res => {
 					}).then(res => {
-						this.news = res.data.records
+						this.news = this.news.concat(res.data.records)
 						this.mescroll.endBySize(res.data.records.length, res.data.total);
 						this.mescroll.endBySize(res.data.records.length, res.data.total);
 					})
 					})
 					.catch(res => {
 					.catch(res => {
@@ -203,11 +203,20 @@
 	}
 	}
 </script>
 </script>
 
 
-<style lang="scss">
+<style lang="scss" scoped>
 	/deep/.u-navbar__content__right__text {
 	/deep/.u-navbar__content__right__text {
 		font-size: 26rpx;
 		font-size: 26rpx;
 		color: #FFFFFF;
 		color: #FFFFFF;
 	}
 	}
+	/deep/.point1 {
+	    text-overflow: ellipsis;
+	    overflow: hidden;
+	    /* white-space: nowrap; */
+	    display: -webkit-box;
+	    -webkit-line-clamp: 3;
+	    -webkit-box-orient: vertical;
+	    text-overflow: ellipsis;
+	}
 
 
 	.top-bgc {
 	.top-bgc {
 		position: absolute;
 		position: absolute;

+ 3 - 2
pages/order/confirmLoading.vue

@@ -129,7 +129,7 @@
 		},
 		},
 		onLoad(options) {
 		onLoad(options) {
 			that = this
 			that = this
-			debugger
+			// debugger
 			// #ifdef APP-PLUS
 			// #ifdef APP-PLUS
 			this.getLngLat();
 			this.getLngLat();
 			// #endif
 			// #endif
@@ -405,7 +405,8 @@
 				}
 				}
 				this.detailData.carrierInfo.statusFlag = this.detailData.statusFlag
 				this.detailData.carrierInfo.statusFlag = this.detailData.statusFlag
 				this.$request.baseRequest('post', '/carrierInfo/loadingAdd', this.detailData.carrierInfo).then(res => {
 				this.$request.baseRequest('post', '/carrierInfo/loadingAdd', this.detailData.carrierInfo).then(res => {
-						if (res.code == 200) {debugger
+						if (res.code == 200) {
+							// debugger
 							let _title = ''
 							let _title = ''
 							if (this.detailData.statusFlag == 1) {
 							if (this.detailData.statusFlag == 1) {
 								_title = '暂存成功!'
 								_title = '暂存成功!'

+ 1 - 1
pages/order/index.vue

@@ -84,7 +84,7 @@
 							<!-- 货主装车确认前运费 -->
 							<!-- 货主装车确认前运费 -->
 							<view class="car"
 							<view class="car"
 								v-if="good.orderStatus=='待货主确认'||good.orderStatus=='未装车'||good.orderStatus=='待货主确认装车'||good.orderStatus=='货主驳回装车信息'||good.orderStatus=='已终止'">
 								v-if="good.orderStatus=='待货主确认'||good.orderStatus=='未装车'||good.orderStatus=='待货主确认装车'||good.orderStatus=='货主驳回装车信息'||good.orderStatus=='已终止'">
-								{{good.freight}}{{good.illingMethod==0?'元/吨':'元/车'}}
+								{{good.freight?good.freight:0}}{{good.illingMethod==0?'元/吨':'元/车'}}
 							</view>
 							</view>
 							<!-- 货主装车确认后卸车确认前运费 -->
 							<!-- 货主装车确认后卸车确认前运费 -->
 							<view class="car"
 							<view class="car"