From 541311639242fb4742e57841edad65b050d66235 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com>
Date: Wed, 22 Mar 2023 22:21:17 +0800
Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E9=80=81=E5=A2=9E=E5=8A=A0=E6=97=B6?=
=?UTF-8?q?=E5=88=86=E9=80=89=E6=8B=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/service/other/distribution.vue | 37 +++++++++++++++---------
1 file changed, 23 insertions(+), 14 deletions(-)
diff --git a/src/pages/service/other/distribution.vue b/src/pages/service/other/distribution.vue
index d514815..9c33480 100644
--- a/src/pages/service/other/distribution.vue
+++ b/src/pages/service/other/distribution.vue
@@ -34,7 +34,18 @@
- {{ datetime ? datetime : "选择期望取货时间" }}
+ {{ date ? date : "选择期望取货日期" }}
+
+
+
+
+
+
+
+
+
+
+ {{ time ? time : "选择期望取货时间" }}
@@ -94,16 +105,7 @@ export default {
return {
utils: this.$utils,
pageConfig: {},
- carTypeList: [
- {
- id: 1,
- name: "营运",
- },
- {
- id: 2,
- name: "非营运",
- },
- ],
+ carTypeList: [],
unitPrice: 0,
minDistance: 0,
carTypeId: 0,
@@ -112,7 +114,8 @@ export default {
pickupAddressText: "",
unloadAddressId: 0,
unloadAddressText: "",
- datetime: "",
+ date: "",
+ time: "",
distance: null,
content: "",
total: 0,
@@ -176,7 +179,13 @@ export default {
* 选择日期
*/
bindDateChange(e) {
- this.datetime = e.detail.value;
+ this.date = e.detail.value;
+ },
+ /**
+ * 选择时分
+ */
+ bindTimeChange(e) {
+ this.time = e.detail.value;
},
/**
* 计算价格
@@ -197,7 +206,7 @@ export default {
car: this.carTypeId,
address: this.pickupAddressId,
addressb: this.unloadAddressId,
- starttime: this.datetime,
+ starttime: this.date + " " + this.time,
sendtime: 0,
distance: this.distance,
})