From a43a63c884e3ceff23303c907fcfdca502c77b7a Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Wed, 2 Apr 2025 18:35:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=99=BB=E9=99=86=E8=B7=B3?= =?UTF-8?q?=E8=BD=ACbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adminLoginProperty.html | 49 +++++++++---------- .../adminLoginProperty/adminLoginProperty.js | 37 +++++++------- public/components/frame/initData/initData.js | 14 +++--- .../property/addSmallWeChat/addSmallWeChat.js | 2 +- .../deleteSmallWeChat/deleteSmallWeChat.js | 10 ++-- .../editSmallWeChat/editSmallWeChat.js | 2 +- 6 files changed, 56 insertions(+), 58 deletions(-) diff --git a/public/components/admin/adminLoginProperty/adminLoginProperty.html b/public/components/admin/adminLoginProperty/adminLoginProperty.html index 0c5660009..5d11f9daf 100644 --- a/public/components/admin/adminLoginProperty/adminLoginProperty.html +++ b/public/components/admin/adminLoginProperty/adminLoginProperty.html @@ -1,38 +1,37 @@ -
| 选择 | 账号 | 隶属 | 角色 |
|---|---|---|---|
| ${item.userName}(${item.userId}) | @@ -88,11 +88,11 @@ vc.toast('运营团队未分配小区,请联系运营团队'); return; } - vc.jumpToPage($that.loginInfo.pageUrl); + vc.jumpToPage($that.initDataInfo.pageUrl); } }, function () { - vc.jumpToPage($that.loginInfo.pageUrl); + vc.jumpToPage($that.initDataInfo.pageUrl); } ); }, diff --git a/public/components/property/addSmallWeChat/addSmallWeChat.js b/public/components/property/addSmallWeChat/addSmallWeChat.js index 9e0d5c288..8a9928564 100644 --- a/public/components/property/addSmallWeChat/addSmallWeChat.js +++ b/public/components/property/addSmallWeChat/addSmallWeChat.js @@ -114,7 +114,7 @@ } $that.addSmallWeChatInfo.objId = vc.getCurrentCommunity().communityId; vc.http.apiPost( - 'smallWeChat.saveSmallWeChat', + '/smallWeChat.saveSmallWeChat', JSON.stringify($that.addSmallWeChatInfo), { emulateJSON: true }, diff --git a/public/components/property/deleteSmallWeChat/deleteSmallWeChat.js b/public/components/property/deleteSmallWeChat/deleteSmallWeChat.js index 017f54526..4a6470004 100644 --- a/public/components/property/deleteSmallWeChat/deleteSmallWeChat.js +++ b/public/components/property/deleteSmallWeChat/deleteSmallWeChat.js @@ -12,17 +12,17 @@ _initEvent:function(){ vc.on('deleteSmallWeChat','openDeleteSmallWeChatModal',function(_params){ - vc.component.deleteSmallWeChatInfo = _params; + $that.deleteSmallWeChatInfo = _params; $('#deleteSmallWeChatModel').modal('show'); }); }, methods:{ deleteSmallWeChat:function(){ - vc.component.deleteSmallWeChatInfo.communityId=vc.getCurrentCommunity().communityId; + $that.deleteSmallWeChatInfo.communityId=vc.getCurrentCommunity().communityId; vc.http.apiPost( - 'smallWeChat.deleteSmallWeChat', - JSON.stringify(vc.component.deleteSmallWeChatInfo), + '/smallWeChat.deleteSmallWeChat', + JSON.stringify($that.deleteSmallWeChatInfo), { emulateJSON:true }, @@ -48,4 +48,4 @@ } }); -})(window.vc,window.vc.component); +})(window.vc,window.$that); diff --git a/public/components/property/editSmallWeChat/editSmallWeChat.js b/public/components/property/editSmallWeChat/editSmallWeChat.js index e439978f7..878a12430 100644 --- a/public/components/property/editSmallWeChat/editSmallWeChat.js +++ b/public/components/property/editSmallWeChat/editSmallWeChat.js @@ -99,7 +99,7 @@ //1000表示改小程序作用于当前小区 否则作用于所有小区 $that.editSmallWeChatInfo.objId = vc.getCurrentCommunity().communityId; vc.http.apiPost( - 'smallWeChat.updateSmallWeChat', + '/smallWeChat.updateSmallWeChat', JSON.stringify($that.editSmallWeChatInfo), { emulateJSON: true },