@wjya/ngx-webapp-icpc.group.pms
Version:
angular webapp : icpc.group.pms
449 lines • 28.4 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ngx_utils_1 = require("@wjya/ngx-utils");
var data_source_helper_1 = require("../../../service/data-source.helper");
var core_1 = require("@angular/core");
var wechat_menu_dialog_component_1 = require("./wechat-menu-dialog.component");
var ng_zorro_antd_1 = require("ng-zorro-antd");
var router_1 = require("@angular/router");
var ngx_webapp_fx_1 = require("@wjya/ngx-webapp-fx");
var outer_link_component_1 = require("./wechat-menu-modal/outer-link.component");
var WechatMenuComponent = /** @class */ (function () {
function WechatMenuComponent(confirmServ, activateRoute, dataSourceHelper, dataDictService, _message, userStorageService) {
var _this = this;
this.confirmServ = confirmServ;
this.activateRoute = activateRoute;
this.dataSourceHelper = dataSourceHelper;
this.dataDictService = dataDictService;
this._message = _message;
this.userStorageService = userStorageService;
this.data = [];
this.item = { data: {} };
this.idx = 0;
this.officeMenuType = [];
this.selectedTags = [];
this.funcOptions = {};
this.tinyApps = [];
this.tinyappOptions = [];
this.mediaData = [];
this.newItem = {};
this.dataSource = this.dataSourceHelper.officalMenus;
this.pushToWeixinDataSource = this.dataSourceHelper.pushToWeixin;
this.pullFromWeixinDataSource = this.dataSourceHelper.pullFromWeixin;
this.navTreeDataSource = this.dataSourceHelper.navTree;
this.officalsTinyAppsDataSource = this.dataSourceHelper.officalsTinyApps;
this.newsMediasDataSource = this.dataSourceHelper.newsMedias;
this.newsesDataSource = this.dataSourceHelper.newses;
this.communityGroupId = this.userStorageService.getCurrentOffice().id;
this.dataDictService.getItems('WEIXIN_OFFICAL_MENU_TYPE').subscribe(function (res) {
_this.officeMenuType = res;
});
}
WechatMenuComponent.prototype.ngOnInit = function () {
this.id = this.activateRoute.snapshot.params['id'];
this.loadAll();
this.loadNavTree();
this.loadOfficalsTinyApps();
this.loadMedia();
};
WechatMenuComponent.prototype.loadAll = function () {
var _this = this;
this.dataSource.findOne(this.id).subscribe(function (res) {
_this.data = res.body.children;
_this.idx = 0;
var result = [];
_this.data.forEach(function (item) {
_this.idx++;
item.id = _this.idx;
_this.setWechatMenuId(item, result);
});
});
};
WechatMenuComponent.prototype.loadMedia = function () {
var _this = this;
this.newsMediasDataSource.findOne(this.id).subscribe(function (res) {
_this.mediaData = res.body;
});
};
WechatMenuComponent.prototype.loadNavTree = function () {
var _this = this;
this.navTreeDataSource.findList({
name: 'offical',
resourceTypes: 'APPLICATION_SET,APPLICATION,NAV'
}).subscribe(function (res) {
_this.funcOptions = res.body;
});
};
WechatMenuComponent.prototype.loadOfficalsTinyApps = function () {
var _this = this;
this.officalsTinyAppsDataSource.findOne(this.id).subscribe(function (res) {
_this.tinyApps = res.body;
});
};
WechatMenuComponent.prototype.changeTinyApp = function (code) {
var _this = this;
this.navTreeDataSource.findList({
name: code,
resourceTypes: 'APPLICATION,APPLICATION_SET,NAV'
}).subscribe(function (res) {
var result = [];
res.body.children.forEach(function (node) {
_this.tree2Paint(node, result);
});
_this.tinyappOptions = result;
_this.tinyappOptions.unshift({ 'label': '首页', 'name': 'index' });
});
};
WechatMenuComponent.prototype.setWechatMenuId = function (option, result) {
var _this = this;
if (option.level == null) {
option.level = 0;
}
if (option.type === 'miniprogram') {
if (!option.data.page) {
option.data.page = 'index';
}
}
result.push(option);
if (option.children) {
option.children.forEach(function (item) {
_this.idx++;
item.id = _this.idx;
item.level = option.level + 1;
_this.setWechatMenuId(item, result);
});
}
};
WechatMenuComponent.prototype.tree2Paint = function (option, result) {
var _this = this;
if (option.level == null) {
option.level = 0;
option.disabled = true;
}
result.push(option);
if (option.children) {
option.children.forEach(function (item) {
item.level = option.level + 1;
_this.tree2Paint(item, result);
});
}
};
WechatMenuComponent.prototype.dialog = function (item) {
var _this = this;
if (item.type === 'miniprogram') {
if (item.data.tinyAppCode) {
this.navTreeDataSource.findList({
name: item.data.tinyAppCode,
resourceTypes: 'APPLICATION,APPLICATION_SET,NAV'
}).subscribe(function (res) {
var result = [];
res.body.children.forEach(function (node) {
_this.tree2Paint(node, result);
});
_this.tinyappOptions = result;
_this.tinyappOptions.unshift({ 'label': '首页', 'name': 'index' });
});
}
}
else if (item.type === 'media_id') {
this.mediaData.map(function (val) {
val.checked = false;
if (val.media_id === item.data.media_id) {
val.checked = true;
}
});
}
else if (item.type === 'article') {
if (item.data.dataId) {
this.newsesDataSource.findOne(item.data.dataId).subscribe(function (res) {
_this.newItem = res.body;
});
}
}
this.itemId = item.id;
this.selectedTags[0] = item.type;
this.item = ngx_utils_1.ObjectUtils.cloneObject(item, true);
if (!this.item.data) {
this.item.data = {};
}
};
WechatMenuComponent.prototype.insert = function (item) {
this.wechatMenuDialog.dialog(item);
};
WechatMenuComponent.prototype.delete = function (item) {
var _self = this;
this.confirmServ.confirm({
title: '您确定要删除此内容?',
onOk: function () {
_self.itemId = null;
for (var i = 0; i < _self.data.length; i++) {
if (_self.data[i].id === item.id) {
_self.data.splice(i, 1);
break;
}
for (var k = 0; k < _self.data[i].children.length; k++) {
if (_self.data[i].children[k].id === item.id) {
_self.data[i].children.splice(k, 1);
break;
}
}
}
_self.onSave();
},
});
};
WechatMenuComponent.prototype.onSave = function () {
var _this = this;
var data = ngx_utils_1.ObjectUtils.cloneObject(this.data, true);
for (var i = 0; i < data.length; i++) {
if (data[i].type === 'miniprogram') {
if (data[i].data.page === 'index') {
data[i].data.page = null;
}
}
if (data[i].children.length > 0) {
for (var b = 0; b < data[i].children.length; b++) {
if (data[i].children[b].type === 'miniprogram') {
if (data[i].children[b].page === 'index') {
data[i].children[b].page = null;
}
}
}
}
}
this.dataSource.createOne(this.id, { children: data }).subscribe(function (success) {
_this.wechatMenuDialog.modalIsVisible = false;
if (!_this.item.data.page) {
_this.item.data.page = 'index';
}
_this.loadAll();
});
};
WechatMenuComponent.prototype.dataSave = function (item) {
var _this = this;
item.type = this.selectedTags[0];
if (item.type === 'view') {
if (item.data.name || item.data.tinyAppCode || item.data.media_id || item.data.dataId) {
delete item.data.name;
delete item.data.tinyAppCode;
delete item.data.page;
delete item.data.media_id;
delete item.data.dataId;
}
}
else if (item.type === 'module') {
if (item.data.url || item.data.tinyAppCode || item.data.media_id || item.data.dataId) {
delete item.data.url;
delete item.data.tinyAppCode;
delete item.data.page;
delete item.data.media_id;
delete item.data.dataId;
}
}
else if (item.type === 'miniprogram') {
if (item.data.name || item.data.url || item.data.media_id || item.data.dataId) {
delete item.data.name;
delete item.data.url;
delete item.data.media_id;
delete item.data.dataId;
}
}
else if (item.type === 'media_id') {
if (item.data.name || item.data.url || item.data.tinyAppCode || item.data.dataId) {
delete item.data.name;
delete item.data.url;
delete item.data.tinyAppCode;
delete item.data.page;
delete item.data.dataId;
}
}
else if (item.type === 'article') {
if (item.data.name || item.data.url || item.data.tinyAppCode || item.data.media_id) {
delete item.data.name;
delete item.data.url;
delete item.data.tinyAppCode;
delete item.data.page;
delete item.data.media_id;
}
this.newItem.communityGroupId = this.communityGroupId;
this.newItem.kind = 4;
this.newItem.hasOutHref = false;
this.newItem.published = true;
if (this.newItem.id) {
this.newsesDataSource.update(this.newItem).subscribe(function (res) {
_this.newItem = res.body;
item.data.dataId = res.body.id;
for (var i = 0; i < _this.data.length; i++) {
if (_this.data[i].id === _this.itemId) {
_this.data[i] = _this.item;
break;
}
for (var k = 0; k < _this.data[i].children.length; k++) {
if (_this.data[i].children[k].id === _this.itemId) {
_this.data[i].children[k] = _this.item;
break;
}
}
}
_this.onSave();
});
}
else {
this.newsesDataSource.create(this.newItem).subscribe(function (res) {
_this.newItem = res.body;
item.data.dataId = res.body.id;
for (var i = 0; i < _this.data.length; i++) {
if (_this.data[i].id === _this.itemId) {
_this.data[i] = _this.item;
break;
}
for (var k = 0; k < _this.data[i].children.length; k++) {
if (_this.data[i].children[k].id === _this.itemId) {
_this.data[i].children[k] = _this.item;
break;
}
}
}
_this.onSave();
});
}
}
if (item.type !== 'article') {
if (this.item.data.page === 'index') {
this.item.data.page = null;
}
for (var i = 0; i < this.data.length; i++) {
if (this.data[i].id === this.itemId) {
this.data[i] = this.item;
break;
}
for (var k = 0; k < this.data[i].children.length; k++) {
if (this.data[i].children[k].id === this.itemId) {
this.data[i].children[k] = this.item;
break;
}
}
}
this.onSave();
}
};
Object.defineProperty(WechatMenuComponent.prototype, "buttonStatus", {
get: function () {
if (this.item.level === 1 || (this.item.level === 0 && this.item.children.length === 0)) {
if (!this.item.name || !this.item.type) {
return true;
}
if (this.item.type === 'view') {
if (!this.item.data.url || this.item.data.url === '') {
return true;
}
}
else if (this.item.type === 'module') {
if (!this.item.data.name || this.item.data.name === '') {
return true;
}
}
else if (this.item.type === 'miniprogram') {
if (!this.item.data.tinyAppCode || this.item.data.tinyAppCode === '' || !this.item.data.page || this.item.data.page === '') {
return true;
}
}
else if (this.item.type === 'media_id') {
if (!this.item.data.media_id || this.item.data.media_id === '') {
return true;
}
}
else if (this.item.type === 'article') {
if (!this.newItem.title || !this.newItem.source || !this.newItem.descript) {
return true;
}
}
}
if (this.item.level === 0 && this.item.children.length > 0) {
if (!this.item.name) {
return true;
}
}
return false;
},
enumerable: true,
configurable: true
});
WechatMenuComponent.prototype.pullFromWeixin = function () {
var _this = this;
this.pullFromWeixinDataSource.createOne(this.id).subscribe(function (success) {
_this._message.success('获取菜单成功');
_this.loadAll();
}, function (error) {
_this._message.error('获取菜单失败');
});
};
WechatMenuComponent.prototype.pushToWeixin = function () {
var _this = this;
this.pushToWeixinDataSource.createOne(this.id).subscribe(function (success) {
_this._message.success('保存到微信成功');
_this.loadAll();
}, function (error) {
_this._message.error('保存到微信失败');
});
};
WechatMenuComponent.prototype.handleChange = function (checked, menuType) {
var _this = this;
if (checked) {
this.selectedTags[0] = menuType;
this.item.type = this.selectedTags[0];
if (this.item.type === 'media_id') {
this.mediaData.map(function (val) {
val.checked = false;
if (val.media_id === _this.item.data.media_id) {
val.checked = true;
}
});
}
else if (this.item.type === 'article') {
if (!this.item.data.dataId) {
this.newItem = {};
}
}
}
};
WechatMenuComponent.prototype.dialogMedia = function (item) {
this.newItem = item;
};
WechatMenuComponent.prototype.mediaChecked = function (item) {
if (item.checked) {
this.item.data.media_id = item.media_id;
this.mediaData.map(function (val) {
if (val.media_id !== item.media_id) {
val.checked = false;
}
});
}
else {
this.item.data.media_id = null;
}
};
WechatMenuComponent.decorators = [
{ type: core_1.Component, args: [{
selector: 'zx-wechat-menu',
template: "<zx-header-block [title]=\"'\u516C\u4F17\u53F7\u83DC\u5355\u8BBE\u7F6E'\" [showBottomLine]=\"false\" [showBreadcrumb]=\"true\" [breadcrumbAppendings]=\"['\u516C\u4F17\u53F7\u83DC\u5355\u8BBE\u7F6E']\"><p>\u7BA1\u7406\u793E\u533A\u516C\u4F17\u53F7\u83DC\u5355</p></zx-header-block><zx-content-block><ng-template #content><div nz-row><div nz-col [nzSpan]=\"6\" class=\"wechat-menu\"><div class=\"menu-footer\"><span class=\"icon\"></span><ul class=\"nav-box\"><li *ngFor=\"let item of data\" (mouseenter)=\"item.removeShow = true\" (mouseleave)=\"item.removeShow = false\" [ngStyle]=\"{'background-color':itemId === item.id ? 'rgba(86,180,239,.2)' : '' }\"><span (click)=\"dialog(item)\">{{item.name}}</span><dl class=\"nav\"><dd class=\"plus\" (click)=\"insert(item)\" (mouseenter)=\"item.removeShow = false\" *ngIf=\"item.children.length < 5\">+</dd><dd *ngFor=\"let node of item.children\" (mouseenter)=\"node.removeShow = true; item.removeShow = false\" (mouseleave)=\"node.removeShow = false\" [ngStyle]=\"{'background-color':itemId === node.id ? 'rgba(86,180,239,.2)' : '' }\"><span (click)=\"dialog(node)\" style=\"display: inline-block;width: 100%;\">{{node.name}}</span> <i class=\"remove\" *ngIf=\"node.removeShow === true\" (click)=\"delete(node)\">x</i></dd></dl><i class=\"remove\" *ngIf=\"item.removeShow === true\" (click)=\"delete(item)\">x</i></li><li *ngIf=\"data.length < 3\"><span class=\"plus\" (click)=\"insert(data)\">+</span></li></ul></div></div><div nz-col [nzSpan]=\"18\"><div class=\"content-box\"><div class=\"content-title\"><div>\u8BBE\u7F6E</div><div><button nz-button [nzType]=\"'primary'\" [nzSize]=\"'large'\" (click)=\"pullFromWeixin()\"><span>\u83B7\u53D6\u83DC\u5355</span></button> <button nz-button [nzType]=\"'primary'\" [nzSize]=\"'large'\" (click)=\"pushToWeixin()\"><span>\u4FDD\u5B58\u5230\u5FAE\u4FE1</span></button></div></div><div class=\"content-body\" *ngIf=\"itemId\"><div nz-row class=\"row\"><div nz-col [nzSpan]=\"2\"><span>\u83DC\u5355\u6807\u9898\uFF1A</span></div><div nz-col [nzSpan]=\"12\"><nz-input [(ngModel)]=\"item.name\" [nzPlaceHolder]=\"'\u8BF7\u8F93\u5165\u83DC\u5355\u6807\u9898'\" [nzSize]=\"'large'\"></nz-input></div></div><div nz-row class=\"row\" *ngIf=\"item.level === 1 || item.children.length === 0\"><div nz-col [nzSpan]=\"2\"><span>\u83DC\u5355\u7C7B\u578B\uFF1A</span></div><div nz-col [nzSpan]=\"12\" style=\"height: 32px;line-height: 32px;\"><nz-checkable-tag *ngFor=\"let menuType of officeMenuType\" [nzChecked]=\"selectedTags.indexOf(menuType.value) > -1\" (nzChange)=\"handleChange($event, menuType.value)\">{{menuType.text}}</nz-checkable-tag></div></div><div nz-row class=\"row\" *ngIf=\"item.level === 1 || item.children.length === 0\" [ngStyle]=\"{'padding':selectedTags[0] === 'article' || selectedTags[0] === 'media_id' ? '20px 0' : '30px 0' }\"><div nz-col [nzSpan]=\"2\" *ngIf=\"selectedTags[0] !== 'article' && selectedTags[0] !== 'media_id'\"><span>\u83DC\u5355\u5185\u5BB9\uFF1A</span></div><div nz-col [nzSpan]=\"12\" *ngIf=\"selectedTags[0] !== 'article' && selectedTags[0] !== 'media_id'\"><nz-input [(ngModel)]=\"item.data.url\" [nzType]=\"'textarea'\" [nzRows]=\"'4'\" [nzPlaceHolder]=\"'\u8BF7\u8F93\u5165\u94FE\u63A5'\" *ngIf=\"selectedTags[0] == 'view'\"></nz-input><nz-select [(ngModel)]=\"item.data.name\" [nzSize]=\"'large'\" [nzPlaceHolder]=\"'\u8BF7\u9009\u62E9\u529F\u80FD'\" nzAllowClear style=\"width: 100%\" *ngIf=\"selectedTags[0] == 'module'\"><nz-option *ngFor=\"let option of funcOptions.children\" [nzLabel]=\"option.label\" [nzValue]=\"option.name\"></nz-option></nz-select><nz-select [(ngModel)]=\"item.data.tinyAppCode\" [nzSize]=\"'large'\" [nzPlaceHolder]=\"'\u8BF7\u9009\u62E9\u5C0F\u7A0B\u5E8F'\" nzAllowClear style=\"width: 100%\" *ngIf=\"selectedTags[0] == 'miniprogram'\" (ngModelChange)=\"changeTinyApp(item.data.tinyAppCode)\"><nz-option *ngFor=\"let option of tinyApps\" [nzLabel]=\"option.name\" [nzValue]=\"option.templateCode\"></nz-option></nz-select></div><div style=\"overflow: hidden;width: 100%;padding-top: 20px;\" *ngIf=\"selectedTags[0] == 'miniprogram'\"><div nz-col [nzSpan]=\"2\" style=\"width: 90px;\"><span style=\"height: 32px;line-height: 32px;margin-left: 12px;\">\u83DC\u5355\u529F\u80FD\uFF1A</span></div><div nz-col [nzSpan]=\"12\"><nz-select [(ngModel)]=\"item.data.page\" [nzSize]=\"'large'\" [nzPlaceHolder]=\"'\u8BF7\u9009\u62E9\u5C0F\u7A0B\u5E8F\u83DC\u5355'\" nzAllowClear style=\"width: 100%\"><nz-option *ngFor=\"let option of tinyappOptions\" [nzLabel]=\"option.label\" [nzValue]=\"option.name\" [nzDisabled]=\"option.disabled\"><ng-template #nzOptionTemplate><span [ngStyle]=\"{'padding-left': 30 * option.level + 'px'}\">{{option.label}}</span></ng-template></nz-option></nz-select></div></div><div nz-col [nzSpan]=\"24\" *ngIf=\"selectedTags[0] === 'article'\" class=\"article\"><div><div><nz-input [(ngModel)]=\"newItem.title\" [nzPlaceHolder]=\"'\u8BF7\u5728\u8FD9\u91CC\u8F93\u5165\u6807\u9898'\" [nzSize]=\"'large'\"></nz-input><nz-input [(ngModel)]=\"newItem.source\" [nzPlaceHolder]=\"'\u8BF7\u8F93\u5165\u4F5C\u8005'\" [nzSize]=\"'small'\"></nz-input><div></div><zx-xeditor [(ngModel)]=\"newItem.descript\" [autoEncodeHtml]=\"true\" [placeholder]=\"'\u4ECE\u8FD9\u91CC\u5F00\u59CB\u5199\u6B63\u6587'\" [style]=\"{height:'350px'}\"></zx-xeditor></div></div></div><div *ngIf=\"selectedTags[0] === 'media_id'\" style=\"width: 100%;\"><div nz-col [nzSpan]=\"6\" *ngFor=\"let item of mediaData\" class=\"wechart-media\" (click)=\"item.checked = !item.checked;mediaChecked(item)\"><ng-container *ngFor=\"let node of item.content.news_item\"><div><img [src]=\"node.thumb_url\" [alt]=\"node.title\"> <span>{{node.title}}</span></div></ng-container><label nz-checkbox [(ngModel)]=\"item.checked\" (click)=\"item.checked = !item.checked;mediaChecked(item)\"></label></div></div></div><div nz-row class=\"row\"><div nz-col [nzSpan]=\"24\"><button nz-button [nzType]=\"'primary'\" [nzSize]=\"'large'\" (click)=\"dataSave(item)\" [disabled]=\"buttonStatus\"><span>\u4FDD \u5B58</span></button></div></div></div></div></div></div></ng-template></zx-content-block><zx-wechat-menu-dialog #wechatMenuDialog (clickSave)=\"onSave()\"></zx-wechat-menu-dialog>",
styles: [":host .wechat-menu{background:url(assets/images/wxmenu.png) no-repeat;background-size:100% 100%;height:720px}:host .menu-footer{width:91%;height:50px;margin:0 auto;border-top:2px solid #ddd;position:absolute;top:593px;left:4.5%}:host .icon{display:block;float:left;width:60px;height:48px;background:url(assets/images/showmenu_icon.png) no-repeat;background-size:90% 100%;border-right:1px solid #ddd}:host .nav-box{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;margin:0;padding:0;list-style:none}:host .nav-box>li{-webkit-box-flex:1;-ms-flex:1;flex:1;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;border-right:1px solid #ddd;cursor:pointer}:host .nav-box>li:last-child{border:0}:host .nav-box>li>span,:host .nav>dd{width:100%;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .nav-box>li>span{display:block;height:48px;color:#666;font-size:14px;line-height:48px}:host .nav>dd{line-height:45px;border-bottom:1px solid #ddd;cursor:pointer;position:relative}:host .nav{width:94%;position:absolute;z-index:9;bottom:58px;left:50%;margin-left:-47%;background:#f8f8f8;border:1px solid #bbb;border-radius:5px;-webkit-box-shadow:inset 0 0 3px #fff;box-shadow:inset 0 0 3px #fff;background-size:100%}:host .nav:after,:host .nav:before{top:100%;left:50%;border:solid transparent;content:\"\";height:0;width:0;position:absolute;pointer-events:none}:host .nav:after{border-color:#ccc transparent transparent;border-width:11px;margin-left:-11px;margin-bottom:5px;z-index:999}:host .nav:before{border-color:#f8f8f8 transparent transparent;border-width:10px;margin-left:-10px;margin-top:-1px;z-index:1000}:host .content-box{min-height:720px;border:1px solid #ddd;margin-left:20px}:host .content-title{border-bottom:1px solid #ddd;padding:10px;overflow:hidden}:host .content-title>div:nth-child(1){float:left;font-size:16px;line-height:32px}:host .content-title>div:nth-child(2){float:right}:host .plus{font-size:20px!important;line-height:42px!important;cursor:pointer;height:45px}:host .row{margin:0 20px;padding:30px 0;border-bottom:1px dotted #ccc}:host .row:last-child{border-bottom:none}:host .row>div>span{height:32px;line-height:32px;margin-left:12px}:host .row>div:nth-child(1){width:90px}:host .row>div:nth-child(2)>a{margin-right:10px}:host .remove{position:absolute;top:0;right:0;font-style:normal;width:20px;display:inline-block;text-align:center;line-height:normal}:host .article{width:100%!important;height:600px;border:1px solid #ccc}:host ::ng-deep .article zx-xeditor .ql-toolbar{border:0;border-bottom:1px solid #ccc}:host ::ng-deep .article nz-input input,:host ::ng-deep .article zx-xeditor .ql-container{border:0}:host ::ng-deep .article nz-input:nth-child(1),:host ::ng-deep .article nz-input:nth-child(2){padding:5px 10px}:host ::ng-deep .article nz-input:nth-child(1) input{font-size:20px!important}:host ::ng-deep .article nz-input input:focus{-webkit-box-shadow:none;box-shadow:none}:host .article>div>div:nth-child(1)>div{border:.5px dashed #ccc;margin:10px 16px}:host .wechart-media{width:calc(25% - 24px)!important;margin:12px;border:1px solid #ccc;border-bottom:0}:host .wechart-media>div{border-bottom:1px solid #ccc;position:relative}:host .wechart-media>div:nth-child(1){height:160px}:host .wechart-media>div:nth-child(n+2){height:70px;text-align:right}:host .wechart-media>div:nth-child(1)>img{width:100%;height:100%;padding:12px}:host .wechart-media>div:nth-child(n+2)>img{width:50px;height:50px;margin:10px}:host .wechart-media>div:nth-child(1)>span{position:absolute;bottom:12px;left:12px}:host .wechart-media>div:nth-child(n+2)>span{position:absolute;left:12px;top:25px}:host ::ng-deep .wechart-media .ant-checkbox-wrapper{position:absolute;right:12px;top:4px}"]
},] },
];
/** @nocollapse */
WechatMenuComponent.ctorParameters = function () { return [
{ type: ng_zorro_antd_1.NzModalService, },
{ type: router_1.ActivatedRoute, },
{ type: data_source_helper_1.DataSourceHelper, },
{ type: ngx_webapp_fx_1.DataDictService, },
{ type: ng_zorro_antd_1.NzMessageService, },
{ type: ngx_webapp_fx_1.UserStorageService, },
]; };
WechatMenuComponent.propDecorators = {
"wechatMenuDialog": [{ type: core_1.ViewChild, args: ['wechatMenuDialog',] },],
"outerLink": [{ type: core_1.ViewChild, args: ['outerLink',] },],
};
return WechatMenuComponent;
}());
exports.WechatMenuComponent = WechatMenuComponent;
//# sourceMappingURL=wechat-menu.component.js.map