mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
bedeb5d132
commit
c95fb358e8
@ -33,7 +33,7 @@
|
|||||||
for (let _inIndex = 0; _inIndex < _dataArr.length; _inIndex++) {
|
for (let _inIndex = 0; _inIndex < _dataArr.length; _inIndex++) {
|
||||||
_li += "<li>" + (_inIndex + 1) + ".0、" + _dataArr[_inIndex].msg + "</li>";
|
_li += "<li>" + (_inIndex + 1) + ".0、" + _dataArr[_inIndex].msg + "</li>";
|
||||||
|
|
||||||
if (_inIndex >= 5) {
|
if (_inIndex >= 4) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -82,7 +82,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function initOwePayment(_dataArr, _li) {
|
function initOwePayment(_dataArr, _li) {
|
||||||
let _todayInpection = document.getElementById("todayPreFee");
|
|
||||||
_li += "<li onclick='_toOwePayment()'>欠费提醒:</li>";
|
_li += "<li onclick='_toOwePayment()'>欠费提醒:</li>";
|
||||||
for (let _inIndex = 0; _inIndex < _dataArr.length; _inIndex++) {
|
for (let _inIndex = 0; _inIndex < _dataArr.length; _inIndex++) {
|
||||||
_li += "<li>" + (_inIndex + 1) + "、" + _dataArr[_inIndex].feeName + " " + _dataArr[_inIndex].objCount + "户</li>";
|
_li += "<li>" + (_inIndex + 1) + "、" + _dataArr[_inIndex].feeName + " " + _dataArr[_inIndex].objCount + "户</li>";
|
||||||
@ -91,7 +90,7 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_todayInpection.innerHTML = _li;
|
_loadDeadlinePaymentCount(_li)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -121,6 +120,46 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function initDeadlinePayment(_dataArr, _li) {
|
||||||
|
let _todayInpection = document.getElementById("todayPreFee");
|
||||||
|
_li += "<li onclick='_toDeadlinePayment()'>到期提醒:</li>";
|
||||||
|
for (let _inIndex = 0; _inIndex < _dataArr.length; _inIndex++) {
|
||||||
|
_li += "<li>" + (_inIndex + 1) + "、" + _dataArr[_inIndex].feeName + " " + _dataArr[_inIndex].objCount + "户</li>";
|
||||||
|
|
||||||
|
if (_inIndex >= 1) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
_todayInpection.innerHTML = _li;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function _loadDeadlinePaymentCount(_li) {
|
||||||
|
let param = {
|
||||||
|
params: {
|
||||||
|
communityId: vc.getCurrentCommunity().communityId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
vc.http.apiGet(
|
||||||
|
'/reportFeeMonthStatistics/queryDeadlineCount',
|
||||||
|
param,
|
||||||
|
function (json, res) {
|
||||||
|
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||||
|
let _json = JSON.parse(json);
|
||||||
|
if (_json.code == 0) {
|
||||||
|
let _data = _json.data;
|
||||||
|
initDeadlinePayment(_data, _li);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
function (errInfo, error) {
|
||||||
|
console.log('请求失败处理');
|
||||||
|
|
||||||
|
vc.toast(errInfo);
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -131,6 +170,10 @@
|
|||||||
window._toOwePayment = function () {
|
window._toOwePayment = function () {
|
||||||
vc.jumpToPage('/admin.html#/pages/property/reportOweFeeDetail');
|
vc.jumpToPage('/admin.html#/pages/property/reportOweFeeDetail');
|
||||||
}
|
}
|
||||||
|
window._toDeadlinePayment = function () {
|
||||||
|
vc.jumpToPage('/admin.html#/pages/property/reportDeadlineFee');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
_loadAssetInspection();
|
_loadAssetInspection();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user