Commit b53bcbcd by Sweet Zhang

置顶公众号与首页图标优化

parent 6b9a20da
...@@ -3,21 +3,16 @@ ...@@ -3,21 +3,16 @@
<router-outlet></router-outlet> <router-outlet></router-outlet>
<ydlife-guide-page *ngIf="shareGuidePageEnable"></ydlife-guide-page> <ydlife-guide-page *ngIf="shareGuidePageEnable"></ydlife-guide-page>
<ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert> <ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert>
<div class="returnIndexBox" *ngIf="isShowIndexBtn" appDrag [isNeedReturn]="'1'"> <div class="returnIndexBox" *ngIf="isShowIndexBtn" appDrag [routerLink]="'/'">
<div><i class="iconfont icon-shouye"></i></div> <div><i class="iconfont icon-shouye"></i></div>
<div>首页</div> <div>首页</div>
</div> </div>
<div class="questionContainer" id="menuContainer" *ngIf="iconShowFlag" appDrag> <div class="questionContainer" id="menuContainer" *ngIf="iconShowFlag" appDrag>
<div style="position: relation;" *ngIf="askIconFlag"> <div style="position: relation;" *ngIf="askIconFlag">
<div (click)="showMenu()"> <div [routerLink]="'/underwriting_knowledge'">
<img src="assets/images/ask.gif" alt="" srcset=""> <img src="assets/images/ask.gif" alt="" srcset="">
</div> </div>
<div class="closeIcon" (click)="askIconFlag=menuShowFlag=iconShowFlag=false">X</div> <div class="closeIcon" (click)="askIconFlag=menuShowFlag=iconShowFlag=false">X</div>
</div> </div>
<ul id="menuListContainer" *ngIf="menuShowFlag">
<li [routerLink]="'/underwriting_knowledge'">我要提问</li>
<!-- <li [routerLink]="'/my_question'">我的问题</li> -->
<li [routerLink]="'/'">回到首页</li>
</ul>
</div> </div>
</div> </div>
\ No newline at end of file
...@@ -23,7 +23,6 @@ export class AppComponent implements OnInit, OnDestroy { ...@@ -23,7 +23,6 @@ export class AppComponent implements OnInit, OnDestroy {
// 提问icon显示隐藏 // 提问icon显示隐藏
askIconFlag:boolean = true; askIconFlag:boolean = true;
iconShowFlag:boolean = true; iconShowFlag:boolean = true;
menuShowFlag:boolean = false;
constructor(private router: Router, constructor(private router: Router,
private authService: AuthService, private authService: AuthService,
private lifeCommonService: LifeCommonService, private lifeCommonService: LifeCommonService,
...@@ -31,15 +30,6 @@ export class AppComponent implements OnInit, OnDestroy { ...@@ -31,15 +30,6 @@ export class AppComponent implements OnInit, OnDestroy {
private el:ElementRef) { private el:ElementRef) {
this.subscription = lifeCommonService.shareStatus$.subscribe(status => { this.subscription = lifeCommonService.shareStatus$.subscribe(status => {
this.shareGuidePageEnable = status == '1'; this.shareGuidePageEnable = status == '1';
});
this.router.events.forEach(event=>{
if (event instanceof NavigationEnd){
if(!localStorage.getItem('lifeCustomerInfo')){
this.iconShowFlag = false;
}else{
this.iconShowFlag = true;
}
}
}) })
...@@ -63,7 +53,8 @@ export class AppComponent implements OnInit, OnDestroy { ...@@ -63,7 +53,8 @@ export class AppComponent implements OnInit, OnDestroy {
this.router.events.forEach((event) => { this.router.events.forEach((event) => {
if (event instanceof NavigationStart) { if (event instanceof NavigationStart) {
// 控制首页浮标显示与否 // 控制首页浮标显示与否
this.isShowIndexBtn = event.url == '/approval_list'; this.isShowIndexBtn = event.url != '/login';
this.iconShowFlag = !!localStorage.getItem('lifeCustomerInfo');
} }
}); });
} }
...@@ -72,11 +63,6 @@ export class AppComponent implements OnInit, OnDestroy { ...@@ -72,11 +63,6 @@ export class AppComponent implements OnInit, OnDestroy {
this.subscription.unsubscribe(); this.subscription.unsubscribe();
} }
// 菜单展示
showMenu(){
this.menuShowFlag = !this.menuShowFlag;
}
// 微信JS-SDK注册 // 微信JS-SDK注册
ydWxConfig() { ydWxConfig() {
const url = encodeURIComponent(location.href.split('#')[0]); const url = encodeURIComponent(location.href.split('#')[0]);
......
...@@ -118,14 +118,6 @@ export class DragDirective implements OnInit { ...@@ -118,14 +118,6 @@ export class DragDirective implements OnInit {
this.el.nativeElement.style.right = '10px'; this.el.nativeElement.style.right = '10px';
} }
return; return;
} else { }
// 阻止点透事件
setTimeout(() => {
if(this.isNeedReturn=='1'){
this.router.navigate(['/']);
}
}, 300)
}
} }
} }
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div> <div>
<div><img src="assets/images/topOfficalAccountGuideBg.png" alt=""></div> <div><img src="assets/images/topOfficalAccountGuideBg.png" alt=""></div>
<h3>为了便于更好的服务您,三步就可轻松置顶银盾保险经纪公众号哦~<img src="assets/images/downArrow.gif" alt="" style="width: 25px"></h3> <h3>为了便于更好的服务您,三步就可轻松置顶银盾保险经纪公众号哦~<img src="assets/images/downArrow.gif" alt="" style="width: 25px"></h3>
<div><img src="assets/images/topOfficalAccountGuide.png" alt=""></div> <div><img src="assets/images/topOfficalAccountGuide1.png" alt=""></div>
</div> </div>
</div> </div>
<div class="closeBtn"> <div class="closeBtn">
......

114 KB | W: | H:

101 KB | W: | H:

src/assets/images/ask.gif
src/assets/images/ask.gif
src/assets/images/ask.gif
src/assets/images/ask.gif
  • 2-up
  • Swipe
  • Onion skin
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