diff --git a/common/js/data.js b/common/js/data.js
index ca74e09..2dec41f 100644
--- a/common/js/data.js
+++ b/common/js/data.js
@@ -765,7 +765,7 @@ const myInfo = {
}]
},
serOrderNum: {
- wait2Pay: 1,
+ wait2Pay: 0,
wait2Serv: 0,
processing: 0,
afterServ: 0,
diff --git a/common/js/request.js b/common/js/request.js
index 01ab5f6..e9c7772 100644
--- a/common/js/request.js
+++ b/common/js/request.js
@@ -10,9 +10,9 @@ export default {
title: '加载中'
})
// request 触发前拼接 url
- // args.url = 'https://www.opsoul.com' + args.url;
+ args.url = 'https://www.opsoul.com' + args.url;
// args.url = 'http://192.168.2.42:80' + args.url;
- args.url = 'http://127.0.0.1:80' + args.url;
+ // args.url = 'http://127.0.0.1:80' + args.url;
if (args.data) {
args.data.deptId = globalData.deptId;
args.data.from = globalData.from;
diff --git a/pages/index/my-home.vue b/pages/index/my-home.vue
index 610ecd7..52b9d72 100644
--- a/pages/index/my-home.vue
+++ b/pages/index/my-home.vue
@@ -107,6 +107,14 @@
服务中
+
+
+ {{myInfo.serOrderNum.afterServ}}
+
+
+ 完成待确认
+
+
{{myInfo.serOrderNum.wait2Forward}}
@@ -259,6 +267,9 @@
}, {
type: 3,
name: '服务中'
+ }, {
+ type: 6,
+ name: '完成待确认'
}, {
type: 4,
name: '已完成'
diff --git a/pages/my/my-order.vue b/pages/my/my-order.vue
index 16c747a..bfb2ca8 100644
--- a/pages/my/my-order.vue
+++ b/pages/my/my-order.vue
@@ -27,7 +27,7 @@
- 查看订单详情
+
@@ -64,23 +64,21 @@
-->
-
师傅已提交完成,请验收。
- 服务保障权益期:
+
- {{shopOrder.finishOrder.finishWaitUntil}}
+
-
-
-
+
+
+
@@ -209,8 +207,20 @@
updateAgreeStatus(status, index) {
this.myOrders[index].agreedServTime.customerAgreeStatus = status;
},
- updateFinisheStatus(status, index) {
- this.myOrders[index].finishOrder.finishStatus = status;
+ async updateFinisheStatus(order, status, ifRollback) {
+ let res = await this.$request.updateOrder({
+ id: order.orderMasterId,
+ orderStatus: status
+ });
+ if (res && res.code === 0) {
+ this.reloadOrderPage();
+ if (ifRollback) {
+ uni.showToast({
+ title: '订单已回滚至服务中状态,请联系师傅',
+ icon: 'none'
+ })
+ }
+ }
},
showServDetail(order) {
uni.navigateTo({
diff --git a/pages/my/serv-detail.vue b/pages/my/serv-detail.vue
index 196f556..9545a41 100644
--- a/pages/my/serv-detail.vue
+++ b/pages/my/serv-detail.vue
@@ -56,10 +56,10 @@
排单时间:{{servDetail.mainServOrder.boodTime}}
-->
-
+
任务金额:
@@ -92,8 +92,8 @@
师傅:{{item.workerName}}
联系方式:{{item.workerPhone}}
- 预约时间:{{item.revTime}}
- 上门时间:{{item.workBeginTime}}
+ 预约时间:{{item.expectTimeStart + '~' + item.expectTimeEnd}}
+ 上门时间:{{item.workBeginTime}}
完成时间:{{item.workFinishTime}}