From 54af4deacf03337d66384b871d78325eb2a516b3 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:26:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E6=B1=82=E5=8F=91=E5=B8=83=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=97=B6=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/demand/demand.vue | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/src/pages/demand/demand.vue b/src/pages/demand/demand.vue index 7029fff..bf281e3 100644 --- a/src/pages/demand/demand.vue +++ b/src/pages/demand/demand.vue @@ -124,10 +124,21 @@ - + - {{ datetime ? datetime : "选择期望上门时间" }} + {{ date ? date : "选择期望上门日期" }} + + + + + + + + + + + {{ time ? time : "选择期望上门时间" }} @@ -215,7 +226,8 @@ export default { cateId: 0, uploadImages: [], addressText: "", - datetime: "", + date: "", + time: "", insurance: false, price: 0, }; @@ -328,7 +340,13 @@ export default { * 选择日期 */ bindDateChange(e) { - this.datetime = e.detail.value; + this.date = e.detail.value; + }, + /** + * 选择时分 + */ + bindTimeChange(e) { + this.time = e.detail.value; }, /** * 设置价格 @@ -371,7 +389,7 @@ export default { desc: this.content, img: this.uploadImages, addid: this.addressId, - times: this.datetime, + times: this.date + " " + this.time, baoxian: this.insurance ? 1 : 0, money: this.price, })