diff --git a/api/appointment/appointmentApi.js b/api/appointment/appointmentApi.js index fdf0855..1aa28e0 100644 --- a/api/appointment/appointmentApi.js +++ b/api/appointment/appointmentApi.js @@ -17,11 +17,7 @@ import mapping from '../../constant/MappingConstant.js'; export function getBetweenTime(startTime, endTime) { // debugger // 校验时间格式 - if (typeof startTime === 'string' && typeof endTime === 'string') { - const reg = /^(0?[1-9]|([1-2][0-4])):(([0-5][0-9])(:([0-9][0-9]))?)$/; - if (!reg.test(startTime)) throw `开始时间:${startTime} 时间格式错误`; - if (!reg.test(endTime)) throw `结束时间:${endTime} 时间格式错误`; - } else throw `${startTime} 或者 ${endTime} 时间格式错误`; + let start = +startTime.split(':')[0]; let end = +endTime.split(':')[0]; const resultTime = []; diff --git a/pages/applyparking/applyparking.vue b/pages/applyparking/applyparking.vue index d50833d..4b77e0f 100644 --- a/pages/applyparking/applyparking.vue +++ b/pages/applyparking/applyparking.vue @@ -52,7 +52,8 @@ const constant = context.constant; import {getCurCommunity} from '../../api/community/communityApi.js' - import {getProperty} from '../../api/property/propertyApi.js' + import {getProperty} from '../../api/property/propertyApi.js'; + export default { @@ -91,7 +92,7 @@ _this.communityId = _owner.communityId; _this.ownerId = _owner.memberId; _this.userId = _owner.ownerId; - _this.applyPersonName = _owner.appUserName; + _this.applyPersonName = _owner.ownerName; _this.applyPersonLink = _owner.link; _this.applyPersonId = _owner.ownerId; _this.listParkingSpace(); diff --git a/pages/appointment/appointmentPay.vue b/pages/appointment/appointmentPay.vue index 730db00..e6b750f 100644 --- a/pages/appointment/appointmentPay.vue +++ b/pages/appointment/appointmentPay.vue @@ -387,7 +387,6 @@ return; } else if (res.data.code == '404') { - debugger let tipsIndex = res.data.msg.indexOf("已经被预约"); if (tipsIndex>=0){ let tips = _that.HoursStr(res.data.msg.substr(0, tipsIndex))+"\n\r" + res.data.msg diff --git a/pages/settings/changeOwnerPhone.vue b/pages/settings/changeOwnerPhone.vue index 1858fd9..9a97d1b 100644 --- a/pages/settings/changeOwnerPhone.vue +++ b/pages/settings/changeOwnerPhone.vue @@ -3,9 +3,9 @@
手机号 - + - +