Explorar o código

1.评价,查看评价
2.申请退款

guo %!s(int64=3) %!d(string=hai) anos
pai
achega
bf0ee91370

+ 1 - 1
pages/me/myAppraiseDetail.vue

@@ -135,7 +135,7 @@
 				uni.showLoading({
 					title: '加载中'
 				})
-				let url = 'miniAppMyBMemberCar/queryBMEvaluateDetail',
+				let url = 'worldKeepCar/keepCarMy/queryTMEvaluateDetail',
 					params = {
 						sheetId:this.sheetId
 

+ 1 - 1
pages/order/evaluate.vue

@@ -242,7 +242,7 @@
 				
 				uni.showLoading({});
 				var exeImg = this.imgArr.join(',')
-				this.$http('miniAppMyBMemberCar/addBMEvaluate', {
+				this.$http('worldKeepCar/keepCarMy/addTMEvaluate', {
 					shopID:this.shopID,
 					sheetID:this.sheetID,
 					overallevaluation:this.grade,

+ 1 - 1
pages/order/myorder.vue

@@ -39,7 +39,7 @@
 					<view class="orderState" v-if="item.ServiceState==2">更换成功</view>
 					
 
-					<view class="itemBtn2" v-if="item.SheetState==5&&item.EvaluateState==0"
+					<view class="itemBtn2" v-if="item.SheetState==5&&item.EvaluateState==0&&item.EState==1"
 						@click.stop="goEvaluate(item)">
 						立即评价</view>
 					<view class="itemBtn1" v-if="item.SheetState==5&&item.EvaluateState==1"

+ 12 - 5
pages/order/orderDetail.vue

@@ -124,7 +124,7 @@
 				<view class="yuyueTime">
 					<image src="../../static/img/icon_time.png" mode="" class="shopBoximg"></image>
 					<view class="peopleCont">预约到店</view>
-					<view class="peopleCont" style="padding-left: 20rpx;">{{orderData.ContactPhone}}</view>
+					<view class="peopleCont" style="padding-left: 20rpx;">{{orderData.OrderTime}}</view>
 					<image v-if="orderData.OrderState==2" src="../../static/img/icon_edit.png" mode="" class="timeEditImg"
 						@click="timeShowClick"></image>
 				</view>
@@ -263,10 +263,10 @@
 
 			<view class="orderBottom" v-if="orderData.SheetState==4">
 				<view class="cancelBtn" @click="refundMoney">申请退款</view>
-				<view class="payBtn" @click="timeShowClick">立即预约</view>
+				<view class="payBtn" @click="timeShowClick" v-if="orderData.OrderState==1">立即预约</view>
 			</view>
 
-			<view class="orderBottom" v-if="orderData.SheetState==5&&orderData.EvaluateState==0">
+			<view class="orderBottom" v-if="orderData.SheetState==5&&orderData.EvaluateState==0&&orderData.EState==1">
 				<view class="payBtn" @click="evaluate">立即评价</view>
 			</view>
 			<view class="orderBottom" v-if="orderData.SheetState==5&&orderData.EvaluateState==1">
@@ -564,13 +564,20 @@
 			},
 			timeCk() {
 				this.timeShow = false;
-				this.$http('worldKeepCar/keepCarMy/changeTSheetTime', {
+				var urlStr = ''
+				if (this.orderData.OrderState==1) {
+					urlStr = 'worldKeepCar/keepCarMy/saveOrderTime'
+				}
+				if (this.orderData.OrderState==2) {
+					urlStr = 'worldKeepCar/keepCarMy/changeTSheetTime'
+				}
+				this.$http(urlStr, {
 					id: this.id,
 					orderTime: this.orderTime
 				}, 'POST').then(res => {
 					if (res.code == 0) {
 						uni.showToast({
-							title: '修改成功',
+							title: '预约成功',
 							icon: 'none',
 							duration: 2000
 						});

+ 94 - 5
pages/refundMoney/refundMoney.vue

@@ -1,6 +1,34 @@
 <template>
-	<view>
-		
+	<view class="box">
+		<view class="content">
+			<view class="viewBg">
+				<image src="../../static/img/icon_xinghao.png" mode="" style="width: 14rpx; height: 14rpx;"></image>
+				<view class="leftTitle">退款原因</view>
+				<view class="grayColor width70" v-if="reason==''">请选择</view>
+				<view class="blackColor width70" v-else>{{reason}}</view>
+				<image src="../../static/img/rightArrow.png" mode="" style="width: 13rpx; height: 23rpx;"></image>
+			</view>
+			
+			<view class="moneyBg">
+				<view class="viewBg2">
+					<image src="../../static/img/icon_xinghao.png" mode="" style="width: 14rpx; height: 14rpx;"></image>
+					<view class="leftTitle">退款金额</view>
+					<input class="blackColor" type="number" v-model ="money" placeholder="最大可退 ¥123"
+						placeholder-style="color:#999999" />
+					
+				</view>
+				<view class="grayColor">如全额退款,优惠券会退回到您的账户</view>
+			</view>
+			
+			
+			<view class="contentBg">
+				<view class="leftTitle">补充描述</view>
+				
+					<textarea placeholder-style="color:#999999" placeholder="选填,请输入补充描述" v-model="exeContent"
+						class="textareaCont" maxlength="-1" auto-height="true" @confirm="feedDone" />
+				
+			</view>
+		</view>
 	</view>
 </template>
 
@@ -8,15 +36,76 @@
 	export default {
 		data() {
 			return {
-				
+				maxMoney:'',
+				reason:'',
+				money:'',
+				exeContent:'',
 			}
 		},
 		methods: {
+			feedDone(e) {
+				this.exeContent = e.target.value
 			
+			},
 		}
 	}
 </script>
 
-<style>
-
+<style scoped>
+	.box {
+		min-height: 100vh;
+		background: #F4F5F7;
+		padding-top: 20rpx;
+	}
+	.content{
+		background-color: #FFFFFF;
+		border-radius: 10rpx;
+		margin: 20rpx 24rpx;
+		padding: 20rpx;
+	}
+	.viewBg{
+		display: flex;
+		align-items: center;
+		padding: 30rpx 0;
+		border-bottom: 1rpx solid #EEEEEE;
+	}
+	.width70{
+		width: 70%;
+	}
+	.moneyBg{
+		padding: 30rpx 0;
+		border-bottom: 1rpx solid #EEEEEE;
+	}
+	.viewBg2{
+		display: flex;
+		align-items: center;
+		margin-bottom: 20rpx;
+	}
+	.leftTitle{
+		color: #333333;
+		font-size: 28rpx;
+		width: 130rpx;
+		margin-right: 50rpx;
+	}
+	.blackColor{
+		color: #333333;
+		font-size: 28rpx;
+	}
+	.grayColor{
+		color: #999999;
+		font-size: 28rpx;
+	}
+	.textareaCont {
+		
+		width: 70%;
+		font-size: 28rpx;
+		color: #333333;
+		
+	}
+	.contentBg{
+		display: flex;
+		align-items: center;
+		padding: 30rpx 0;
+		
+	}
 </style>

BIN=BIN
static/img/icon_xinghao.png


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/order/orderDetail.js.map


+ 9 - 2
unpackage/dist/dev/mp-weixin/pages/order/orderDetail.js

@@ -765,13 +765,20 @@ __webpack_require__.r(__webpack_exports__);
     },
     timeCk: function timeCk() {var _this2 = this;
       this.timeShow = false;
-      this.$http('worldKeepCar/keepCarMy/changeTSheetTime', {
+      var urlStr = '';
+      if (this.orderData.OrderState == 1) {
+        urlStr = 'worldKeepCar/keepCarMy/saveOrderTime';
+      }
+      if (this.orderData.OrderState == 2) {
+        urlStr = 'worldKeepCar/keepCarMy/changeTSheetTime';
+      }
+      this.$http(urlStr, {
         id: this.id,
         orderTime: this.orderTime },
       'POST').then(function (res) {
         if (res.code == 0) {
           uni.showToast({
-            title: '修改成功',
+            title: '预约成功',
             icon: 'none',
             duration: 2000 });
 

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/order/orderDetail.wxml