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
696dabff
Commit
696dabff
authored
Jan 20, 2020
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享名片按钮的显示和隐藏
parent
c4201a53
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/app/my/my-center-home/my-center-home.component.html
+1
-1
src/app/my/my-center-home/my-center-home.component.ts
+3
-1
No files found.
src/app/my/my-center-home/my-center-home.component.html
View file @
696dabff
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<div
class=
"brokerInfo"
>
<div
class=
"brokerInfo"
>
<div
class=
"brokerName"
>
<div
class=
"brokerName"
>
<div
style=
"letter-spacing: 2px"
><span>
{{lifeCustomerInfo?.practitionerBasicInfo?.name}}
</span></div>
<div
style=
"letter-spacing: 2px"
><span>
{{lifeCustomerInfo?.practitionerBasicInfo?.name}}
</span></div>
<div
class=
"shareSelfInfoBtn"
*
ngIf=
"
this.deviceType===3
"
(
click
)="
shareIdCard
()"
><span>
分享名片
</span></div>
<div
class=
"shareSelfInfoBtn"
*
ngIf=
"
deviceType=='3'
"
(
click
)="
shareIdCard
()"
><span>
分享名片
</span></div>
</div>
</div>
<div
class=
"brokerTag"
>
<div
class=
"brokerTag"
>
...
...
src/app/my/my-center-home/my-center-home.component.ts
View file @
696dabff
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Router
}
from
"@angular/router"
;
import
{
Router
}
from
"@angular/router"
;
import
{
LifeCommonService
}
from
"../../common/life-common.service"
;
import
{
LifeCommonService
}
from
"../../common/life-common.service"
;
import
{
environment
}
from
"../../../environments/environment"
;
declare
var
wx
:
any
;
declare
var
wx
:
any
;
@
Component
({
@
Component
({
selector
:
'ydlife-my-center-home'
,
selector
:
'ydlife-my-center-home'
,
...
@@ -71,12 +72,13 @@ export class MyCenterHomeComponent implements OnInit {
...
@@ -71,12 +72,13 @@ export class MyCenterHomeComponent implements OnInit {
// 分享名片
// 分享名片
shareIdCard
()
{
shareIdCard
()
{
const
imgUrl
=
this
.
lifeCustomerInfo
.
practitionerBasicInfo
.
headImagePath
?
this
.
lifeCustomerInfo
.
practitionerBasicInfo
.
headImagePath
:
`
${
environment
.
ORIGINNAME
}
/ydLife/assets/images/icons/meng.png`
;
this
.
lifeCommonService
.
shareStatusPublish
(
1
);
this
.
lifeCommonService
.
shareStatusPublish
(
1
);
this
.
lifeCommonService
.
wxShare
(
this
.
lifeCommonService
.
wxShare
(
`银盾保险经纪
${
this
.
lifeCustomerInfo
.
practitionerBasicInfo
.
name
}
`
,
`银盾保险经纪
${
this
.
lifeCustomerInfo
.
practitionerBasicInfo
.
name
}
`
,
'银盾保险经纪,家庭健康保险专家'
,
'银盾保险经纪,家庭健康保险专家'
,
`https://m.zuihuibi.cn/brokerQry/#/brokerDetail/
${
this
.
lifeCustomerInfo
.
practitionerId
}
`
,
`https://m.zuihuibi.cn/brokerQry/#/brokerDetail/
${
this
.
lifeCustomerInfo
.
practitionerId
}
`
,
'imgUrl'
);
imgUrl
);
}
}
}
}
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