achao 2 лет назад
Родитель
Сommit
95c5265188
2 измененных файлов с 98 добавлено и 92 удалено
  1. 50 46
      pages/goodSource/fk.vue
  2. 48 46
      pages/goodSource/jb.vue

+ 50 - 46
pages/goodSource/fk.vue

@@ -3,26 +3,28 @@
 		<view class="row1 flex flex-space-between">
 			<view>被投诉人</view>
 			<view class='flex'>
-				<image :src="dataDetails.cargoOwnerPortrait" mode="widthFix"  style="width: 40rpx;height: 40rpx;" class="img_css"> </image>
+				<image :src="dataDetails.cargoOwnerPortrait" mode="widthFix" style="width: 40rpx;height: 40rpx;"
+					class="img_css"> </image>
 				<view>{{dataDetails.cargoOwnerName?dataDetails.cargoOwnerName:dataDetails.cargoOwner}}</view>
 			</view>
 		</view>
-		<u-line class="line"></u-line>
+		<u-line class="line" color="#E6E6E6"></u-line>
 		<view class="row1 flex flex-space-between">
 			<view>关联订单(选填)</view>
 			<view style='align-items: center;' class='flex'>
 				<view @click='selectorder'>{{dataDetails.orderNo?dataDetails.orderNo:'选择订单'}}></view>
 			</view>
 		</view>
-		<u-line class="line"></u-line>
+		<u-line class="line" color="#E6E6E6"></u-line>
 		<view class="row2">
 			<view class="title">投诉信息</view>
-			<u--textarea v-model="value1" placeholder="输入要反馈的内容,10-300字" count maxlength='300'></u--textarea>
+			<u--textarea v-model="value1" placeholder="输入要反馈的内容,10-300字" maxlength='300' border="none">
+			</u--textarea>
 			<u-upload class="uview-upload" :fileList="fileList1" @afterRead="afterRead($event)" @delete="deletePic"
 				name="1" multiple :maxCount="9"></u-upload>
 		</view>
 		<view class="row3" @click="$u.throttle(submit, 1000)">提交</view>
-		<u-picker :show="isShow" ref="uPicker"  :columns="orderList" keyName="orderNo" @confirm="confirmorder"
+		<u-picker :show="isShow" ref="uPicker" :columns="orderList" keyName="orderNo" @confirm="confirmorder"
 			:closeOnClickOverlay='true' @close='isShow=false' @cancel='isShow=false'>
 		</u-picker>
 		<u-toast ref="uToast"></u-toast>
@@ -42,69 +44,69 @@
 				value1: '',
 				fileList1: [],
 				dataDetails: {},
-				orderList:[],
-				isShow:false,
-				type:0
+				orderList: [],
+				isShow: false,
+				type: 0
 			};
 		},
 		onLoad(options) {
 			this.get_camera_permission()
 			this.dataDetails = JSON.parse(options.val)
-			this.type=options.type
+			this.type = options.type
 			console.log(this.dataDetails)
 			this.imgList = []
 		},
-		onShow(){
+		onShow() {
 			uni.showLoading({
 				title: '加载中'
 			})
-			var commonId=''
-			if(this.type==1){
-				commonId=this.dataDetails.cargoCommonId
-			}else{
-				commonId=this.dataDetails.commonId
+			var commonId = ''
+			if (this.type == 1) {
+				commonId = this.dataDetails.cargoCommonId
+			} else {
+				commonId = this.dataDetails.commonId
 			}
-			this.$request.baseRequest('get', '/orderInfo/getAssociatedOrder',{
-				cargoCommonId: commonId,
-				commonId:this.userInfo.id
-			}).then(res => {
-				let that = this
-				uni.hideLoading()
-				this.orderList=[res.data]
-				// console.log(this.orderList)
-			})
-			.catch(res => {
-				uni.$u.toast(res.message);
-			});
+			this.$request.baseRequest('get', '/orderInfo/getAssociatedOrder', {
+					cargoCommonId: commonId,
+					commonId: this.userInfo.id
+				}).then(res => {
+					let that = this
+					uni.hideLoading()
+					this.orderList = [res.data]
+					// console.log(this.orderList)
+				})
+				.catch(res => {
+					uni.$u.toast(res.message);
+				});
 		},
 		computed: {
 			...mapState(['hasLogin', 'userInfo', 'firstAuthentication'])
 		},
 		methods: {
-			confirmorder(e){
+			confirmorder(e) {
 				console.log(e)
-				this.dataDetails.orderId=e.value[0].id
-				this.dataDetails.orderNo=e.value[0].orderNo
-				this.isShow=false
+				this.dataDetails.orderId = e.value[0].id
+				this.dataDetails.orderNo = e.value[0].orderNo
+				this.isShow = false
 			},
-			selectorder(){
-				this.isShow=true
+			selectorder() {
+				this.isShow = true
 			},
 			async get_camera_permission() {
-				var photol=await permision.requestAndroidPermission("android.permission.CAMERA")
-				if(photol == false){
+				var photol = await permision.requestAndroidPermission("android.permission.CAMERA")
+				if (photol == false) {
 					uni.showModal({
 						title: '提示',
 						content: '您已经关闭相册权限,去设置',
-						success: function (res) {
+						success: function(res) {
 							if (res.confirm) {
 								permision.gotoAppPermissionSetting()
-									            // plus.runtime.openURL("app-settings:");
+								// plus.runtime.openURL("app-settings:");
 							} else if (res.cancel) {
 								console.log('用户点击取消');
 							}
 						}
-					});	
+					});
 				}
 			},
 			submit() {
@@ -113,21 +115,21 @@
 				})
 				console.log()
 				this.$request.baseRequest('post', '/feedbackReport/api/addInfo', {
-						initiator:this.firstAuthentication.driverName,
-						initiatorNumber:this.firstAuthentication.driverPhone,
+						initiator: this.firstAuthentication.driverName,
+						initiatorNumber: this.firstAuthentication.driverPhone,
 						commonId: this.firstAuthentication.commonId,
 						passive: this.dataDetails.cargoOwnerName,
 						passiveNumber: this.dataDetails.cargoOwnerPhone,
-						passiveCommonId:this.dataDetails.commonId,
-						orderId:this.dataDetails.orderId,
-						orderNo:this.dataDetails.orderNo,
+						passiveCommonId: this.dataDetails.commonId,
+						orderId: this.dataDetails.orderId,
+						orderNo: this.dataDetails.orderNo,
 						content: this.value1,
 						url: this.imgList.toString(),
 						flag: 1,
-						objectFlag:2
+						objectFlag: 2
 					}).then(res => {
 						let that = this
-						this.type=0
+						this.type = 0
 						uni.hideLoading()
 						this.$refs.uToast.show({
 							type: 'success',
@@ -200,6 +202,7 @@
 	.row1,
 	.row2 {
 		padding: 40rpx;
+		font-size: 28rpx;
 	}
 
 	.title {
@@ -211,8 +214,9 @@
 		background: #2772FB;
 		text-align: center;
 		color: white;
-		padding: 20rpx;
+		padding: 25rpx;
 		margin: auto;
+		font-size: 36rpx;
 		border-radius: 10rpx;
 	}
 </style>

+ 48 - 46
pages/goodSource/jb.vue

@@ -7,22 +7,22 @@
 				<view>{{dataDetails.cargoOwnerName}}</view>
 			</view>
 		</view>
-		<u-line class="line"></u-line>
+		<u-line class="line" color="#E6E6E6"></u-line>
 		<view class="row1 flex flex-space-between">
 			<view>关联订单(选填)</view>
 			<view style='align-items: center;' class='flex'>
 				<view @click='selectorder'>{{dataDetails.orderNo?dataDetails.orderNo:'选择订单'}}></view>
 			</view>
 		</view>
-		<u-line class="line"></u-line>
+		<u-line class="line" color="#E6E6E6"></u-line>
 		<view class="row2">
 			<view class="title">举报信息</view>
-			<u--textarea v-model="value1" placeholder="输入要举报的内容,10-300字" count maxlength='300'></u--textarea>
+			<u--textarea v-model="value1" placeholder="输入要举报的内容,10-300字" maxlength='300' border="none"></u--textarea>
 			<u-upload class="uview-upload" :fileList="fileList1" @afterRead="afterRead($event)" @delete="deletePic"
 				name="1" multiple :maxCount="9"></u-upload>
 		</view>
 		<view class="row3" @click="$u.throttle(submit, 1000)">提交</view>
-		<u-picker :show="isShow" ref="uPicker"  :columns="orderList" keyName="orderNo" @confirm="confirmorder"
+		<u-picker :show="isShow" ref="uPicker" :columns="orderList" keyName="orderNo" @confirm="confirmorder"
 			:closeOnClickOverlay='true' @close='isShow=false' @cancel='isShow=false'>
 		</u-picker>
 		<u-toast ref="uToast"></u-toast>
@@ -42,9 +42,9 @@
 				value1: '',
 				fileList1: [],
 				dataDetails: {},
-				orderList:[],
-				isShow:false,
-				type:0
+				orderList: [],
+				isShow: false,
+				type: 0
 			};
 		},
 		computed: {
@@ -53,58 +53,58 @@
 		onLoad(options) {
 			this.get_camera_permission()
 			this.dataDetails = JSON.parse(options.val)
-			this.type=options.type
+			this.type = options.type
 			console.log(this.dataDetails)
 			this.imgList = []
 		},
-		onShow(){
+		onShow() {
 			uni.showLoading({
 				title: '加载中'
 			})
-			var commonId=''
-			if(this.type==1){
-				commonId=this.dataDetails.cargoCommonId
-			}else{
-				commonId=this.dataDetails.commonId
+			var commonId = ''
+			if (this.type == 1) {
+				commonId = this.dataDetails.cargoCommonId
+			} else {
+				commonId = this.dataDetails.commonId
 			}
-			this.$request.baseRequest('get', '/orderInfo/getAssociatedOrder',{
-				cargoCommonId: commonId,
-				commonId:this.userInfo.id
-			}).then(res => {
-				let that = this
-				uni.hideLoading()
-				this.orderList=[res.data]
-				// console.log(this.orderList)
-			})
-			.catch(res => {
-				uni.$u.toast(res.message);
-			});
+			this.$request.baseRequest('get', '/orderInfo/getAssociatedOrder', {
+					cargoCommonId: commonId,
+					commonId: this.userInfo.id
+				}).then(res => {
+					let that = this
+					uni.hideLoading()
+					this.orderList = [res.data]
+					// console.log(this.orderList)
+				})
+				.catch(res => {
+					uni.$u.toast(res.message);
+				});
 		},
 		methods: {
-			confirmorder(e){
+			confirmorder(e) {
 				console.log(e)
-				this.dataDetails.orderId=e.value[0].id
-				this.dataDetails.orderNo=e.value[0].orderNo
-				this.isShow=false
+				this.dataDetails.orderId = e.value[0].id
+				this.dataDetails.orderNo = e.value[0].orderNo
+				this.isShow = false
 			},
-			selectorder(){
-				this.isShow=true
+			selectorder() {
+				this.isShow = true
 			},
 			async get_camera_permission() {
-				var photol=await permision.requestAndroidPermission("android.permission.CAMERA")
-				if(photol == false){
+				var photol = await permision.requestAndroidPermission("android.permission.CAMERA")
+				if (photol == false) {
 					uni.showModal({
 						title: '提示',
 						content: '您已经关闭相册权限,去设置',
-						success: function (res) {
+						success: function(res) {
 							if (res.confirm) {
 								permision.gotoAppPermissionSetting()
-									            // plus.runtime.openURL("app-settings:");
+								// plus.runtime.openURL("app-settings:");
 							} else if (res.cancel) {
 								console.log('用户点击取消');
 							}
 						}
-					});	
+					});
 				}
 			},
 			submit() {
@@ -112,21 +112,21 @@
 					title: '加载中'
 				})
 				this.$request.baseRequest('post', '/feedbackReport/api/addInfo', {
-						initiator:this.firstAuthentication.driverName,
-						initiatorNumber:this.firstAuthentication.driverPhone,
+						initiator: this.firstAuthentication.driverName,
+						initiatorNumber: this.firstAuthentication.driverPhone,
 						commonId: this.firstAuthentication.commonId,
 						passive: this.dataDetails.cargoOwnerName,
 						passiveNumber: this.dataDetails.cargoOwnerPhone,
-						passiveCommonId:this.dataDetails.commonId,
-						orderId:this.dataDetails.orderId,
-						orderNo:this.dataDetails.orderNo,
+						passiveCommonId: this.dataDetails.commonId,
+						orderId: this.dataDetails.orderId,
+						orderNo: this.dataDetails.orderNo,
 						content: this.value1,
 						url: this.imgList.toString(),
 						flag: 2,
-						objectFlag:2
+						objectFlag: 2
 					}).then(res => {
 						let that = this
-						this.type=0
+						this.type = 0
 						uni.hideLoading()
 						this.$refs.uToast.show({
 							type: 'success',
@@ -136,7 +136,7 @@
 								// 	driver: JSON.stringify(that.dataDetails)
 								// });
 								uni.navigateBack({
-									delta:1
+									delta: 1
 								})
 							}
 						})
@@ -199,6 +199,7 @@
 	.row1,
 	.row2 {
 		padding: 40rpx;
+		font-size: 28rpx;
 	}
 
 	.title {
@@ -210,8 +211,9 @@
 		background: #2772FB;
 		text-align: center;
 		color: white;
-		padding: 20rpx;
+		padding: 25rpx;
 		margin: auto;
+		font-size: 36rpx;
 		border-radius: 10rpx;
 	}
 </style>