Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydLife
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
ydLife
Commits
b53bcbcd
Commit
b53bcbcd
authored
Jul 14, 2022
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
置顶公众号与首页图标优化
parent
6b9a20da
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
6 additions
and
34 deletions
+6
-34
src/app/app.component.html
+2
-8
src/app/app.component.ts
+2
-16
src/app/directive/drag.directive.ts
+1
-9
src/app/my/news-detail/news-detail.component.html
+1
-1
src/assets/images/ask.gif
+0
-0
src/assets/images/ask.png
+0
-0
src/assets/images/topOfficalAccountGuide.png
+0
-0
src/assets/images/topOfficalAccountGuide1.png
+0
-0
No files found.
src/app/app.component.html
View file @
b53bcbcd
...
...
@@ -3,21 +3,16 @@
<router-outlet></router-outlet>
<ydlife-guide-page
*
ngIf=
"shareGuidePageEnable"
></ydlife-guide-page>
<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>
首页
</div>
</div>
<div
class=
"questionContainer"
id=
"menuContainer"
*
ngIf=
"iconShowFlag"
appDrag
>
<div
style=
"position: relation;"
*
ngIf=
"askIconFlag"
>
<div
(
click
)="
showMenu
()
"
>
<div
[
routerLink
]="'/
underwriting_knowledge
'
"
>
<img
src=
"assets/images/ask.gif"
alt=
""
srcset=
""
>
</div>
<div
class=
"closeIcon"
(
click
)="
askIconFlag=
menuShowFlag=iconShowFlag=false"
>
X
</div>
</div>
<ul
id=
"menuListContainer"
*
ngIf=
"menuShowFlag"
>
<li
[
routerLink
]="'/
underwriting_knowledge
'"
>
我要提问
</li>
<!-- <li [routerLink]="'/my_question'">我的问题</li> -->
<li
[
routerLink
]="'/'"
>
回到首页
</li>
</ul>
</div>
</div>
\ No newline at end of file
src/app/app.component.ts
View file @
b53bcbcd
...
...
@@ -23,7 +23,6 @@ export class AppComponent implements OnInit, OnDestroy {
// 提问icon显示隐藏
askIconFlag
:
boolean
=
true
;
iconShowFlag
:
boolean
=
true
;
menuShowFlag
:
boolean
=
false
;
constructor
(
private
router
:
Router
,
private
authService
:
AuthService
,
private
lifeCommonService
:
LifeCommonService
,
...
...
@@ -31,15 +30,6 @@ export class AppComponent implements OnInit, OnDestroy {
private
el
:
ElementRef
)
{
this
.
subscription
=
lifeCommonService
.
shareStatus$
.
subscribe
(
status
=>
{
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 {
this
.
router
.
events
.
forEach
((
event
)
=>
{
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 {
this
.
subscription
.
unsubscribe
();
}
// 菜单展示
showMenu
(){
this
.
menuShowFlag
=
!
this
.
menuShowFlag
;
}
// 微信JS-SDK注册
ydWxConfig
()
{
const
url
=
encodeURIComponent
(
location
.
href
.
split
(
'#'
)[
0
]);
...
...
src/app/directive/drag.directive.ts
View file @
b53bcbcd
...
...
@@ -118,14 +118,6 @@ export class DragDirective implements OnInit {
this
.
el
.
nativeElement
.
style
.
right
=
'10px'
;
}
return
;
}
else
{
// 阻止点透事件
setTimeout
(()
=>
{
if
(
this
.
isNeedReturn
==
'1'
){
this
.
router
.
navigate
([
'/'
]);
}
},
300
)
}
}
}
}
src/app/my/news-detail/news-detail.component.html
View file @
b53bcbcd
...
...
@@ -3,7 +3,7 @@
<div>
<div><img
src=
"assets/images/topOfficalAccountGuideBg.png"
alt=
""
></div>
<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/topOfficalAccountGuide
1
.png"
alt=
""
></div>
</div>
</div>
<div
class=
"closeBtn"
>
...
...
src/assets/images/ask.gif
View file @
b53bcbcd
114 KB
|
W:
|
H:
101 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/images/ask.png
deleted
100644 → 0
View file @
6b9a20da
4.47 KB
src/assets/images/topOfficalAccountGuide.png
deleted
100644 → 0
View file @
6b9a20da
229 KB
src/assets/images/topOfficalAccountGuide1.png
0 → 100644
View file @
b53bcbcd
229 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment