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, })