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
2fced836
Commit
2fced836
authored
Mar 29, 2021
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的保单接口对接&初始化loading页图片替换
parent
3370363a
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
53 additions
and
25 deletions
+53
-25
src/app/my/my-center-home/my-center-home.component.ts
+1
-1
src/app/my/order-detail/order-detail.component.html
+20
-6
src/app/my/order-detail/order-detail.component.scss
+20
-1
src/app/my/order-detail/order-detail.component.ts
+5
-1
src/app/my/sales-detail/sales-detail.component.html
+2
-2
src/app/my/sales-detail/sales-detail.component.ts
+4
-13
src/assets/images/loading_bg.png
+0
-0
src/index.html
+1
-1
No files found.
src/app/my/my-center-home/my-center-home.component.ts
View file @
2fced836
...
@@ -55,7 +55,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
...
@@ -55,7 +55,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
this
.
deviceType
=
this
.
lifeCommonService
.
checkDeviceType
();
this
.
deviceType
=
this
.
lifeCommonService
.
checkDeviceType
();
this
.
lifeCustomerInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))
?
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))
:
null
;
this
.
lifeCustomerInfo
=
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))
?
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))
:
null
;
this
.
isShowSalay
=
this
.
lifeCustomerInfo
.
canSeeSalaryList
==
1
?
true
:
false
;
this
.
isShowSalay
=
this
.
lifeCustomerInfo
.
canSeeSalaryList
==
1
?
true
:
false
;
this
.
announcementQuery
();
//
this.announcementQuery();
this
.
performanceList
=
[
this
.
performanceList
=
[
{
name
:
`
${
this
.
lifeCommonService
.
dateFormat
(
new
Date
,
(
'M'
))}
月`
,
time
:
1
},
{
name
:
`
${
this
.
lifeCommonService
.
dateFormat
(
new
Date
,
(
'M'
))}
月`
,
time
:
1
},
{
name
:
`
${
this
.
getQuarter
(
this
.
lifeCommonService
.
dateFormat
(
new
Date
,
(
'M'
)))}
`
,
time
:
3
},
{
name
:
`
${
this
.
getQuarter
(
this
.
lifeCommonService
.
dateFormat
(
new
Date
,
(
'M'
)))}
`
,
time
:
3
},
...
...
src/app/my/order-detail/order-detail.component.html
View file @
2fced836
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"detailContainer scrollContent"
>
<div
class=
"detailContainer scrollContent"
>
<div
class=
"orderdetailBox"
>
<div
class=
"orderdetailBox"
>
<div
class=
"btnBox"
>
<div
class=
"btnBox"
>
<span
class=
"alignItemCenter"
><i
class=
"line"
></i>
保单明细
</span>
<span
class=
"alignItemCenter"
style=
"font-size: 20px;"
><i
class=
"line"
></i>
保单明细
</span>
</div>
</div>
<ul
class=
"list-group"
*
ngIf=
"policyInfo?.policyNo"
>
<ul
class=
"list-group"
*
ngIf=
"policyInfo?.policyNo"
>
<li
class=
"list-group-item"
>
<li
class=
"list-group-item"
>
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
<span>
{{policyInfo?.status}}
</span>
<span>
{{policyInfo?.status}}
</span>
</li>
</li>
<div
class=
"insuredsBox coverContent"
>
<div
class=
"insuredsBox coverContent"
>
<h4
class=
"text-left alignItemCenter"
><i
class=
"line"
></i>
保障内容
</h4>
<ul
*
ngFor=
"let productInfo of policyFactorInfos;index as i"
>
<ul
*
ngFor=
"let productInfo of policyFactorInfos;index as i"
>
<li
class=
"list-group-item"
*
ngIf=
"productInfo?.productName"
>
<li
class=
"list-group-item"
*
ngIf=
"productInfo?.productName"
>
<span
style=
"width: 30%;"
>
产品
</span>
<span
style=
"width: 30%;"
>
产品
</span>
...
@@ -50,13 +49,17 @@
...
@@ -50,13 +49,17 @@
</li>
</li>
</ul>
</ul>
</div>
</div>
<div
class=
"btnBox"
>
<div
class=
"btnBox"
style=
"margin-top: 10px;"
>
<span
class=
"alignItemCenter"
><i
class=
"line"
></i>
投保人信息
</span>
<span
class=
"alignItemCenter"
><i
class=
"line"
></i>
投保人信息
</span>
</div>
</div>
<li
class=
"list-group-item"
>
<li
class=
"list-group-item"
>
<span>
姓名
</span>
<span>
姓名
</span>
<span>
{{holderInfo?.name}}
</span>
<span>
{{holderInfo?.name}}
</span>
</li>
</li>
<li
class=
"list-group-item"
*
ngIf=
"holderInfo?.mobileNo"
>
<span>
手机号
</span>
<span>
{{holderInfo?.mobileNo}}
</span>
</li>
<li
class=
"list-group-item"
*
ngIf=
"holderInfo?.gender"
>
<li
class=
"list-group-item"
*
ngIf=
"holderInfo?.gender"
>
<span>
性别
</span>
<span>
性别
</span>
<ng-container
[
ngSwitch
]="
holderInfo
?.
gender
"
>
<ng-container
[
ngSwitch
]="
holderInfo
?.
gender
"
>
...
@@ -87,12 +90,16 @@
...
@@ -87,12 +90,16 @@
</li>
</li>
</ul>
</ul>
<div
class=
"insuredsBox"
*
ngFor=
"let insured of insuredInfos;index as i"
>
<div
class=
"insuredsBox"
*
ngFor=
"let insured of insuredInfos;index as i"
>
<h4
class=
"text-left alignItemCenter"
><i
class=
"line"
></i>
被保人信息{{i+1}}
</h4>
<h4
class=
"text-left alignItemCenter"
style=
"margin-top: 10px;"
><i
class=
"line"
></i>
被保人信息{{i+1}}
</h4>
<ul>
<ul>
<li
class=
"list-group-item"
*
ngIf=
"this.insured?.name"
>
<li
class=
"list-group-item"
*
ngIf=
"this.insured?.name"
>
<span>
姓名
</span>
<span>
姓名
</span>
<span>
{{this.insured?.name}}
</span>
<span>
{{this.insured?.name}}
</span>
</li>
</li>
<li
class=
"list-group-item"
*
ngIf=
"this.insured?.mobileNo"
>
<span>
手机号
</span>
<span>
{{this.insured?.mobileNo}}
</span>
</li>
<li
class=
"list-group-item"
*
ngIf=
"this.insured?.gender"
>
<li
class=
"list-group-item"
*
ngIf=
"this.insured?.gender"
>
<span>
性别
</span>
<span>
性别
</span>
<ng-container
[
ngSwitch
]="
insured
?.
gender
"
>
<ng-container
[
ngSwitch
]="
insured
?.
gender
"
>
...
@@ -138,15 +145,22 @@
...
@@ -138,15 +145,22 @@
</li>
</li>
</ul>
</ul>
</div>
</div>
<h4
class=
"text-left alignItemCenter"
*
ngIf=
"policyInfo?.price || policyInfo?.referralInfo?.referralAmount || policyInfo?.totalPrice"
style=
"margin-top: 10px;"
><i
class=
"line"
></i>
保费
</h4>
<ul
class=
"priceContainer"
>
<ul
class=
"priceContainer"
>
<li
class=
"list-group-item"
*
ngIf=
"policyInfo?.price"
>
<li
class=
"list-group-item"
*
ngIf=
"policyInfo?.price"
>
<span>
总
保费
</span>
<span>
年化
保费
</span>
<span>
¥{{policyInfo?.price | number:'1.2-2'}}
</span>
<span>
¥{{policyInfo?.price | number:'1.2-2'}}
</span>
</li>
</li>
<li
class=
"list-group-item"
*
ngIf=
"policyInfo?.totalPrice"
>
<span>
总保费
</span>
<span>
¥ {{policyInfo?.totalPrice | number:'1.2-2'}}
</span>
</li>
<li
class=
"list-group-item"
*
ngIf=
"policyInfo?.referralInfo?.referralAmount"
>
<li
class=
"list-group-item"
*
ngIf=
"policyInfo?.referralInfo?.referralAmount"
>
<span
style=
"color: #c9af71;"
>
总销售
佣金
</span>
<span
style=
"color: #c9af71;"
>
佣金
</span>
<span
class=
"light-color"
>
¥{{policyInfo?.referralInfo?.referralAmount | number:'1.2-2'}}
</span>
<span
class=
"light-color"
>
¥{{policyInfo?.referralInfo?.referralAmount | number:'1.2-2'}}
</span>
</li>
</li>
</ul>
</ul>
</div>
</div>
</div>
</div>
...
...
src/app/my/order-detail/order-detail.component.scss
View file @
2fced836
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
}
}
.orderdetailBox
{
.orderdetailBox
{
margin
:
20px
8px
;
margin
:
0
8px
20px
8px
;
background-color
:
#f9fdff
;
background-color
:
#f9fdff
;
padding-top
:
14px
;
padding-top
:
14px
;
padding-left
:
11px
;
padding-left
:
11px
;
...
@@ -18,6 +18,10 @@
...
@@ -18,6 +18,10 @@
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.orderdetailBox
.btnBox
span
{
display
:
flex
;
align-items
:
center
;
}
.orderdetailBox
.btnBox
div
.downloadBtn
{
.orderdetailBox
.btnBox
div
.downloadBtn
{
display
:
inline-block
;
display
:
inline-block
;
...
@@ -72,6 +76,18 @@
...
@@ -72,6 +76,18 @@
transform
:
scaleY
(
0
.3
)
transform
:
scaleY
(
0
.3
)
}
}
.list-group-item
+
.list-group-item
:last-child::after
{
position
:
absolute
;
bottom
:
0
;
left
:
0
;
content
:
''
;
width
:
100%
;
height
:
1px
;
border-top
:
1px
solid
#dcdcdc
;
-webkit-transform
:
scaleY
(
0
.3
);
transform
:
scaleY
(
0
.3
)
}
.list-group-item
:nth-last-child
(
1
)
{
.list-group-item
:nth-last-child
(
1
)
{
border
:
none
;
border
:
none
;
}
}
...
@@ -93,6 +109,9 @@
...
@@ -93,6 +109,9 @@
border-top
:
1px
solid
#dcdcdc
;
border-top
:
1px
solid
#dcdcdc
;
}
}
.priceContainer
li
:nth-child
(
1
)
{
border
:
none
;
}
h4
{
h4
{
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
bold
;
font-weight
:
bold
;
...
...
src/app/my/order-detail/order-detail.component.ts
View file @
2fced836
...
@@ -11,16 +11,20 @@ export class OrderDetailComponent implements OnInit {
...
@@ -11,16 +11,20 @@ export class OrderDetailComponent implements OnInit {
orderNo
:
string
;
orderNo
:
string
;
policyInfo
:
any
;
policyInfo
:
any
;
holderInfo
:
any
;
holderInfo
:
any
;
policyNo
:
string
;
insuredInfos
:
Array
<
any
>
;
insuredInfos
:
Array
<
any
>
;
policyFactorInfos
:
Array
<
any
>
;
policyFactorInfos
:
Array
<
any
>
;
relation_id
:
string
;
constructor
(
private
myService
:
MyService
,
private
activatedRoute
:
ActivatedRoute
)
{
}
constructor
(
private
myService
:
MyService
,
private
activatedRoute
:
ActivatedRoute
)
{
}
ngOnInit
()
{
ngOnInit
()
{
this
.
orderNo
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
orderNo
;
this
.
orderNo
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
orderNo
;
this
.
policyNo
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
policyNo
;
this
.
relation_id
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
relation_id
;
this
.
policyInfoQuery
();
this
.
policyInfoQuery
();
}
}
policyInfoQuery
()
{
policyInfoQuery
()
{
this
.
myService
.
policyInfoQuery
({
orderNo
:
this
.
orderNo
,
platform
:
2
}).
subscribe
((
res
)
=>
{
this
.
myService
.
policyInfoQuery
({
orderNo
:
this
.
orderNo
,
platform
:
2
,
policyNo
:
this
.
policyNo
,
relation_id
:
this
.
relation_id
}).
subscribe
((
res
)
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
this
.
policyInfo
=
res
[
'data'
];
this
.
policyInfo
=
res
[
'data'
];
this
.
holderInfo
=
this
.
policyInfo
[
'holderInfo'
];
this
.
holderInfo
=
this
.
policyInfo
[
'holderInfo'
];
...
...
src/app/my/sales-detail/sales-detail.component.html
View file @
2fced836
...
@@ -15,13 +15,13 @@
...
@@ -15,13 +15,13 @@
</li>
</li>
</ul>
</ul>
<ul
class=
"tab"
>
<ul
class=
"tab"
>
<li
(
click
)="
platform=
1;practitionerPolicyListQuery(1)"
[
ngClass
]="{
selected:platform=
=1}"
>
线上
</li>
<li
(
click
)="
platform=
2;practitionerPolicyListQuery(2)"
[
ngClass
]="{
selected:platform=
=2}"
>
寿险
</li>
<li
(
click
)="
platform=
2;practitionerPolicyListQuery(2)"
[
ngClass
]="{
selected:platform=
=2}"
>
寿险
</li>
<li
(
click
)="
platform=
1;practitionerPolicyListQuery(1)"
[
ngClass
]="{
selected:platform=
=1}"
>
线上
</li>
</ul>
</ul>
</div>
</div>
<div
class=
"salesContent"
>
<div
class=
"salesContent"
>
<div
class=
"salesItem"
*
ngFor=
"let salesDetailItem of salesDetailList"
<div
class=
"salesItem"
*
ngFor=
"let salesDetailItem of salesDetailList"
(
click
)="
jumpToOrderdetail
(
salesDetailItem
.
orderNo
,
salesDetailItem
.
platform
,
salesDetailItem
.
fortuneId
)"
>
(
click
)="
jumpToOrderdetail
(
salesDetailItem
.
orderNo
,
salesDetailItem
.
platform
,
salesDetailItem
.
fortuneId
,
salesDetailItem
.
policyNo
,
salesDetailItem
.
relation_id
)"
>
<div
class=
"line"
>
<div
class=
"line"
>
<div>
投保人:{{salesDetailItem.holderName}}
</div>
<div>
投保人:{{salesDetailItem.holderName}}
</div>
<span
class=
"iconfont icon-ar-r"
style=
"font-size: 10px;position: relative; right: -2px;"
></span>
<span
class=
"iconfont icon-ar-r"
style=
"font-size: 10px;position: relative; right: -2px;"
></span>
...
...
src/app/my/sales-detail/sales-detail.component.ts
View file @
2fced836
...
@@ -26,25 +26,16 @@ export class SalesDetailComponent implements OnInit {
...
@@ -26,25 +26,16 @@ export class SalesDetailComponent implements OnInit {
ngOnInit
()
{
ngOnInit
()
{
this
.
searchType
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
searchType
;
this
.
searchType
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
searchType
;
this
.
showType
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
showType
;
this
.
showType
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
showType
;
this
.
platform
=
1
;
this
.
platform
=
2
;
this
.
practitionerPolicyListQuery
(
this
.
platform
);
this
.
practitionerPolicyListQuery
(
this
.
platform
);
}
}
//查询保单
//查询保单
practitionerPolicyListQuery
(
platform
?:
any
)
{
practitionerPolicyListQuery
(
platform
?:
any
)
{
const
practitionerId
=
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'practitionerId'
];
const
practitionerId
=
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'practitionerId'
];
this
.
myService
.
policyListQuery
({
practitionerId
:
practitionerId
,
time
:
this
.
searchType
}).
subscribe
((
res
)
=>
{
this
.
myService
.
policyListQuery
({
practitionerId
:
practitionerId
,
time
:
this
.
searchType
,
platform
:
this
.
platform
}).
subscribe
((
res
)
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
this
.
salesDetailList
=
res
[
'data'
][
'policyInfoList'
];
this
.
salesDetailList
=
res
[
'data'
][
'policyInfoList'
];
if
(
platform
==
1
)
{
this
.
salesDetailList
=
this
.
salesDetailList
.
filter
(
item
=>
{
return
item
.
platform
==
1
;
})
}
else
{
this
.
salesDetailList
=
this
.
salesDetailList
.
filter
(
item
=>
{
return
item
.
platform
==
2
;
})
}
}
else
{
}
else
{
this
.
salesDetailList
=
[];
this
.
salesDetailList
=
[];
}
}
...
@@ -59,12 +50,12 @@ export class SalesDetailComponent implements OnInit {
...
@@ -59,12 +50,12 @@ export class SalesDetailComponent implements OnInit {
this
.
practitionerPolicyListQuery
(
this
.
platform
);
this
.
practitionerPolicyListQuery
(
this
.
platform
);
}
}
jumpToOrderdetail
(
orderNo
,
platform
,
fortuneId
)
{
jumpToOrderdetail
(
orderNo
,
platform
,
fortuneId
,
policyNo
,
relation_id
)
{
if
(
platform
===
1
)
{
if
(
platform
===
1
)
{
const
customerId
=
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
)).
customerId
;
const
customerId
=
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
)).
customerId
;
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/mine/orderdetail/
${
orderNo
}
?customerId=
${
customerId
}
&isReferral=true&paid=true&fortuneId=
${
fortuneId
}
`
;
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/mine/orderdetail/
${
orderNo
}
?customerId=
${
customerId
}
&isReferral=true&paid=true&fortuneId=
${
fortuneId
}
`
;
}
else
{
}
else
{
this
.
router
.
navigate
([
'/orderDetail'
],
{
queryParams
:
{
orderNo
:
orderNo
}
});
this
.
router
.
navigate
([
'/orderDetail'
],
{
queryParams
:
{
orderNo
:
orderNo
,
policyNo
:
policyNo
,
relation_id
:
relation_id
}
});
}
}
}
}
}
}
src/assets/images/loading_bg.png
View file @
2fced836
This diff is collapsed.
Click to expand it.
src/index.html
View file @
2fced836
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
if
(
document
.
readyState
==
"complete"
)
{
if
(
document
.
readyState
==
"complete"
)
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
loading
.
style
.
display
=
'none'
;
loading
.
style
.
display
=
'none'
;
},
30
00
)
},
15
00
)
}
}
}
}
...
...
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