@wjya/ngx-webapp-icpc.group.pms
Version:
angular webapp : icpc.group.pms
53 lines • 4.6 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var data_source_helper_1 = require("./../../service/data-source.helper");
var router_1 = require("@angular/router");
var core_1 = require("@angular/core");
var ngx_webapp_fx_1 = require("@wjya/ngx-webapp-fx");
var SmsRechargeWaitPayComponent = /** @class */ (function () {
function SmsRechargeWaitPayComponent(router, activatedRoute, dataSourceHelper, userStorageService) {
this.router = router;
this.activatedRoute = activatedRoute;
this.dataSourceHelper = dataSourceHelper;
this.userStorageService = userStorageService;
this.data = [];
this.dataSource = this.dataSourceHelper.smsPackagesPrePay;
}
SmsRechargeWaitPayComponent.prototype.ngOnInit = function () {
this.packageId = this.activatedRoute.snapshot.queryParams['packageId'];
this.communityGroupId = this.userStorageService.getCurrentOffice().id;
this.loadAll();
};
SmsRechargeWaitPayComponent.prototype.loadAll = function () {
var _this = this;
this.dataSource.findOne(this.packageId, {
communityGroupId: this.communityGroupId,
buyNumber: 1
}).subscribe(function (res) {
_this.totleAmount = res.body.totleAmount;
_this.data = [res.body];
});
};
SmsRechargeWaitPayComponent.prototype.pay = function () {
this.router.navigate(['../../sms-recharge/wait-pay/pay'], { queryParams: { packageId: this.packageId }, relativeTo: this.activatedRoute });
};
SmsRechargeWaitPayComponent.decorators = [
{ type: core_1.Component, args: [{
selector: 'zx-sms-recharge-wait-pay',
template: "<zx-header-block [title]=\"'\u77ED\u4FE1\u5145\u503C'\" [showBottomLine]=\"false\" [showBreadcrumb]=\"true\" [breadcrumbAppendings]=\"['\u5F85\u652F\u4ED8\u8BA2\u5355']\"><p>\u77ED\u4FE1\u670D\u52A1\u5145\u503C\u4E1A\u52A1</p></zx-header-block><zx-content-block><ng-template #title><div style=\"font-weight: normal\"><i class=\"anticon anticon-mail\"></i> <span>\u5F85\u652F\u4ED8\u8BA2\u5355</span></div></ng-template><ng-template #content><nz-table #nzTable [nzDataSource]=\"data\" [nzIsPagination]=\"false\" nzShowSizeChanger [nzLoading]=\"_loading\" [nzShowQuickJumper]=\"true\" [nzSize]=\"'middle'\"><thead nz-thead><tr nz-thead-tr><th nz-th><span>\u5546\u54C1\u540D\u79F0</span></th><th nz-th><span>\u4EF7\u683C</span></th><th nz-th><span>\u6570\u91CF</span></th><th nz-th><span>\u5C0F\u8BA1\uFF08\u5143\uFF09</span></th></tr></thead><tbody nz-tbody><tr nz-tbody-tr *ngFor=\"let item of data\"><td nz-td>{{item.orderTitle}}</td><td nz-td>{{item.totleAmount}}\u5143</td><td nz-td>1</td><td nz-td>{{item.totleAmount}}</td></tr></tbody></nz-table><p style=\"margin: 40px 0px 10px 0px;font-size: 16px;\">\u652F\u4ED8\u65B9\u5F0F</p><nz-tabset><nz-tab><ng-template #nzTabHeading><span>\u7F51\u4E0A\u652F\u4ED8</span></ng-template><div class=\"pay-box\"><div><img src=\"./assets/images/u10239.png\" alt=\"\"></div><div><span>\u5E94\u4ED8\u91D1\u989D\uFF1A</span> <span>\uFFE5{{totleAmount}}</span><div><button nz-button [nzType]=\"'primary'\" (click)=\"pay()\"><span>\u7ACB\u5373\u652F\u4ED8</span></button></div></div></div></nz-tab><nz-tab><ng-template #nzTabHeading><span>\u94F6\u884C\u8F6C\u8D26</span></ng-template><span>\u94F6\u884C\u8F6C\u8D26</span></nz-tab></nz-tabset></ng-template></zx-content-block>",
styles: [
"\n :host .pay-box > div:nth-child(1) {\n border-bottom: 1px dashed #ddd;padding-bottom: 12px;\n }\n :host .pay-box > div:nth-child(2) {\n margin: 22px 0px 0 20px;\n }\n :host .pay-box > div:nth-child(2) > span:nth-child(2) {\n font-size: 26px;\n color: #ff6829;\n font-weight: 500;\n }\n :host .pay-box > div:nth-child(2) > div:nth-child(3) {\n margin-top: 25px;\n }\n "
]
},] },
];
/** @nocollapse */
SmsRechargeWaitPayComponent.ctorParameters = function () { return [
{ type: router_1.Router, },
{ type: router_1.ActivatedRoute, },
{ type: data_source_helper_1.DataSourceHelper, },
{ type: ngx_webapp_fx_1.UserStorageService, },
]; };
return SmsRechargeWaitPayComponent;
}());
exports.SmsRechargeWaitPayComponent = SmsRechargeWaitPayComponent;
//# sourceMappingURL=sms-recharge-wait-pay.component.js.map