mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
43 lines
1.4 KiB
JavaScript
43 lines
1.4 KiB
JavaScript
(function (vc) {
|
|
vc.extends({
|
|
data: {
|
|
viewFeeDetailDiscountInfo: {
|
|
feeDetailDiscounts: []
|
|
}
|
|
},
|
|
_initMethod: function () {
|
|
},
|
|
_initEvent: function () {
|
|
vc.on('viewFeeDetailDiscount', 'openModel', function (_param) {
|
|
$('#viewFeeDetailDiscountModel').modal('show');
|
|
$that.viewFeeDetailDiscountInfo.feeDetailDiscounts = [];
|
|
vc.component._loadAllFeeDetailDiscountInfo(_param);
|
|
});
|
|
},
|
|
methods: {
|
|
_loadAllFeeDetailDiscountInfo: function (_param) {
|
|
var param = {
|
|
params: {
|
|
page: 1,
|
|
row: 30,
|
|
communityId: vc.getCurrentCommunity().communityId,
|
|
detailId: _param.detailId
|
|
}
|
|
};
|
|
|
|
//发送get请求
|
|
vc.http.apiGet('/feeDiscount/queryFeeDetailDiscount',
|
|
param,
|
|
function (json) {
|
|
var _feeDetailDiscountInfo = JSON.parse(json);
|
|
$that.viewFeeDetailDiscountInfo.feeDetailDiscounts = _feeDetailDiscountInfo.data;
|
|
}, function () {
|
|
console.log('请求失败处理');
|
|
}
|
|
);
|
|
}
|
|
}
|
|
|
|
});
|
|
})(window.vc);
|