From 9fd21f2bf05982c380e5b8d0b995273d78326360 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Tue, 15 Jun 2021 19:04:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E4=B8=9A=E4=B8=BB=E8=B4=A6?= =?UTF-8?q?=E6=88=B7=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../property/accountManage/accountManage.html | 94 +++++++++++++++++++ .../property/accountManage/accountManage.js | 79 ++++++++++++++++ 2 files changed, 173 insertions(+) create mode 100644 public/pages/property/accountManage/accountManage.html create mode 100644 public/pages/property/accountManage/accountManage.js diff --git a/public/pages/property/accountManage/accountManage.html b/public/pages/property/accountManage/accountManage.html new file mode 100644 index 000000000..45a7f9ed1 --- /dev/null +++ b/public/pages/property/accountManage/accountManage.html @@ -0,0 +1,94 @@ +
+
+
+
+
+
查询条件
+
+ +
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+
+
+
+
业主账户
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
账户编号账户名称账户类型账户金额创建时间操作
{{account.acctId}}{{account.acctName}}{{account.acctTypeName}}{{account.amount}}{{account.createTime}} +
+ +
+
+
    +
    + + +
    +
    +
    +
    +
    \ No newline at end of file diff --git a/public/pages/property/accountManage/accountManage.js b/public/pages/property/accountManage/accountManage.js new file mode 100644 index 000000000..ab7d8c167 --- /dev/null +++ b/public/pages/property/accountManage/accountManage.js @@ -0,0 +1,79 @@ +/** + 入驻小区 +**/ +(function (vc) { + var DEFAULT_PAGE = 1; + var DEFAULT_ROWS = 10; + vc.extends({ + data: { + accountManageInfo: { + accounts: [], + total: 0, + records: 1, + moreCondition: false, + scId: '', + conditions: { + name: '', + idCard: '', + link: '', + communityId: vc.getCurrentCommunity().communityId + } + } + }, + _initMethod: function () { + vc.component._listshopAccounts(DEFAULT_PAGE, DEFAULT_ROWS); + }, + _initEvent: function () { + + vc.on('accountManage', 'listshopAccount', function (_param) { + vc.component._listAccounts(DEFAULT_PAGE, DEFAULT_ROWS); + }); + vc.on('pagination', 'page_event', function (_currentPage) { + vc.component._listAccounts(_currentPage, DEFAULT_ROWS); + }); + }, + methods: { + _listAccounts: function (_page, _rows) { + + vc.component.accountManageInfo.conditions.page = _page; + vc.component.accountManageInfo.conditions.row = _rows; + var param = { + params: vc.component.accountManageInfo.conditions + }; + + //发送get请求 + vc.http.apiGet('/account/queryAccount', + param, + function (json, res) { + var _accountManageInfo = JSON.parse(json); + vc.component.accountManageInfo.total = _accountManageInfo.total; + vc.component.accountManageInfo.records = _accountManageInfo.records; + vc.component.accountManageInfo.shopAccounts = _accountManageInfo.data; + vc.emit('pagination', 'init', { + total: vc.component.accountManageInfo.records, + currentPage: _page + }); + }, function (errInfo, error) { + console.log('请求失败处理'); + } + ); + }, + _queryshopAccountMethod: function () { + vc.component._listshopAccounts(DEFAULT_PAGE, DEFAULT_ROWS); + + }, + _moreCondition: function () { + if (vc.component.accountManageInfo.moreCondition) { + vc.component.accountManageInfo.moreCondition = false; + } else { + vc.component.accountManageInfo.moreCondition = true; + } + }, + _toPayGold: function () { + vc.jumpToPage('/admin.html#/pages/goods/buyGold') + } + + + } + }); +})(window.vc);