diff --git a/api/applicationKey/applicationKeyApi.js b/api/applicationKey/applicationKeyApi.js index b7c5ad5..9ca3a79 100644 --- a/api/applicationKey/applicationKeyApi.js +++ b/api/applicationKey/applicationKeyApi.js @@ -74,7 +74,7 @@ export function listOwnerMachines(_objData){ data: _objData, //动态数据 success: function(res) { if (res.statusCode == 200) { - let _machines = res.data.machines; + let _machines = res.data.data; resolve(_machines); return; } diff --git a/constant/url.js b/constant/url.js index ba0b232..83c80ff 100644 --- a/constant/url.js +++ b/constant/url.js @@ -110,7 +110,7 @@ export default { // 查询申请类型(空置房) queryApplyRoomDiscountType: baseUrl + "app/applyRoomDiscount/queryApplyRoomDiscountType", saveApplyRoomDiscount: baseUrl + "app/applyRoomDiscount/saveApplyRoomDiscount", - openDoor: baseUrl + "app/machine/openDoor", + openDoor: baseUrl + "app/iot.openAccessControlDoor", getQrCode: baseUrl + "app/machine/getQRcode", queryOwnerCars: baseUrl + "app/parkingSpaceApply.listParkingSpaceApply", customCarInOut: baseUrl + "app/machine.customCarInOutCmd", //手工保存车牌号 diff --git a/pages/machine/openDoor.vue b/pages/machine/openDoor.vue index f133867..7cf5270 100644 --- a/pages/machine/openDoor.vue +++ b/pages/machine/openDoor.vue @@ -78,7 +78,9 @@ .then((_owner) => { let _data = { memberId: _owner.memberId, - communityId: _owner.communityId + communityId: _owner.communityId, + page:1, + row:300 }; _that.communityName = _owner.communityName; _that.communityId = _owner.communityId; @@ -106,7 +108,7 @@ communityId: this.communityId, userRole: 'owner', machineCode: _that.curMachine.machineCode, - userId: this.memberId + memberId: this.memberId }).then((res) => { wx.hideLoading(); let data = res.data;