Commit 7d8344c3 by wenyang

文章分享优化

parent c6d8e3ff
......@@ -87,7 +87,7 @@ export class AppComponent implements OnInit, OnDestroy {
this.isShowIndexBtn = event.url.indexOf('/login') < 0;
this.iconShowFlag = !!localStorage.getItem('lifeCustomerInfo');
if ((event.url.indexOf('/activityDetail') >= 0 && event.url.indexOf('shareCode') >= 0)
|| event.url.indexOf('/aiofp') >= 0
|| event.url.indexOf('/aiofp') >= 0 || (event.url.indexOf('/articleDetail') >= 0 && event.url.indexOf('shareCode') >= 0)
) {
this.iconShowFlag = false;
}
......@@ -98,10 +98,11 @@ export class AppComponent implements OnInit, OnDestroy {
|| event.url.indexOf('/video/') >= 0
|| (event.url.indexOf('/activityDetail') >= 0 && event.url.indexOf('shareCode') >= 0)
|| event.url.indexOf('/aiofp') >= 0
|| (event.url.indexOf('/articleDetail') >= 0 && event.url.indexOf('shareCode') >= 0)
) {
this.isShowIndexBtn = false;
}
if (event.url.indexOf('/activityDetail') >= 0) {
if (event.url.indexOf('/activityDetail') >= 0 || event.url.indexOf('/articleDetail') >= 0) {
this.isShowhead = false;
}
......
......@@ -60,7 +60,7 @@
</div>
</div>
</div>
<div class="shareCus" (click)="share()" *ngIf="this.lifeCommonService.checkDeviceType() == 3">
<div class="shareCus" (click)="share()" *ngIf="this.lifeCommonService.checkDeviceType() == 3" [ngStyle]="{'bottom':shareCode ? '0px' : '70px'}">
<span style="font-size: 20px;">分享</span>
</div>
<!--分享引导页-->
......
......@@ -137,7 +137,7 @@
}
//页面刷新的时候不出现
if (window.name == "") {
if(window.location.pathname != '/ydLife/identify' && window.location.href.indexOf('preFlag=AGMS') < 0 && window.location.href.indexOf('reminder_detail') < 0 && window.location.href.indexOf('activityDetail') < 0 ){
if(window.location.pathname != '/ydLife/identify' && window.location.href.indexOf('preFlag=AGMS') < 0 && window.location.href.indexOf('reminder_detail') < 0 && window.location.href.indexOf('activityDetail') < 0 && window.location.href.indexOf('articleDetail') < 0 ){
window.name = "isReload"; // 在首次进入页面时我们可以给window.name设置一个固定值
initialize();
setTimeout(()=>{getknowledgeQry()});
......
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