gjy 2 năm trước cách đây
mục cha
commit
95fd5342c4

+ 7 - 0
pages/mine/company/addcompany.vue

@@ -485,6 +485,13 @@
 				// 	})
 				// 	return true
 				// }
+				if (this.dataDetails.cardNumber.length==18) {
+					this.$refs.uToast.show({
+						type: 'error',
+						message: "身份证号输入错误!",
+					})
+					return true
+				}
 				if (uni.$u.test.isEmpty(this.dataDetails.businessLicenseAddressUrl)) {
 					this.$refs.uToast.show({
 						type: 'error',

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

@@ -3,14 +3,14 @@
 		<view class="top-title flex flex-space-between">
 			<view class="left flex">
 				<view class="text1">我的卡</view>
-				<view class="text2">(共{{bankList?bankList.length:0}}张)</view>
+				<!-- <view class="text2">(共{{bankList?bankList.length:0}}张)</view> -->
 			</view>
 
-			<view @click="addBankCard" class="add-bankcard flex">
+			<view v-if='bankList.length==0' @click="addBankCard" class="add-bankcard flex">
 				<view class="car-text">添加银行卡</view>
 				<u-icon class="icon" name="plus-circle-fill" color="#2979ff" size="24"></u-icon>
 			</view>
-
+			<view v-else><u-icon name="trash" size="24" @click="del()"></u-icon></view>
 		</view>
 		<!-- <image src="../../../static/images/mine/bank/nongyelogo.png" mode=""></image> -->
 		<view class="card-list" v-for="(item,index) in bankList" :key='index'>
@@ -29,11 +29,11 @@
 
 			<view class="flex flex-space-between row2 align-center">
 				<view class="flex align-center">
-					<radio :checked="item.defaultFlag==1" @click='radioChange(item)' />
-					<view class="default-card">设为默认收款账户</view>
+					<!-- <radio :checked="item.defaultFlag==1" @click='radioChange(item)' />
+					<view class="default-card">设为默认收款账户</view> -->
 				</view>
 				<view>
-					<u-icon name="trash" size="24" @click="del(item,index)"></u-icon>
+					
 				</view>
 			</view>
 		</view>
@@ -232,8 +232,8 @@
 				})
 			},
 			del(val, index) {
-				this.obj = val
-				this.index = index
+				this.obj = this.bankList[0]
+				this.index = 0
 				this.isShowAlert = true
 		
 			}

+ 2 - 1
pages/order/driverDetail.vue

@@ -67,7 +67,7 @@
 			<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback"
 				class="mescroll">
 				<view class="flex flex-space-between">
-					<view :class="haoType == '' ? 'btn-active':'btn'" @click="btnChange('')">全部({{ping.haoPing+ping.chaPing}}})</view>
+					<view :class="haoType == '' ? 'btn-active':'btn'" @click="btnChange('')">全部({{ping.haoPing+ping.chaPing}})</view>
 					<!-- <view :class="btnData == 2 ? 'btn-active':'btn'" @click="btnChange(2)">最新(1)</view> -->
 					<view :class="haoType == 1 ? 'btn-active':'btn'" @click="btnChange(1)">好评({{ping.haoPing}})</view>
 					<view :class="haoType == 2 ? 'btn-active':'btn'" @click="btnChange(2)">差评({{ping.chaPing}})</view>
@@ -315,6 +315,7 @@
 <style lang="scss">
 	.content {
 		height: 100vh;
+		overflow: scroll;
 	}
 	.carMessage{
 		background:#fff;border-radius: 20rpx;

+ 27 - 1
pages/order/evaluationRecord.vue

@@ -114,6 +114,7 @@
 				
 			</view>
 		</mescroll-body>
+		<u-toast ref="uToast"></u-toast>
 	</view>
 </template>
 
@@ -172,7 +173,32 @@
 		},
 		methods: {
 			del(item){
-				
+				var that=this
+				uni.showModal({
+					title: '提示',
+					content: '确定删除评价吗?',
+					success: ({
+						confirm,
+						cancel
+					}) => {
+						if (confirm) {
+							uni.showLoading({title: '加载中',mask:true})
+							that.$request.baseRequest('post', '/evaluateInfo/api/deleteEvaluateInfo', {
+									id: item.id,
+								}).then(res => {
+									that.$refs.uToast.show({
+										type: 'success',
+										message: '删除评论成功',
+									})
+									uni.hideLoading()
+									that.upCallback({size:10,num:1})
+								})
+								.catch(res => {
+									uni.$u.toast(res.message);
+								});	
+						}
+					}
+				});
 			},
 			toDetail(id) {
 				uni.$u.route('/pages/order/orderDetails', {

+ 27 - 2
pages/release/release.vue

@@ -917,6 +917,18 @@
 
 				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;
+			},
 			confirmValidityPeriodcq(e) {
 				if (e.value[0] == '长期') {
 					this.dataObj.taskValidity = e.value[0]
@@ -928,9 +940,22 @@
 						})
 						return
 					}
-					this.dataObj.taskValidity = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
+					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){
+						this.$refs.uToast.show({
+							type: 'error',
+							message: "请选择今天到往后六个月之内的日期!",
+						})
+					}else{
+						this.dataObj.taskValidity = e.value[0] + '-' + e.value[1] + '-' + e.value[2]
+						this.isShowcardValidity = false
+					}
+					console.log(datetime,currecttime)
+					
 				}
-				this.isShowcardValidity = false
+				
 			},
 			selectValidityPeriod(type) {
 				this.ValidityPeriodType = type