zhongtianhaoyuan 3 tahun lalu
induk
melakukan
061ed05b8a

+ 1 - 0
components/ossutil/uploadFile.js

@@ -48,6 +48,7 @@ const uploadFile = function(type, filePath, dir, success, failc) {
 			'success_action_status': '200',
 		},
 		success: function(res) {
+			debugger
 			console.log(res);
 			if (res.statusCode != 200) {
 				failc(new Error('上传错误:' + JSON.stringify(res)))

+ 2 - 2
config/index.js

@@ -1,6 +1,6 @@
 const dev = {
-	baseUrlNew: 'https://apitest.eliangeyun.com',
-	// baseUrlNew: 'http://192.168.1.114:8099',
+	// baseUrlNew: 'https://apitest.eliangeyun.com',
+	baseUrlNew: 'http://192.168.1.114:8099',
 	// baseUrlNew: 'http://192.168.1.116:8999',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false

+ 27 - 2
pages.json

@@ -84,7 +84,15 @@
 				"navigationBarTextStyle": "white"
 			}
 
-		}, {
+		},
+		{
+			"path": "pages/goodSource/cargoOwnerSee",
+			"style": {
+				"navigationBarTitleText": "货主详请",
+				"enablePullDownRefresh": false
+			}
+		
+		},{
 			"path": "pages/order/orderDetails",
 			"style": {
 				"navigationStyle": "custom",
@@ -98,7 +106,15 @@
 				"enablePullDownRefresh": false
 			}
 
-		}, {
+		},
+		{
+			"path": "pages/order/evaluateList",
+			"style": {
+				"navigationBarTitleText": "评价记录",
+				"enablePullDownRefresh": false
+			}
+		
+		},{
 			"path": "pages/order/confirmUnloading",
 			"style": {
 				"navigationBarTitleText": "确认卸车",
@@ -199,6 +215,15 @@
 				"navigationBarBackgroundColor":"white"
 			}
 
+		},
+		{
+			"path": "pages/mine/evaluate",
+			"style": {
+				"navigationBarTitleText": "评价",
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor":"white"
+			}
+		
 		},
 		{
 			"path": "pages/mine/camera/idcard/idcard",

+ 162 - 0
pages/goodSource/cargoOwnerSee.vue

@@ -0,0 +1,162 @@
+<template>
+	<view class="center">
+		<view class="center_top">
+			<view class="flex">
+				<u--image
+				:src="objectInfo.cargoOwnerPortrait?objectInfo.cargoOwnerPortrait:'../../static/images/mine/tx.png'"
+				width='180rpx' height='180rpx' shape="circle" >
+			</u--image>
+			<view class="name">{{objectInfo.cargoOwnerName}}</view>
+			<view class="title_css" v-show="objectInfo.cargoOwner">企</view>
+			<view class="feedback_css">反举</view>
+			</view>
+			<view class="flex">
+				<view class="switchbtn" @click="switchsubmit(1)" :class="indexBtn == 1 ? 'switchbtn1':''">货主信息</view>
+				<view class="switchbtn" @click="switchsubmit(2)" :class="indexBtn == 2 ? 'switchbtn1':''">评价</view>
+			</view>
+		</view>
+		<!-- 货主信息 -->
+		<view v-if="indexBtn == 1" class="enterprise">
+			<view>
+			 <view class="enterprise_title" v-if="objectInfo.cargoOwner">所属企业</view>
+			 <view class="enterprise_title" v-if="!objectInfo.cargoOwner">个人货主,暂未代理企业</view>
+		     <view class="enterprise_name" v-if="objectInfo.cargoOwner">{{objectInfo.cargoOwner}}</view>
+			 <view class="recordInfo">发运记录</view>
+			 <view class="enterprise_name">累计发运150次 <span>,好评率99%</span></view>
+			</view>
+		</view>
+		<!-- 评价信息 -->
+		<view v-if="indexBtn == 2">
+			<view class="flex">
+				<u-button :type="btnData == 1 ? 'primary':''" @click="btnChange(1)">全部评价</u-button>
+				<u-button :type="btnData == 2 ? 'primary':''" @click="btnChange(2)">最新</u-button>
+				<u-button :type="btnData == 3 ? 'primary':''" @click="btnChange(3)">好评</u-button>
+				<u-button :type="btnData == 4 ? 'primary':''" @click="btnChange(4)">差评</u-button>
+			</view>
+			<view class="evaluate_css" v-for="(item,index) in 4">
+				<view class="flex">
+					<u--image
+					:src="objectInfo.cargoOwnerPortrait?objectInfo.cargoOwnerPortrait:'../../static/images/mine/tx.png'"
+					width='70rpx' height='70rpx' shape="circle" >
+				</u--image>
+				<view class="evaluate_name">{{objectInfo.cargoOwnerName}}</view>
+				<view class="branch_css ">{{index}}</view>
+		 		<view class="branch_css"><u-rate count="5" v-model="index" gutter="1"></u-rate></view>
+				<view class="evaluate_date">2021-05-12</view>
+				</view>
+			</view>
+				
+		</view>
+	</view>
+</template>
+
+<script>
+	export default{
+		data(){
+			return{
+				id:"",
+				objectInfo:{},
+				indexBtn:1,
+				btnData:1
+			}
+		},
+		onShow(){
+			
+		},
+		onLoad(options) {
+			this.objectInfo = JSON.parse(options.obj)
+		},
+		methods:{
+			getList(){
+				// this.$request.baseRequest('get', '/publishTaskInfo/api/addOrder', _obj).then(res => {
+				// 		if (res.code == 200) {
+				// 			this.
+				// 		} else {
+				// 			this.$refs.uToast.show({
+				// 				type: 'error',
+				// 				message: res.message,
+				// 			})
+				// 		}
+				// 	})
+				// 	.catch(res => {
+				// 		uni.$u.toast(res.message);
+				// 	});
+			},
+			switchsubmit(num){
+				this.indexBtn = num
+				this.getList()
+			},
+			btnChange(num){
+				debugger
+				this.btnData = num
+				this.getList()
+			}
+		}
+	}
+</script>
+
+<style lang="scss">
+	.center{
+		padding: 40rpx;
+	}
+	.center_top{
+		.name{
+			margin: 40rpx ;
+			font-size: 48rpx;
+			font-weight: 600;
+		}
+		.title_css{
+			width: 50rpx;
+			height: 50rpx;
+			background-color: #F60;
+			border-radius: 10rpx;
+			text-align: center;
+			line-height: 50rpx;
+			margin-top: 44rpx;
+		}
+		.feedback_css{
+			margin-top: 44rpx;
+			margin-left: 50px;
+		}
+		.switchbtn{
+			margin-right: 40rpx;
+			margin-top: 20rpx;
+			font-size: 36rpx;
+			font-weight: 600;
+		}
+		.switchbtn1{
+			color: #2772FB;
+		}
+	}
+	.enterprise{
+		margin-top: 30rpx;
+		.enterprise_title{
+			font-size: 18px;
+		}
+		.enterprise_name{
+			font-size: 18px;
+			margin-top: 10rpx;
+		}
+		.recordInfo{
+			font-size: 40rpx;
+			margin-top: 20rpx;
+			font-weight: 600;
+		}
+	}
+	.evaluate_css{
+		margin-top: 30rpx;
+		display: flex;
+		width: 100%;
+		.evaluate_name{
+			margin: 10rpx 10rpx 0 30rpx;
+		}
+		.branch_css{
+			margin: 10rpx 0 0 20rpx;
+			// margin: 0;
+		}
+		.evaluate_date{
+			display: flex;
+			justify-content: flex-end;
+		}
+	}
+</style>

+ 15 - 2
pages/goodSource/index.vue

@@ -91,10 +91,10 @@
 						</view>
 					</view>
 					<view class="flex flex-space-between item-bottom">
-						<view class="left flex row">
+						<view class="left flex row" @click.stop="cargoOwner(good)">
 							<u--image
 								:src="good.cargoOwnerPortrait?good.cargoOwnerPortrait:'../../static/images/mine/tx.png'"
-								width='100rpx' height='100rpx' shape="circle">
+								width='100rpx' height='100rpx' shape="circle" >
 							</u--image>
 							<view class="name">{{good.cargoOwnerName}}</view>
 							<!-- <view class="hp flex fontsize-24">
@@ -269,6 +269,13 @@
 
 		},
 		methods: {
+			cargoOwner(_obj){
+				// uni.$u.route('/pages/order/evaluateList');
+				console.log("查看---------------",_obj)
+				uni.$u.route('/pages/goodSource/cargoOwnerSee',{
+				obj:JSON.stringify(_obj) 
+				})
+			},
 			mescrollInit(mescroll) {
 				this.mescroll = mescroll;
 			},
@@ -453,6 +460,12 @@
 				});
 			},
 			toDetail(id) {
+				debugger 
+				//注意写完删除
+				uni.$u.route('/pages/goodSource/shippingDetails', {
+					id: id,
+				});
+				return
 				//司机是否认证身份
 				if (this.firstAuthentication.authenticationStatus == '已认证') {
 					uni.$u.route('/pages/goodSource/shippingDetails', {

+ 1 - 0
pages/mine/driverCertification.vue

@@ -697,6 +697,7 @@
 							uploadImage(res.tempFilePaths[0], 'appData/',
 								result => {
 									// 上传成功回调函数
+									debugger
 									console.log('图片地址', result)
 									switch (_this.uploadType) {
 										// 身份正面

+ 74 - 0
pages/mine/evaluate.vue

@@ -0,0 +1,74 @@
+<template>
+	<view class="center">
+		<view class="">
+			<view class="">
+				<u-radio-group v-model="radiovalue1" placement="column" @change="groupChange">
+					<u-radio :customStyle="{marginBottom: '8px'}" 
+						label="张先生" name="张先生" >
+					</u-radio>
+				</u-radio-group>
+			</view>
+			<u-form labelPosition="left" :model="modelData" labelWidth="80">
+				<u-form-item label="货主信用" prop="modelData.value" borderBottom width="600">
+					<u-radio-group v-model="radiovalue1" placement="column" @change="groupChange">
+					</u-radio-group>
+				</u-form-item>
+				<u-form-item label="货主信用" prop="modelData.value" borderBottom width="600">
+					<u-rate :count="count" v-model="modelData.value"></u-rate>
+				</u-form-item>
+				<u-form-item label="运输效率" prop="modelData.value" borderBottom width="600">
+					<u-rate :count="count" v-model="modelData.value"></u-rate>
+				</u-form-item>
+				<u-form-item label="运输安全" prop="modelData.value" borderBottom width="600">
+					<u-rate :count="count" v-model="modelData.value"></u-rate>
+				</u-form-item>
+				<u-form-item label="服务质量" prop="modelData.value" borderBottom width="600">
+					<u-rate :count="count" v-model="modelData.value"></u-rate>
+				</u-form-item>
+				<u-form-item label="满意度" prop="modelData.value" borderBottom width="600">
+					<u-rate :count="count" v-model="modelData.value"></u-rate>
+				</u-form-item>
+			</u-form>
+		</view>
+		
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				count: 5,
+				modelData: {
+					value: 4
+				},
+				radiovalue1: ""
+
+			}
+		},
+		onShow() {
+
+		},
+		onLoad() {
+			this.getList()
+		},
+		methods: {
+			getList() {
+
+			},
+			// radioChange(){
+				
+			// },
+			groupChange(e) {
+				
+			},
+			
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.center {
+		padding: 30rpx;
+	}
+</style>

+ 10 - 0
pages/mine/index.vue

@@ -94,6 +94,16 @@
 					<image src="../../static/images/myimg/gengduo1@3x.png" class="arrow"></image>
 				</view>
 			</view>
+			<view class="flex flex-space-between" @click="goDetailPage('/pages/mine/evaluate')">
+				<view class="flex align-center">
+					<image class="img" src="@/static/images/mine/set.png" mode='widthFix'>
+					</image>
+					<view>货主评价</view>
+				</view>
+				<view>
+					<image src="../../static/images/myimg/gengduo1@3x.png" class="arrow"></image>
+				</view>
+			</view>
 		</view>
 		<u-modal :show="isShowAlert" :title="alertTitle" :closeOnClickOverlay='true' :confirmText='confirmText'
 			:showCancelButton='showCancelButton' confirmColor='#2772FB' @confirm="confirmClick" @close="cancelClick"

+ 8 - 0
pages/order/evaluateList.vue

@@ -0,0 +1,8 @@
+<template>
+</template>
+
+<script>
+</script>
+
+<style>
+</style>

+ 15 - 3
pages/order/index.vue

@@ -33,8 +33,10 @@
 				</u-transition>
 				<view class="modal-black" v-show="showMenu" @click="closeMenu"></view>
 			</view>
+	
 			<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback"
 				class="mescroll">
+				<view class="evaluatePage" v-show="tabIndex == 6"><span @click="evaluateClick">我的评价记录</span> </view>
 				<view :id="'good'+good.id" class="good-list" v-for="good in goods" :key="good.id"
 					@click="toDetail(good.id)">
 					<view style="padding: 0 35rpx 20rpx 35rpx;">
@@ -243,9 +245,9 @@
 					{
 						name: '已完结'
 					},
-					// {
-					// 	name: '评价'
-					// },
+					{
+						name: '评价'
+					},
 				],
 				tabIndex: 0,
 				scrollTop: 0
@@ -335,6 +337,11 @@
 
 		},
 		methods: {
+			
+			evaluateClick(){
+				//我的评价记录
+				uni.$u.route('/pages/order/evaluateList');
+			},
 			closeMenu() {
 				this.showMenu = false
 			},
@@ -858,4 +865,9 @@
 		background: #2772FB;
 		color: white;
 	}
+	.evaluatePage{
+		margin-top: 20rpx;
+		text-align: right;
+		margin-right: 40rpx;
+	}
 </style>