Commit e0c08867 by sunchao

打包优化

parent a26abaed
......@@ -4,9 +4,9 @@
"scripts": {
"ng": "ng",
"start": "ng serve --host 192.168.1.25 --port 4205",
"buildDev": "ng build -c=dev --prod",
"buildStage": "ng build -c=stage --prod",
"buildProd": "ng build -c=production --prod",
"buildDev": "ng build -c=dev --prod --aot",
"buildStage": "ng build -c=stage --prod --aot",
"buildProd": "ng build -c=production --prod --aot",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
......
import {Directive, ElementRef, EventEmitter, HostListener, Input, Output, Renderer2} from '@angular/core';
@Directive({
selector: '[appAutoFixed]'
})
export class AutoFixedDirective {
// 元素距离顶部的原始距离
toTop: number = 0;
// 吸顶元素
toTopElement: any;
// 吸顶元素id
// tslint:disable-next-line:no-input-rename
@Input('appAutoFixed') selector: string = '';
@Output() updateTabMenuId = new EventEmitter<string>();
@HostListener('scroll', ['$event'])
onScroll($event: Event) {
if (this.er.nativeElement.scrollTop >= this.toTop) {
this.renderer2.addClass(this.toTopElement, 'autofixed');
} else {
this.renderer2.removeClass(this.toTopElement, 'autofixed');
}
this.updateTabMenuId.emit(this.er.nativeElement.scrollTop);
}
constructor(private er: ElementRef, private renderer2: Renderer2) {
setTimeout(() => {
this.toTopElement = this.er.nativeElement.querySelector('#' + this.selector);
this.toTop = this.toTopElement.offsetTop;
}, 1000);
}
}
......@@ -10,7 +10,7 @@ import { LifeCommonService } from '../../common/life-common.service';
})
export class AnnouncementDetailComponent implements OnInit {
announcementId: string;
announcementLists: Array<any>;
announcementLists: any;
titleDeatil: string;
constructor(private activateRoute: ActivatedRoute,
private myService: MyService,
......
......@@ -7,7 +7,7 @@
<div class="contentDetail employ">
<div class="contentItem">
<input class="form-control" name="" id="" placeholder="开户行具体到支行" [(ngModel)]="bankAccountOpening"
(blur)="bs()" [disabled]="approveStatus!=null && approveStatus!='-1'" />
(blur)="bs(null)" [disabled]="approveStatus!=null && approveStatus!='-1'" />
</div>
<div class="contentItem">
<input class="form-control" placeholder="银行卡号:例如 6301234345354356" [(ngModel)]="bankAccountId"
......
<div class="wrapper">
<div class="title" *ngIf="!approvalIdentity">
<div class="title">
欢迎加入银盾大家庭
</div>
<div class="content">
......
......@@ -113,7 +113,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
{
title: '我的展业',
content: [
{ no: 12, subtitle: '我的保单', icon: 'policy', path: '', routerLink: '',showSubMenu:true },
{ no: 12, subtitle: '销售保单', icon: 'policy', path: '', routerLink: '',showSubMenu:true },
{ no: 20, subtitle: '我的客户', icon: 'customer', path: '', routerLink: '',showSubMenu:true },
// { no: 14, subtitle: '我的佣金', icon: 'commission', path: '', routerLink: '',showSubMenu:true },
{ no: 19, subtitle: '薪资单', icon: 'salary', path: '', routerLink: 'salary',showSubMenu:this.isShowSalay },
......
......@@ -18,7 +18,7 @@
</li>
</ul>
<div class="salesContent" [ngStyle]="{'padding-bottom':showRecruitingList?.length>0?'50px':'0px'}">
<div style="text-align: center;margin: 20px auto;font-size: 20px;" *ngIf="businessList?.length==0">暂无商机</div>
<div style="text-align: center;margin: 20px auto;font-size: 20px;" *ngIf="recruitingList?.length==0">暂无增员</div>
<div class="salesItem" *ngFor="let recruitingItem of showRecruitingList" (click)="isJumpToDetail(recruitingItem.potentialId,recruitingItem)">
<div class="icon_bolck" *ngIf="pageType=='recruiting'"><span class="iconfont icon-tuanduiguanlisvg"></span></div>
<div *ngIf="pageType=='linkrecruiting'" class="linkbusinessRadius">
......
<div class="wrapper">
<div #letter_src id="letter_src">
<div class="welcome_header" >
<img src="assets/images/welcome_header.jpg" >
</div>
<div class="chinese">
亲爱的 <span style="font-weight: bold;">{{brokerInfo?.name}}</span>
<br /><br />
......
......@@ -83,5 +83,17 @@
color: #fff;
}
.welcome_header{
width: 180px;
height: 180px;
overflow: hidden;
margin: 0 auto;
border-radius: 50%;
}
.welcome_header img{
max-width: 100%;
margin-top: -10px;
}

96.5 KB | W: | H:

47.8 KB | W: | H:

src/assets/images/loading_bg.png
src/assets/images/loading_bg.png
src/assets/images/loading_bg.png
src/assets/images/loading_bg.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -153,6 +153,22 @@
})
}
getknowledgeQry();
// (function() {
// if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") {
// handleFontSize();
// } else {
// document.addEventListener("WeixinJSBridgeReady", handleFontSize, false);
// }
// function handleFontSize() {
// // 设置网页字体为默认大小
// WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize' : 0 });
// // 重写设置网页字体大小的事件
// WeixinJSBridge.on('menu:setfont', function() {
// WeixinJSBridge.invoke('setFontSizeCallback', { 'fontSize' : 0 });
// });
// }
// })();
</script>
</body>
......
......@@ -14,7 +14,9 @@ html, body {
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
background: #fff;
// -webkit-text-size-adjust: 100% !important;
}
ol, ul {
margin-top: 0;
margin-bottom: 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment