我的报修

首页我的报修改界面,原来报修未删,确定此功能后可以删除原来的
This commit is contained in:
his-uncles-father 2020-01-19 19:33:13 +08:00
parent ea33b3caf0
commit 467c42d264
2 changed files with 14 additions and 7 deletions

View File

@ -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"

View File

@ -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 = "请选择预约日期";