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
bfdf3efa
Commit
bfdf3efa
authored
Feb 26, 2020
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售明细&登录页修改
parent
69da4840
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
184 additions
and
26 deletions
+184
-26
src/app/auth/auth.service.ts
+1
-1
src/app/auth/login/login.component.html
+4
-3
src/app/auth/login/login.component.scss
+16
-1
src/app/common/life-common.service.ts
+4
-0
src/app/my/file-upload/file-upload.component.html
+1
-1
src/app/my/file-upload/file-upload.component.scss
+1
-0
src/app/my/file-upload/file-upload.component.ts
+13
-10
src/app/my/important-announcement/important-announcement.component.html
+1
-1
src/app/my/my-center-home/my-center-home.component.html
+1
-1
src/app/my/my-center-home/my-center-home.component.scss
+3
-2
src/app/my/my-center-home/my-center-home.component.ts
+4
-0
src/app/my/my-routing.module.ts
+2
-1
src/app/my/my.module.ts
+6
-3
src/app/my/my.service.ts
+2
-2
src/app/my/sales-detail/sales-detail.component.html
+16
-0
src/app/my/sales-detail/sales-detail.component.scss
+47
-0
src/app/my/sales-detail/sales-detail.component.spec.ts
+25
-0
src/app/my/sales-detail/sales-detail.component.ts
+37
-0
No files found.
src/app/auth/auth.service.ts
View file @
bfdf3efa
...
@@ -18,7 +18,7 @@ export class AuthService {
...
@@ -18,7 +18,7 @@ export class AuthService {
redirectUrl
:
string
;
redirectUrl
:
string
;
// 经纪人登陆
// 经纪人登陆
login
(
loginInfo
):
Observable
<
any
>
{
login
(
loginInfo
):
Observable
<
any
>
{
const
api
=
this
.
API
+
'/practitionerLogin'
;
const
api
=
this
.
API
+
'/practitioner
/practitioner
Login'
;
return
this
.
http
.
post
(
api
,
JSON
.
stringify
(
loginInfo
));
return
this
.
http
.
post
(
api
,
JSON
.
stringify
(
loginInfo
));
}
}
...
...
src/app/auth/login/login.component.html
View file @
bfdf3efa
<div
class=
"page form_vcode js_show"
>
<div
class=
"page form_vcode js_show"
>
<div
class=
"weui-form"
>
<div
class=
"weui-form"
>
<div
class=
"weui-form__text-area"
>
<div
class=
"weui-form__text-area"
style=
"position: relative;"
>
<img
style=
"width: 100%;"
src=
"assets/images/ydinsurance_logo.png"
>
<img
style=
"width: 100%;"
src=
"assets/images/ydinsurance_logo.png"
>
<div
style=
"font-family: '微软雅黑';position: absolute; top: 100px;left: 35%;font-size: 14px;"
>
海纳百川
赢家后盾
</div>
</div>
</div>
<div
class=
"weui-form__control-area"
>
<div
class=
"weui-form__control-area"
>
<div
class=
"weui-cells__group weui-cells__group_form"
>
<div
class=
"weui-cells__group weui-cells__group_form"
>
<div
class=
"weui-cells weui-cells_form"
>
<div
class=
"weui-cells weui-cells_form"
>
<div
class=
"weui-cell"
style=
"padding:1
6
px 0px"
>
<div
class=
"weui-cell"
style=
"padding:1
0
px 0px"
>
<!-- <div class="weui-cell__hd"><label class="weui-label">手机号</label></div> -->
<!-- <div class="weui-cell__hd"><label class="weui-label">手机号</label></div> -->
<div
class=
"weui-cell__bd"
>
<div
class=
"weui-cell__bd"
>
<input
autofocus=
""
class=
"weui-input"
type=
"tel"
maxlength=
"11"
pattern=
"[0-9]*"
placeholder=
"请输入
您的
手机号"
<input
autofocus=
""
class=
"weui-input"
type=
"tel"
maxlength=
"11"
pattern=
"[0-9]*"
placeholder=
"请输入手机号"
name=
"mobileNo"
name=
"mobileNo"
[(
ngModel
)]="
userInfo
.
mobileNo
"
>
[(
ngModel
)]="
userInfo
.
mobileNo
"
>
</div>
</div>
...
...
src/app/auth/login/login.component.scss
View file @
bfdf3efa
.weui-form__control-area
{
margin
:
20px
0
45px
0
;
}
.weui-form
{
.weui-form
{
padding
:
56px
15px
0px
15px
;
padding
:
56px
15px
0px
15px
;
}
}
...
@@ -7,10 +10,13 @@
...
@@ -7,10 +10,13 @@
background
:
#ff1c2b
;
background
:
#ff1c2b
;
}
}
}
}
.weui-cell
:before
,
.weui-cell
s__group_form
.weui-cells
:before
,
.weui-cells__group_form
.weui-cell
:before
{
.weui-cells__group_form
.weui-cells
:before
,
.weui-cells__group_form
.weui-cell
:before
{
left
:
0
;
left
:
0
;
right
:
0
;
right
:
0
;
}
}
.weui-cells__group_form
.weui-cells
:before
{
border-top
:
none
;
}
.weui-cells__group_form
.weui-cells
:after
{
.weui-cells__group_form
.weui-cells
:after
{
left
:
0
;
left
:
0
;
right
:
0
;
right
:
0
;
...
@@ -22,3 +28,12 @@
...
@@ -22,3 +28,12 @@
color
:
red
;
color
:
red
;
font-weight
:
normal
;
font-weight
:
normal
;
}
}
.weui-input
{
caret-color
:
red
;
font-size
:
20px
;
padding-left
:
10px
;
}
.
weui-input
:
:-
webkit-input-placeholder
{
font-size
:
20px
;
}
src/app/common/life-common.service.ts
View file @
bfdf3efa
...
@@ -144,4 +144,8 @@ export class LifeCommonService {
...
@@ -144,4 +144,8 @@ export class LifeCommonService {
}
}
return
days
;
return
days
;
}
}
dateFormat
(
date
:
any
,
format
?:
string
)
{
return
this
.
datePipe
.
transform
(
date
,
format
);
}
}
}
src/app/my/file-upload/file-upload.component.html
View file @
bfdf3efa
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
<a
href=
"{{fileUploadItem.filePath}}"
download=
"{{fileUploadItem.itemName}}"
target=
"_blank"
>
<a
href=
"{{fileUploadItem.filePath}}"
download=
"{{fileUploadItem.itemName}}"
target=
"_blank"
>
<div><i
class=
"iconfont icon-pdf"
></i></div>
<div><i
class=
"iconfont icon-pdf"
></i></div>
<div
title=
"{{fileUploadItem.itemName}}"
>
{{fileUploadItem.itemName}}
</div>
<div
title=
"{{fileUploadItem.itemName}}"
>
{{fileUploadItem.itemName}}
</div>
<div
style=
"position: absolute;right: 5px;top: 6px;"
><i
class=
"iconfont icon-xiazai"
></i></div>
</a>
</a>
<!-- <div><i class="iconfont icon-xiazai"></i></div> -->
</li>
</li>
</ul>
</ul>
</div>
</div>
...
...
src/app/my/file-upload/file-upload.component.scss
View file @
bfdf3efa
...
@@ -59,6 +59,7 @@
...
@@ -59,6 +59,7 @@
ul
li
{
ul
li
{
border-bottom
:
1px
solid
#dcdcdc
;
border-bottom
:
1px
solid
#dcdcdc
;
padding
:
4px
20px
;
padding
:
4px
20px
;
position
:
relative
;
.icon-xiazai
{
.icon-xiazai
{
font-size
:
22px
;
font-size
:
22px
;
color
:
#ec2d37
;
color
:
#ec2d37
;
...
...
src/app/my/file-upload/file-upload.component.ts
View file @
bfdf3efa
...
@@ -19,34 +19,33 @@ export class FileUploadComponent implements OnInit {
...
@@ -19,34 +19,33 @@ export class FileUploadComponent implements OnInit {
ngOnInit
()
{
ngOnInit
()
{
this
.
type
=
this
.
activatedRoute
.
snapshot
.
data
[
0
][
'type'
];
this
.
type
=
this
.
activatedRoute
.
snapshot
.
data
[
0
][
'type'
];
this
.
dropOptionsQuery
();
if
(
this
.
type
===
'fileUpload'
)
{
if
(
this
.
type
===
'fileUpload'
)
{
this
.
fileUpload
(
3
,
0
,
19
);
this
.
fileUpload
(
3
,
0
,
19
,
'yd_download_file_type'
,
this
.
selectedCategoryId
);
}
else
if
(
this
.
type
===
'training'
)
{
}
else
if
(
this
.
type
===
'training'
)
{
this
.
fileUpload
(
3
,
this
.
selectedCategoryId
,
23
);
this
.
fileUpload
(
3
,
0
,
23
,
'yd_trainning_file_type'
,
this
.
selectedCategoryId
);
}
}
this
.
dropOptionsQuery
();
//初始化选产品
this
.
switchCategory
(
1
);
}
}
// 文件下载
// 文件下载
fileUpload
(
itemType
,
itemId
,
fileCategory
)
{
fileUpload
(
itemType
,
itemId
,
fileCategory
,
code
,
mdDropOptionId
)
{
this
.
myService
.
filePath
(
itemType
,
itemId
,
fileCategory
).
subscribe
(
res
=>
{
this
.
myService
.
filePath
(
itemType
,
itemId
,
fileCategory
,
code
,
mdDropOptionId
).
subscribe
(
res
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
this
.
fileUploadItemList
=
res
[
'data'
][
'fileUploadItemList'
];
this
.
fileUploadItemList
=
res
[
'data'
][
'fileUploadItemList'
];
console
.
log
(
this
.
fileUploadItemList
)
}
}
});
});
}
}
//培训资料分类
//培训资料分类
dropOptionsQuery
()
{
dropOptionsQuery
()
{
const
code
=
this
.
type
===
'fileUpload'
?
''
:
'yd_trainning_file_type'
const
code
=
this
.
type
===
'fileUpload'
?
'
yd_download_file_type
'
:
'yd_trainning_file_type'
this
.
myService
.
dropOptionsQuery
({
code
:
code
}).
subscribe
(
res
=>
{
this
.
myService
.
dropOptionsQuery
({
code
:
code
}).
subscribe
(
res
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
this
.
categoryList
=
res
[
'data'
][
'dropMasterInfoList'
][
0
][
'dropOptionsInfoList'
];
this
.
categoryList
=
res
[
'data'
][
'dropMasterInfoList'
][
0
][
'dropOptionsInfoList'
];
if
(
this
.
categoryList
.
length
>
0
)
{
if
(
this
.
categoryList
.
length
>
0
)
{
this
.
selectedCategoryId
=
this
.
categoryList
[
0
].
dropOptionOrder
;
this
.
selectedCategoryId
=
this
.
categoryList
[
0
].
dropOptionOrder
;
this
.
switchCategory
(
this
.
selectedCategoryId
)
}
}
}
else
{
}
else
{
this
.
categoryList
=
[];
this
.
categoryList
=
[];
...
@@ -56,6 +55,10 @@ export class FileUploadComponent implements OnInit {
...
@@ -56,6 +55,10 @@ export class FileUploadComponent implements OnInit {
switchCategory
(
e
){
switchCategory
(
e
){
this
.
selectedCategoryId
=
e
;
this
.
selectedCategoryId
=
e
;
this
.
fileUpload
(
3
,
this
.
selectedCategoryId
,
23
)
if
(
this
.
type
===
'fileUpload'
)
{
this
.
fileUpload
(
3
,
0
,
19
,
'yd_download_file_type'
,
this
.
selectedCategoryId
);
}
else
if
(
this
.
type
===
'training'
)
{
this
.
fileUpload
(
3
,
0
,
23
,
'yd_trainning_file_type'
,
this
.
selectedCategoryId
);
}
}
}
}
}
src/app/my/important-announcement/important-announcement.component.html
View file @
bfdf3efa
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
<div
class=
"announcementItem"
*
ngFor=
"let announcementItem of announcementLists"
>
<div
class=
"announcementItem"
*
ngFor=
"let announcementItem of announcementLists"
>
<div
class=
"announcement_title"
><span
class=
"announcement_type"
>
【{{announcementItem.announcementTypeName}}】
</span><span
[
innerHtml
]="
announcementItem
.
title
|
safeHtml
"
></span></div>
<div
class=
"announcement_title"
><span
class=
"announcement_type"
>
【{{announcementItem.announcementTypeName}}】
</span><span
[
innerHtml
]="
announcementItem
.
title
|
safeHtml
"
></span></div>
<div
[
innerHtml
]="
announcementItem
.
content
|
safeHtml
"
class=
"announcement_content"
></div>
<div
[
innerHtml
]="
announcementItem
.
content
|
safeHtml
"
class=
"announcement_content"
></div>
<div
class=
"announcement_at"
>
{{announcementItem.announcementAt}}
</div>
<div
class=
"announcement_at"
>
上海银盾保险经纪有限公司
{{announcementItem.announcementAt}}
</div>
</div>
</div>
</div>
</div>
src/app/my/my-center-home/my-center-home.component.html
View file @
bfdf3efa
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<img
class=
"bg"
src=
"assets/images/measurebanner.jpg"
>
<img
class=
"bg"
src=
"assets/images/measurebanner.jpg"
>
<div
class=
"content"
>
<div
class=
"content"
>
<span
class=
"detail"
>
明细
<i
class=
"iconfont icon-ar-r"
<span
class=
"detail"
(
click
)="
jumpToDetail
()"
>
明细
<i
class=
"iconfont icon-ar-r"
style=
"font-size:12px;"
></i></span>
style=
"font-size:12px;"
></i></span>
<ul
class=
"tab"
>
<ul
class=
"tab"
>
<li
*
ngFor=
"let item of performanceList"
<li
*
ngFor=
"let item of performanceList"
...
...
src/app/my/my-center-home/my-center-home.component.scss
View file @
bfdf3efa
...
@@ -165,7 +165,7 @@
...
@@ -165,7 +165,7 @@
.mark
{
.mark
{
color
:
#fff
;
color
:
#fff
;
font-weight
:
bold
;
font-weight
:
bold
;
font-size
:
1
4
px
;
font-size
:
1
5
px
;
}
}
li
:nth-child
(
1
)
{
li
:nth-child
(
1
)
{
...
@@ -208,11 +208,12 @@
...
@@ -208,11 +208,12 @@
h3
{
h3
{
font-weight
:
normal
;
font-weight
:
normal
;
font-size
:
16px
;
font-size
:
16px
;
margin-bottom
:
5
px
;
margin-bottom
:
3
px
;
}
}
.tool_content
{
.tool_content
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
margin-bottom
:
5px
;
.content_item
{
.content_item
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
...
...
src/app/my/my-center-home/my-center-home.component.ts
View file @
bfdf3efa
...
@@ -242,4 +242,8 @@ export class MyCenterHomeComponent implements OnInit {
...
@@ -242,4 +242,8 @@ export class MyCenterHomeComponent implements OnInit {
jumpUrl
(){
jumpUrl
(){
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/mk/ydviphexincoupon`
window
.
location
.
href
=
`https://
${
window
.
location
.
host
}
/mk/ydviphexincoupon`
}
}
jumpToDetail
(){
this
.
router
.
navigate
([
'/salesDetail'
],{
queryParams
:
{
type
:
this
.
performanceSelectedFlag
}});
}
}
}
src/app/my/my-routing.module.ts
View file @
bfdf3efa
...
@@ -6,7 +6,7 @@ import {MkMaterialComponent} from './mk-material/mk-material.component';
...
@@ -6,7 +6,7 @@ import {MkMaterialComponent} from './mk-material/mk-material.component';
import
{
MkMaterialDetailComponent
}
from
'./mk-material-detail/mk-material-detail.component'
;
import
{
MkMaterialDetailComponent
}
from
'./mk-material-detail/mk-material-detail.component'
;
import
{
FileUploadComponent
}
from
'./file-upload/file-upload.component'
;
import
{
FileUploadComponent
}
from
'./file-upload/file-upload.component'
;
import
{
ImportantAnnouncementComponent
}
from
'./important-announcement/important-announcement.component'
;
import
{
ImportantAnnouncementComponent
}
from
'./important-announcement/important-announcement.component'
;
import
{
SalesDetailComponent
}
from
'./sales-detail/sales-detail.component'
;
const
myRoutes
:
Routes
=
[
const
myRoutes
:
Routes
=
[
{
path
:
''
,
component
:
MyCenterHomeComponent
,
canActivate
:
[
AuthGuard
]},
{
path
:
''
,
component
:
MyCenterHomeComponent
,
canActivate
:
[
AuthGuard
]},
{
path
:
'material'
,
component
:
MkMaterialComponent
,
canActivate
:
[
AuthGuard
]},
{
path
:
'material'
,
component
:
MkMaterialComponent
,
canActivate
:
[
AuthGuard
]},
...
@@ -14,6 +14,7 @@ const myRoutes: Routes = [
...
@@ -14,6 +14,7 @@ const myRoutes: Routes = [
{
path
:
'fileUpload'
,
component
:
FileUploadComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'fileUpload'
}]},
{
path
:
'fileUpload'
,
component
:
FileUploadComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'fileUpload'
}]},
{
path
:
'training'
,
component
:
FileUploadComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'training'
}]},
{
path
:
'training'
,
component
:
FileUploadComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
type
:
'training'
}]},
{
path
:
'importantAnnouncement'
,
component
:
ImportantAnnouncementComponent
,
canActivate
:
[
AuthGuard
]},
{
path
:
'importantAnnouncement'
,
component
:
ImportantAnnouncementComponent
,
canActivate
:
[
AuthGuard
]},
{
path
:
'salesDetail'
,
component
:
SalesDetailComponent
,
canActivate
:[
AuthGuard
]}
];
];
@
NgModule
({
@
NgModule
({
...
...
src/app/my/my.module.ts
View file @
bfdf3efa
import
{
NgModule
}
from
'@angular/core'
;
import
{
NgModule
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
DatePipe
}
from
"@angular/common"
;
import
{
MyRoutingModule
}
from
'./my-routing.module'
;
import
{
MyRoutingModule
}
from
'./my-routing.module'
;
import
{
MyCenterHomeComponent
}
from
'./my-center-home/my-center-home.component'
;
import
{
MyCenterHomeComponent
}
from
'./my-center-home/my-center-home.component'
;
import
{
LifeCommonModule
}
from
"../common/life-common.module"
;
import
{
LifeCommonModule
}
from
"../common/life-common.module"
;
...
@@ -8,13 +8,16 @@ import { MkMaterialComponent } from './mk-material/mk-material.component';
...
@@ -8,13 +8,16 @@ import { MkMaterialComponent } from './mk-material/mk-material.component';
import
{
MkMaterialDetailComponent
}
from
'./mk-material-detail/mk-material-detail.component'
;
import
{
MkMaterialDetailComponent
}
from
'./mk-material-detail/mk-material-detail.component'
;
import
{
FileUploadComponent
}
from
'./file-upload/file-upload.component'
;
import
{
FileUploadComponent
}
from
'./file-upload/file-upload.component'
;
import
{
ImportantAnnouncementComponent
}
from
'./important-announcement/important-announcement.component'
;
import
{
ImportantAnnouncementComponent
}
from
'./important-announcement/important-announcement.component'
;
import
{
SalesDetailComponent
}
from
'./sales-detail/sales-detail.component'
;
@
NgModule
({
@
NgModule
({
declarations
:
[
MyCenterHomeComponent
,
MkMaterialComponent
,
MkMaterialDetailComponent
,
FileUploadComponent
,
ImportantAnnouncementComponent
],
declarations
:
[
MyCenterHomeComponent
,
MkMaterialComponent
,
MkMaterialDetailComponent
,
FileUploadComponent
,
ImportantAnnouncementComponent
,
SalesDetailComponent
],
imports
:
[
imports
:
[
CommonModule
,
CommonModule
,
LifeCommonModule
,
LifeCommonModule
,
MyRoutingModule
MyRoutingModule
],
providers
:
[
DatePipe
]
]
})
})
export
class
MyModule
{
export
class
MyModule
{
...
...
src/app/my/my.service.ts
View file @
bfdf3efa
...
@@ -19,10 +19,10 @@ export class MyService {
...
@@ -19,10 +19,10 @@ export class MyService {
}
}
// 文件下载
// 文件下载
filePath
(
itemType
,
itemId
,
fileCategory
)
{
filePath
(
itemType
,
itemId
,
fileCategory
,
code
,
mdDropOptionId
)
{
const
url
=
this
.
API
+
'/filePathQuery'
;
const
url
=
this
.
API
+
'/filePathQuery'
;
return
this
.
http
return
this
.
http
.
post
(
url
,
JSON
.
stringify
({
itemType
:
itemType
,
itemId
:
itemId
,
fileCategory
:
fileCategory
}));
.
post
(
url
,
JSON
.
stringify
({
itemType
:
itemType
,
itemId
:
itemId
,
fileCategory
:
fileCategory
,
code
:
code
,
mdDropOptionId
:
mdDropOptionId
}));
}
}
// 重要公告
// 重要公告
...
...
src/app/my/sales-detail/sales-detail.component.html
0 → 100644
View file @
bfdf3efa
<div
class=
"salesWrapper"
>
<div
class=
"salesContent"
>
<div
class=
"salesItem"
*
ngFor=
"let salesDetailItem of salesDetailList"
>
<div
class=
"icon_bolck"
><span
class=
"iconfont icon-money-more"
></span></div>
<div
class=
"line"
>
<div>
投保人:{{salesDetailItem.holderName}}
</div>
<div
class=
"price"
>
¥{{salesDetailItem.referralAmount | number: "1.2-2"}}
</div>
</div>
<div
class=
"line long_line"
>
<div>
保单号:{{salesDetailItem.policyNo}}
</div>
<div>
{{(salesDetailItem.orderDate).substr(0,10)}}
</div>
</div>
</div>
</div>
</div>
src/app/my/sales-detail/sales-detail.component.scss
0 → 100644
View file @
bfdf3efa
.salesWrapper
{
width
:
100%
;
height
:
100%
;
overflow
:
auto
;
.salesContent
{
.salesItem
{
border-bottom
:
1px
#dcdcdc
solid
;
padding
:
10px
;
padding-left
:
45px
;
position
:
relative
;
.icon_bolck
{
border
:
1px
#dcdcdc
solid
;
width
:
35px
;
height
:
35px
;
position
:
absolute
;
left
:
3px
;
top
:
20px
;
line-height
:
30px
;
text-align
:
center
;
border-radius
:
50%
;
.iconfont
{
color
:
#ff3500
;
font-size
:
26px
;
position
:
relative
;
top
:
1px
;
}
}
.line
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
height
:
30px
;
font-size
:
14px
;
.price
{
font-size
:
16px
;
color
:
#ff3500
;
font-weight
:
bold
;
}
}
.long_line
{
font-size
:
12px
;
}
}
}
}
\ No newline at end of file
src/app/my/sales-detail/sales-detail.component.spec.ts
0 → 100644
View file @
bfdf3efa
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
SalesDetailComponent
}
from
'./sales-detail.component'
;
describe
(
'SalesDetailComponent'
,
()
=>
{
let
component
:
SalesDetailComponent
;
let
fixture
:
ComponentFixture
<
SalesDetailComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
SalesDetailComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
SalesDetailComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/my/sales-detail/sales-detail.component.ts
0 → 100644
View file @
bfdf3efa
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
MyService
}
from
'../my.service'
;
import
{
ActivatedRoute
}
from
"@angular/router"
;
import
{
LifeCommonService
}
from
'../../common/life-common.service'
;
@
Component
({
selector
:
'ydlife-sales-detail'
,
templateUrl
:
'./sales-detail.component.html'
,
styleUrls
:
[
'./sales-detail.component.scss'
]
})
export
class
SalesDetailComponent
implements
OnInit
{
allPerformanceInfo
:
Array
<
any
>
;
salesDetailList
:
Array
<
any
>
;
salesDetailType
:
any
;
constructor
(
private
myService
:
MyService
,
private
activatedRoute
:
ActivatedRoute
,
public
lifeCommonService
:
LifeCommonService
)
{
}
ngOnInit
()
{
this
.
salesDetailType
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
type
;
console
.
log
(
this
.
salesDetailType
)
this
.
brokerInfoQuery
();
}
//查询业绩
brokerInfoQuery
(){
const
practitionerId
=
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'practitionerId'
];
this
.
myService
.
brokerInfoQuery
({
practitionerId
:
practitionerId
}).
subscribe
((
res
)
=>
{
if
(
res
[
'success'
]){
this
.
allPerformanceInfo
=
res
[
'data'
][
'commissionInfo'
];
if
(
this
.
salesDetailType
===
'month'
){
this
.
salesDetailList
=
this
.
allPerformanceInfo
[
'thisMonthInfo'
][
'fortuneItemList'
];
}
if
(
this
.
salesDetailType
===
'year'
){
this
.
salesDetailList
=
this
.
allPerformanceInfo
[
'thisYearInfo'
][
'fortuneItemList'
];
}
}
})
}
}
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