@wjya/ngx-webapp-icpc.group.pms
Version:
angular webapp : icpc.group.pms
33 lines • 2.65 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var DownloadQrcodeModalComponent = /** @class */ (function () {
function DownloadQrcodeModalComponent() {
this.modalIsVisible = false;
this.data = [
{ a: 8, b: '0.5m' }, { a: 15, b: '1m' }, { a: 50, b: '2.5m' }
];
}
DownloadQrcodeModalComponent.prototype.ngOnInit = function () {
};
DownloadQrcodeModalComponent.prototype.handleCancel = function () {
this.modalIsVisible = false;
};
DownloadQrcodeModalComponent.prototype.getQrcode = function (width) {
window.location.href = '../weixin/api/_public/_tiny-apps/' + this.id + '/qrcode?width=' + width * 10;
};
DownloadQrcodeModalComponent.prototype.getAppQrcode = function (width) {
window.location.href = '../weixin/api/_public/_tiny-apps/' + this.id + '/app-qrcode?width=' + width * 10;
};
DownloadQrcodeModalComponent.decorators = [
{ type: core_1.Component, args: [{
selector: 'zx-download-qrcode-modal',
template: "<nz-modal [nzVisible]=\"modalIsVisible\" [nzWidth]=\"800\" [nzTitle]=\"modalTitle\" [nzContent]=\"modalContent\" [nzFooter]=\"modalFooter\" (nzOnCancel)=\"handleCancel()\"><ng-template #modalTitle><span>\u66F4\u591A\u5C3A\u5BF8</span></ng-template><ng-template #modalContent><nz-table #nzTable [nzDataSource]=\"data\" [nzIsPagination]=\"false\"><thead nz-thead><tr><th nz-th><span>\u8FB9\u957F\uFF08cm\uFF09</span></th><th nz-th><span>\u5EFA\u8BAE\u626B\u63CF\u8DDD\u79BB\uFF08m\uFF09</span></th><th nz-th><span>\u666E\u901A\u4E8C\u7EF4\u7801</span></th><th nz-th><span>\u5C0F\u7A0B\u5E8F\u7801</span></th></tr></thead><tbody nz-tbody><tr nz-tbody-tr *ngFor=\"let item of data\"><td nz-td>{{item.a}}cm</td><td nz-td>{{item.b}}</td><td nz-td><i class=\"anticon anticon-download\" (click)=\"getQrcode(item.a)\" style=\"cursor: pointer;\"></i></td><td nz-td><i class=\"anticon anticon-download\" (click)=\"getAppQrcode(item.a)\" style=\"cursor: pointer;\"></i></td></tr></tbody></nz-table></ng-template><ng-template #modalFooter><button nz-button [nzType]=\"'primary'\" [nzSize]=\"'large'\" (click)=\"handleCancel()\"><span>\u5173 \u95ED</span></button></ng-template></nz-modal>"
},] },
];
/** @nocollapse */
DownloadQrcodeModalComponent.ctorParameters = function () { return []; };
return DownloadQrcodeModalComponent;
}());
exports.DownloadQrcodeModalComponent = DownloadQrcodeModalComponent;
//# sourceMappingURL=download-qrcode-modal.component.js.map