From 467c42d2648fc05b5c45791e8f3ac8fc1dc55741 Mon Sep 17 00:00:00 2001 From: his-uncles-father <59643002+his-uncles-father@users.noreply.github.com> Date: Sun, 19 Jan 2020 19:33:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E6=8A=A5=E4=BF=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 首页我的报修改界面,原来报修未删,确定此功能后可以删除原来的 --- pages/index/index.js | 4 ++++ pages/repair/repair2.js | 17 ++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/pages/index/index.js b/pages/index/index.js index 805f3db..fef973c 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -33,6 +33,10 @@ Page({ name: "报修", src: "/images/5.png", href: "/pages/repair/repair" + }, { + name: "报修2", + src: "/images/5.png", + href: "/pages/repair/repair2" }, { name: "房屋出租", src: "/images/6.png" diff --git a/pages/repair/repair2.js b/pages/repair/repair2.js index 47e748a..a74de4d 100644 --- a/pages/repair/repair2.js +++ b/pages/repair/repair2.js @@ -133,16 +133,19 @@ Page({ // if (_ownerInfo) { let obj = { - "typeId": this.data.typeId, - "bindRepairName": this.data.bindRepairName, - "bindTel": this.data.bindTel, + "repairName": this.data.bindRepairName, + "repairType": this.data.typeId, + "appointmentTime": this.data.bindDate + " " + this.data.bindTime + ":00", + "tel": this.data.bindTel, "roomId": this.data.roomId, "photos": [], "context": this.data.context, "userId": this.data.userId, - "communityId": this.data.communityId + "communityId": this.data.communityId, + "bindDate": this.data.bindDate, + "bindTime": this.data.bindTime } - + let _photos = this.data.photos; _photos.forEach(function(_item) { obj.photos.push({ "photo": _item }); @@ -153,11 +156,11 @@ Page({ let msg = ""; if (obj.roomId == "") { msg = "请选择房屋"; - } else if (obj.typeId == "") { + } else if (obj.repairType == "") { msg = "请选择报修类型"; } else if (obj.bindRepairName == "") { msg = "请填写报修人"; - } else if (obj.bindTel == "") { + } else if (obj.tel == "") { msg = "请填写手机号"; } else if (obj.bindDate == "") { msg = "请选择预约日期";