achao 2 سال پیش
والد
کامیت
2f509b0464
1فایلهای تغییر یافته به همراه54 افزوده شده و 39 حذف شده
  1. 54 39
      pages/release/release.vue

+ 54 - 39
pages/release/release.vue

@@ -20,8 +20,13 @@
 		</view> -->
 		<view class="content1">
 			<view class="row" @click="selectCargoOwner">
-				<view class="left select-sf" :class='dataObj.cargoOwner?"":"select-sf1"'>{{dataObj.cargoOwner?dataObj.cargoOwner:'选择货主身份'}}</view>
-				<view class="right"><image src="../../static/images/myimg/gengduo1.png" style="width: 20rpx;height: 26rpx;margin-top:14rpx;"></image></view>
+				<view class="left select-sf" :class='dataObj.cargoOwner?"":"select-sf1"'>
+					{{dataObj.cargoOwner?dataObj.cargoOwner:'选择货主身份'}}
+				</view>
+				<view class="right">
+					<image src="../../static/images/myimg/gengduo1.png"
+						style="width: 20rpx;height: 26rpx;margin-top:14rpx;"></image>
+				</view>
 			</view>
 			<!-- 		<view class="row" @click="selectCargoOwner" v-if="dataObj.cargoOwner">
 				<view class="left">{{dataObj.cargoOwner}}</view>
@@ -45,7 +50,10 @@
 				</view>
 				<view class="right" @click="selectAddress(0)" v-if="!dataObj.sendArea">
 					<view v-if='dataObj.sendArea' class="right"></view>
-					<view class="right" v-else><image src="../../static/images/myimg/gengduo1.png" style="width: 20rpx;height: 26rpx;margin-top:14rpx;"></image></view>
+					<view class="right" v-else>
+						<image src="../../static/images/myimg/gengduo1.png"
+							style="width: 20rpx;height: 26rpx;margin-top:14rpx;"></image>
+					</view>
 				</view>
 			</view>
 			<view class="row2">
@@ -62,7 +70,10 @@
 				</view>
 				<view class="right" @click="selectAddress(1)" v-if="!dataObj.unloadArea">
 					<view v-if='dataObj.unloadArea' class="right">{{(dataObj.unloadCity+dataObj.unloadArea)}}</view>
-					<view class="right" v-else><image src="../../static/images/myimg/gengduo1.png" style="width: 20rpx;height: 26rpx;margin-top:14rpx;"></image></view>
+					<view class="right" v-else>
+						<image src="../../static/images/myimg/gengduo1.png"
+							style="width: 20rpx;height: 26rpx;margin-top:14rpx;"></image>
+					</view>
 				</view>
 			</view>
 		</view>
@@ -117,7 +128,7 @@
 				<view class="right"><input type="number" value="" placeholder="输入运费单价" class="input"
 						v-model="dataObj.freightPrice" /></view>
 			</view>
-			<view v-if='dataObj.freightAdvance'  class="row">
+			<view v-if='dataObj.freightAdvance' class="row">
 				<view class="left">该任务申请运费垫付</view>
 				<view class="right">
 					<u-switch v-model="dataObj.freightAdvance" @change="change" size="20"></u-switch>
@@ -232,9 +243,9 @@
 		<u-modal :show="isShowAlert" :title="alertTitle" :content='alertContent' :closeOnClickOverlay='false'
 			:showCancelButton='showCancelButton' confirmColor='#2772FB' @confirm="confirmClick" @close="cancelClick"
 			@cancel="cancelClick"></u-modal>
-		<u-modal :show="isShowAlert1" :title="alertTitle" :confirmText='confirmText' :content='alertContent' :closeOnClickOverlay='false'
-				:showCancelButton='showCancelButton' confirmColor='#2772FB' @confirm="confirmClick" @close="cancelClick"
-				@cancel="cancelClick"></u-modal>
+		<u-modal :show="isShowAlert1" :title="alertTitle" :confirmText='confirmText' :content='alertContent'
+			:closeOnClickOverlay='false' :showCancelButton='showCancelButton' confirmColor='#2772FB'
+			@confirm="confirmClick" @close="cancelClick" @cancel="cancelClick"></u-modal>
 		<u-toast ref="uToast"></u-toast>
 
 	</view>
@@ -295,8 +306,8 @@
 					unsendLongitude: '',
 					unsendLatitude: '',
 				},
-				confirmText:'',
-				isShowAlert1:false,
+				confirmText: '',
+				isShowAlert1: false,
 				checkboxValue1: ['不限'],
 				checkboxList1: [{
 						name: '不限',
@@ -371,16 +382,17 @@
 					uni.$u.route('/pages/components/empty/index');
 				} else if (_obj.authenticationStatus == '审核中') {
 					uni.showToast({
-						title: '身份信息审核中'
+						title: '身份信息审核中',
+						icon: 'none'
 					})
-				}else if (_obj.authenticationStatus == '已过期') {
+				} else if (_obj.authenticationStatus == '已过期') {
 					this.alertTitle = '身份信息已过期!'
 					this.showCancelButton = false
-					this.confirmText='立即修改'
+					this.confirmText = '立即修改'
 					this.isShowAlert1 = true
-				}else {
+				} else {
 					this.alertTitle = '身份信息未认证,去认证?'
-					this.confirmText='确认'
+					this.confirmText = '确认'
 					this.showCancelButton = false
 					this.isShowAlert = true
 				}
@@ -435,7 +447,7 @@
 			// 	if(res.data){
 			// 		return res.data.authenticationStatus
 			// 	}
-				
+
 			// })
 			// if (_status == '已禁用') {
 			// 	this.isShowAlert = true
@@ -487,7 +499,7 @@
 							[]
 						]
 						let obj = uni.getStorageSync("firstAuthentication")
-						if(obj && obj.authenticationStatus == '已认证'){
+						if (obj && obj.authenticationStatus == '已认证') {
 							this.columns[0].push("个人货主")
 						}
 						for (let i = 0; i < this.qyList.length; i++) {
@@ -774,10 +786,10 @@
 									unsendLatitude: '',
 								}
 								_this.checkboxValue1 = ['不限']
-								uni.$u.route("/pages/release/record")
+								// uni.$u.route("/pages/release/record")
 							}
 						})
-						
+
 					})
 					.catch(res => {
 						uni.showToast({
@@ -929,17 +941,17 @@
 
 				this.isShowValidity = false
 			},
-			getTime:function(){
-			
-			var date = new Date().getTime()
-			year = date.getFullYear(),
-			month = date.getMonth() + 1,
-			day = date.getDate(),
-			
-			month >= 1 && month <= 9 ? (month = "0" + month) : "";
-			day >= 0 && day <= 9 ? (day = "0" + day) : "";
-			var timer = year + '-' + month + '-' + day
-			return timer;
+			getTime: function() {
+
+				var date = new Date().getTime()
+				year = date.getFullYear(),
+					month = date.getMonth() + 1,
+					day = date.getDate(),
+
+					month >= 1 && month <= 9 ? (month = "0" + month) : "";
+				day >= 0 && day <= 9 ? (day = "0" + day) : "";
+				var timer = year + '-' + month + '-' + day
+				return timer;
 			},
 			confirmValidityPeriodcq(e) {
 				if (e.value[0] == '长期') {
@@ -953,21 +965,21 @@
 						return
 					}
 					var datetime = new Date().getTime()
-					var datetime1 = datetime + (24*60*60*1000*30*6)
-					var currecttime =new Date(e.value[0] + '-' + e.value[1] + '-' + e.value[2]).getTime()
-					if(currecttime<datetime||currecttime>datetime1){
+					var datetime1 = datetime + (24 * 60 * 60 * 1000 * 30 * 6)
+					var currecttime = new Date(e.value[0] + '-' + e.value[1] + '-' + e.value[2]).getTime()
+					if (currecttime < datetime || currecttime > datetime1) {
 						this.$refs.uToast.show({
 							type: 'error',
 							message: "请选择今天到往后六个月之内的日期!",
 						})
-					}else{
+					} else {
 						this.dataObj.taskValidity = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
 						this.isShowcardValidity = false
 					}
-					console.log(datetime,currecttime)
-					
+					console.log(datetime, currecttime)
+
 				}
-				
+
 			},
 			selectValidityPeriod(type) {
 				this.ValidityPeriodType = type
@@ -1009,10 +1021,12 @@
 	.input {
 		text-align: right;
 	}
-	.content{
-		height:100vh;
+
+	.content {
+		height: 100vh;
 		overflow: scroll;
 	}
+
 	.title {
 		padding: 0 20rpx;
 		display: flex;
@@ -1058,6 +1072,7 @@
 			font-size: 34rpx;
 			font-weight: 600;
 		}
+
 		.select-sf1 {
 			color: #999999;
 		}