diff --git a/src/components/site/order_modal/order_modal.vue b/src/components/site/order_modal/order_modal.vue index e2fb1b4..b1f53b8 100644 --- a/src/components/site/order_modal/order_modal.vue +++ b/src/components/site/order_modal/order_modal.vue @@ -89,8 +89,10 @@ 实付款 ¥{{ orderInfo.amount || '0' }} - 分享给朋友 - 取消占用 + + 分享给朋友 + 取消占用 + @@ -227,7 +229,8 @@ export default { return '已失效' case 8: return '使用中' - default: return '-' + default: + return '-' } }, getTitle(type){ diff --git a/src/pages/site/manage/manage.vue b/src/pages/site/manage/manage.vue index b063911..4acf3e1 100644 --- a/src/pages/site/manage/manage.vue +++ b/src/pages/site/manage/manage.vue @@ -232,11 +232,12 @@ export default { let _todayTimestamp = new Date(new Date().toLocaleDateString().replace(/\-/g, '/')).getTime(); // 当天0点 let _oneDateTimestamp = 24*60*60*1000; // if(_selectedDateTimestamp<_todayTimestamp)return util.showNone(`请选择${new Date().toLocaleDateString().replace(/\-/g, '/')}之后日期`); - let _startTimestamp = _type == 'start' ? _selectedDateTimestamp : new Date(dateList[0].dateStr.replace(/\-/g, '/')).getTime(); - let _endTimestamp = _type == 'end' ? _selectedDateTimestamp: new Date(dateList[dateList.length-1].dateStr.replace(/\-/g, '/')).getTime(); - if(_endTimestamp<_startTimestamp)return util.showNone('请选择正常范围!'); - let _dateLength = +(((_endTimestamp - _startTimestamp) /_oneDateTimestamp + 1).toFixed()); - if(_dateLength>7)return util.showNone('不能超过7天范围!'); + let _startTimestamp = _type == 'start' ? _selectedDateTimestamp :_type == 'end' ? _selectedDateTimestamp - (7*_oneDateTimestamp) : _todayTimestamp; + // let _endTimestamp = _type == 'end' ? _selectedDateTimestamp : new Date(dateList[dateList.length-1].dateStr.replace(/\-/g, '/')).getTime(); + // if(_endTimestamp<_startTimestamp)return util.showNone('请选择正常范围!'); + // let _dateLength = +(((_endTimestamp - _startTimestamp) /_oneDateTimestamp + 1).toFixed()); + let _dateLength = 8; + // if(_dateLength>7)return util.showNone('不能超过7天范围!'); let _dateArr = this.getDateList({ startTimestamp: _startTimestamp, length: _dateLength diff --git a/src/subpackage/device/pages/switch_manage/switch_manage.vue b/src/subpackage/device/pages/switch_manage/switch_manage.vue index 3f691e4..24b75ce 100644 --- a/src/subpackage/device/pages/switch_manage/switch_manage.vue +++ b/src/subpackage/device/pages/switch_manage/switch_manage.vue @@ -63,7 +63,7 @@ const showArr = { id: 1, name: '照明管理', isOpen: true, isClose: true, isLongOpen:true, isTiming:true, openIcon: '/subpackage/device/static/images/open.png',closeIcon: '/subpackage/device/static/images/close.png', longOpenIcon: '/subpackage/device/static/images/longOpen.png',timingIcon: '/subpackage/device/static/images/timing.png', - openName: '开', closeName: '关', longOpenName: '长按', timingName: '定时', hardware_type: 'Light',iconNum:4 + openName: '开', closeName: '关', longOpenName: '长开', timingName: '定时', hardware_type: 'Light',iconNum:4 }, 's2': { id: 2, name: '空调管理', isOpen: true, isClose: true, @@ -76,7 +76,7 @@ const showArr = { openIcon: '/subpackage/device/static/images/open.png', closeIcon: '/subpackage/device/static/images/close.png', longOpenIcon: '/subpackage/device/static/images/longOpen.png',timingIcon: '/subpackage/device/static/images/timing.png', - openName: '开', closeName: '关', hardware_type: 'Fan',longOpenName: '长按', timingName: '定时',iconNum:4, + openName: '开', closeName: '关', hardware_type: 'Fan',longOpenName: '长开', timingName: '定时',iconNum:4, }, 's4': { id: 4, name: '门禁管理', isOpen: true, isClose: false, @@ -101,7 +101,7 @@ const showArr = { openIcon: '/subpackage/device/static/images/open.png', closeIcon: '/subpackage/device/static/images/close.png', longOpenIcon: '/subpackage/device/static/images/longOpen.png',timingIcon: '/subpackage/device/static/images/timing.png', - openName: '开', closeName: '关', hardware_type: 'WaterValve',longOpenName: '长按', timingName: '定时',iconNum:4, + openName: '开', closeName: '关', hardware_type: 'WaterValve',longOpenName: '长开', timingName: '定时',iconNum:4, }, 's12': { id: 12, name: '互动设备管理', isOpen: true, isClose: true,