@wjya/ngx-webapp-icpc.group.pms
Version:
angular webapp : icpc.group.pms
43 lines • 3.88 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var data_source_helper_1 = require("../../../../../service/data-source.helper");
var core_1 = require("@angular/core");
var router_1 = require("@angular/router");
var EmpowerComponent = /** @class */ (function () {
function EmpowerComponent(activateRoute, dataSourceHelper) {
this.activateRoute = activateRoute;
this.dataSourceHelper = dataSourceHelper;
this.authUrlDataSource = this.dataSourceHelper.tinyAppsAuthUrl;
this.registerAuthUrlDataSource = this.dataSourceHelper.tinyAppsRegisterAuthUrl;
}
EmpowerComponent.prototype.ngOnInit = function () {
this.id = this.activateRoute.snapshot.params['id'];
};
EmpowerComponent.prototype.getAuthUrl = function () {
this.authUrlDataSource.findOne(this.id).subscribe(function (success) {
window.open(success.body.url);
});
};
EmpowerComponent.prototype.getRegisterAuthUrl = function () {
this.registerAuthUrlDataSource.findOne(this.id).subscribe(function (success) {
window.open(success.body.url);
});
};
EmpowerComponent.decorators = [
{ type: core_1.Component, args: [{
selector: 'zx-empower',
template: "<zx-header-block [title]=\"'\u6388\u6743\u5C0F\u7A0B\u5E8F'\" [showBottomLine]=\"false\" [showBreadcrumb]=\"true\" [breadcrumbAppendings]=\"['\u5C0F\u7A0B\u5E8F\u6388\u6743']\"><p>\u5C0F\u7A0B\u5E8F\u7B2C\u4E09\u65B9\u5F00\u53D1\u8005\u6388\u6743</p></zx-header-block><zx-content-block><ng-template #content><div class=\"main\"><div>\u6388\u6743\u5C0F\u7A0B\u5E8F\u540E\uFF0C\u5373\u53EF\u53D1\u5E03\u5C0F\u7A0B\u5E8F</div><div>1\u3001\u5FAE\u4FE1\u5B98\u65B9\u89C4\u5B9A\uFF1A\u7528\u6237\u5FC5\u987B\u81EA\u5DF1\u8FDB\u884C\u5C0F\u7A0B\u5E8F\u6CE8\u518C\u3002\u7136\u540E\u624D\u53EF\u4EE5\u5C06\u5C0F\u7A0B\u5E8F\u6388\u6743\u7ED9\u4EFB\u610F\u7B2C\u4E09\u65B9\u8FDB\u884C\u8BBE\u8BA1\u548C\u4EE3\u7801\u7BA1\u7406\u3002</div><div>2\u3001\u5FAE\u4FE1\u5B98\u65B9\u89C4\u5B9A\uFF1A\u5C0F\u7A0B\u5E8F\u4E2A\u4EBA\u5F00\u653E\u7684\u670D\u52A1\u7C7B\u76EE\u662F\u6709\u4E25\u683C\u89C4\u5B9A\u7684\uFF0C\u5185\u5BB9\u4E0D\u5728\u670D\u52A1\u7C7B\u76EE\u4E2D\u7684\uFF0C\u662F\u5BA1\u6838\u4E0D\u901A\u8FC7\u7684\u3002</div><div><div><a (click)=\"getAuthUrl()\"><img src=\"./assets/images/u11684.png\" alt=\"\"></a></div><div><a href=\"https://mp.weixin.qq.com/cgi-bin/wx\" target=\"_blank\"><img src=\"./assets/images/u11677.png\" alt=\"\"></a></div></div></div></ng-template></zx-content-block>",
styles: [
"\n :host .main{\n text-align: center;\n }\n :host .main > div:nth-child(1){\n font-weight:bold;\n font-size:28px;\n margin-top:30px;\n }\n :host .main > div:nth-child(2), :host .main > div:nth-child(3) {\n width: 43%;\n margin: 0 auto;\n text-align: left;\n margin-top:20px;\n }\n :host .main > div:nth-child(3){\n margin-top:4px;\n }\n :host .main > div:nth-child(4) {\n margin-top:20px;\n display:flex;\n justify-content: center;\n }\n :host .main > div:nth-child(4) > div{\n margin: 0px 100px;\n cursor: pointer;\n margin-top: 15px;\n }\n "
]
},] },
];
/** @nocollapse */
EmpowerComponent.ctorParameters = function () { return [
{ type: router_1.ActivatedRoute, },
{ type: data_source_helper_1.DataSourceHelper, },
]; };
return EmpowerComponent;
}());
exports.EmpowerComponent = EmpowerComponent;
//# sourceMappingURL=empower.component.js.map