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
6a2e8f1f
Commit
6a2e8f1f
authored
Feb 07, 2020
by
sweet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加疾无忧产品海报
parent
c4201a53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
src/app/my/mk-material-detail/mk-material-detail.component.ts
+12
-0
src/app/my/mk-material/mk-material.component.ts
+1
-0
No files found.
src/app/my/mk-material-detail/mk-material-detail.component.ts
View file @
6a2e8f1f
...
@@ -4,8 +4,10 @@ import {environment} from '../../../environments/environment';
...
@@ -4,8 +4,10 @@ import {environment} from '../../../environments/environment';
import
{
LifeCommonService
}
from
'../../common/life-common.service'
;
import
{
LifeCommonService
}
from
'../../common/life-common.service'
;
import
{
MyService
}
from
'../my.service'
;
import
{
MyService
}
from
'../my.service'
;
import
{
Buffer
}
from
'buffer'
;
import
{
Buffer
}
from
'buffer'
;
declare
var
QRCode
:
any
;
declare
var
QRCode
:
any
;
import
*
as
uuid
from
'uuid'
;
import
*
as
uuid
from
'uuid'
;
@
Component
({
@
Component
({
selector
:
'ydlife-mk-material-detail'
,
selector
:
'ydlife-mk-material-detail'
,
templateUrl
:
'./mk-material-detail.component.html'
,
templateUrl
:
'./mk-material-detail.component.html'
,
...
@@ -13,6 +15,8 @@ import * as uuid from 'uuid';
...
@@ -13,6 +15,8 @@ import * as uuid from 'uuid';
})
})
export
class
MkMaterialDetailComponent
implements
OnInit
{
export
class
MkMaterialDetailComponent
implements
OnInit
{
@
ViewChild
(
'canvas'
)
canvas
:
ElementRef
<
any
>
;
@
ViewChild
(
'canvas'
)
canvas
:
ElementRef
<
any
>
;
// 区分险种 1.产险-健康险
productType
:
number
;
materialItemId
:
string
;
materialItemId
:
string
;
lifeCustomerInfo
:
any
;
lifeCustomerInfo
:
any
;
shareInfo
:
any
;
shareInfo
:
any
;
...
@@ -32,6 +36,9 @@ export class MkMaterialDetailComponent implements OnInit {
...
@@ -32,6 +36,9 @@ export class MkMaterialDetailComponent implements OnInit {
ngOnInit
()
{
ngOnInit
()
{
this
.
materialItemId
=
this
.
activateRoute
.
snapshot
.
paramMap
.
get
(
'itemId'
);
this
.
materialItemId
=
this
.
activateRoute
.
snapshot
.
paramMap
.
get
(
'itemId'
);
if
(
this
.
materialItemId
.
substr
(
0
,
2
)
===
'ph'
)
{
this
.
productType
=
1
;
}
this
.
lifeCustomerInfo
=
localStorage
.
getItem
(
'lifeCustomerInfo'
)
?
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))
:
null
;
this
.
lifeCustomerInfo
=
localStorage
.
getItem
(
'lifeCustomerInfo'
)
?
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))
:
null
;
// 分享信息
// 分享信息
const
shareCodeUuid
=
uuid
.
v4
();
const
shareCodeUuid
=
uuid
.
v4
();
...
@@ -42,6 +49,11 @@ export class MkMaterialDetailComponent implements OnInit {
...
@@ -42,6 +49,11 @@ export class MkMaterialDetailComponent implements OnInit {
productId
:
this
.
materialItemId
,
productId
:
this
.
materialItemId
,
url
:
`
${
environment
.
ORIGINNAME
}
/life/
${
this
.
materialItemId
}
?shareCode=
${
shareCodeUuid
}
`
url
:
`
${
environment
.
ORIGINNAME
}
/life/
${
this
.
materialItemId
}
?shareCode=
${
shareCodeUuid
}
`
};
};
if
(
this
.
productType
===
1
)
{
this
.
shareInfo
.
productId
=
null
;
this
.
shareInfo
.
planId
=
this
.
materialItemId
.
substr
(
2
);
this
.
shareInfo
.
url
=
`
${
environment
.
ORIGINNAME
}
/hProductDetail/
${
this
.
materialItemId
.
substr
(
2
)}
?shareCode=
${
shareCodeUuid
}
&type=9`
;
}
// 发送请求保存分享码
// 发送请求保存分享码
this
.
shareCallBack
();
this
.
shareCallBack
();
}
}
...
...
src/app/my/mk-material/mk-material.component.ts
View file @
6a2e8f1f
...
@@ -21,6 +21,7 @@ export class MkMaterialComponent implements OnInit {
...
@@ -21,6 +21,7 @@ export class MkMaterialComponent implements OnInit {
{
id
:
6
,
itemId
:
'137'
,
title
:
'中信保诚祯爱优选定期寿险'
},
{
id
:
6
,
itemId
:
'137'
,
title
:
'中信保诚祯爱优选定期寿险'
},
{
id
:
7
,
itemId
:
'138'
,
title
:
'中信保诚祯爱减额定期寿险'
},
{
id
:
7
,
itemId
:
'138'
,
title
:
'中信保诚祯爱减额定期寿险'
},
{
id
:
8
,
itemId
:
'139'
,
title
:
'中信保诚祯爱增额定期寿险'
},
{
id
:
8
,
itemId
:
'139'
,
title
:
'中信保诚祯爱增额定期寿险'
},
{
id
:
9
,
itemId
:
'ph465'
,
title
:
'E生平安·疾无忧'
}
];
];
}
}
...
...
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