From 86d46e56049230a2e119e8d2a9bd08f34cd64a84 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 16 Sep 2023 17:49:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/components/property/addShops/addShops.js | 16 ++++++++-------- .../components/property/editRoom/editRoom.html | 14 +++++++------- public/pages/property/shops/shops.html | 6 +++--- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/public/components/property/addShops/addShops.js b/public/components/property/addShops/addShops.js index 01d3f7d3f..d2e7307a7 100644 --- a/public/components/property/addShops/addShops.js +++ b/public/components/property/addShops/addShops.js @@ -18,9 +18,9 @@ }, _initEvent: function () { vc.on('addShops', 'addShopsModel', function (_params) { - vc.component.refreshAddShopsInfo(); + $that.refreshAddShopsInfo(); $('#addShopsModel').modal('show'); - vc.component.addShopsInfo.communityId = vc.getCurrentCommunity().communityId; + $that.addShopsInfo.communityId = vc.getCurrentCommunity().communityId; }); vc.on('addShops', 'addShops', 'notify', function (_param) { if (_param.hasOwnProperty('floorId')) { @@ -31,7 +31,7 @@ methods: { addShopsValidate: function () { return vc.validate.validate({ - addShopsInfo: vc.component.addShopsInfo + addShopsInfo: $that.addShopsInfo }, { 'addShopsInfo.roomNum': [ { @@ -127,13 +127,13 @@ }); }, addShops: function () { - if (!vc.component.addShopsValidate()) { + if (!$that.addShopsValidate()) { vc.toast(vc.validate.errInfo); return; } vc.http.apiPost( - 'room.saveShops', - JSON.stringify(vc.component.addShopsInfo), + '/room.saveShops', + JSON.stringify($that.addShopsInfo), { emulateJSON: true }, @@ -155,7 +155,7 @@ }); }, refreshAddShopsInfo: function () { - vc.component.addShopsInfo = { + $that.addShopsInfo = { floorId: '', roomNum: '', layer: '', @@ -170,4 +170,4 @@ } } }); -})(window.vc, window.vc.component); \ No newline at end of file +})(window.vc, window.$that); \ No newline at end of file diff --git a/public/components/property/editRoom/editRoom.html b/public/components/property/editRoom/editRoom.html index 9ffadeda3..7ca658b9b 100644 --- a/public/components/property/editRoom/editRoom.html +++ b/public/components/property/editRoom/editRoom.html @@ -1,4 +1,4 @@ -