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);