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
4a6712d7
Commit
4a6712d7
authored
Jun 01, 2020
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售活动量详情页
parent
0a037f46
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
82 additions
and
10 deletions
+82
-10
src/app/my/mk-material-detail/mk-material-detail.component.ts
+1
-0
src/app/my/my-center-home/my-center-home.component.html
+2
-1
src/app/my/my-center-home/my-center-home.component.scss
+5
-2
src/app/my/my-center-home/my-center-home.component.ts
+1
-0
src/app/my/my-routing.module.ts
+3
-1
src/app/my/my.module.ts
+2
-1
src/app/my/my.service.ts
+7
-0
src/app/my/score-details/score-details.component.html
+11
-0
src/app/my/score-details/score-details.component.scss
+0
-0
src/app/my/score-details/score-details.component.spec.ts
+25
-0
src/app/my/score-details/score-details.component.ts
+23
-0
src/index.html
+2
-5
No files found.
src/app/my/mk-material-detail/mk-material-detail.component.ts
View file @
4a6712d7
...
...
@@ -240,6 +240,7 @@ export class MkMaterialDetailComponent implements OnInit {
this
.
shareInfo
.
url
=
`
${
environment
.
DOMAINNAME
}
/hProductDetail/
${
this
.
materialItemId
}
?shareCode=
${
shareCodeUuid
}
&type=9`
;
}
}
// 发送请求保存分享码
this
.
shareCallBack
();
}
...
...
src/app/my/my-center-home/my-center-home.component.html
View file @
4a6712d7
...
...
@@ -85,7 +85,8 @@
<div
class=
"performance_wrapper"
>
<div
class=
"content"
>
<div
class=
"activities_grade"
>
销售活动量分值
<span>
销售活动量分值
</span>
<span
class=
"iconfont icon-ar-r"
routerLink=
"scoreDeatil"
></span>
</div>
<ul
class=
"activities"
>
<li>
今天
</li>
...
...
src/app/my/my-center-home/my-center-home.component.scss
View file @
4a6712d7
...
...
@@ -212,10 +212,13 @@
color
:
#fff
;
height
:
38px
;
line-height
:
38px
;
display
:
flex
;
justify-content
:
space-between
;
padding-right
:
5px
;
}
}
}
}
.notice
{
background
:
#FFF
;
padding
:
0px
0px
0px
10px
;
...
...
src/app/my/my-center-home/my-center-home.component.ts
View file @
4a6712d7
...
...
@@ -310,4 +310,5 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
}
})
}
}
src/app/my/my-routing.module.ts
View file @
4a6712d7
...
...
@@ -21,6 +21,7 @@ import { MyNewsComponent } from './my-news/my-news.component';
import
{
MyTargetComponent
}
from
"./my-target/my-target.component"
;
import
{
TeamPanelComponent
}
from
'./team-panel/team-panel.component'
;
import
{
TeamSalesScoreComponent
}
from
'./team-sales-score/team-sales-score.component'
;
import
{
ScoreDetailsComponent
}
from
'./score-details/score-details.component'
;
const
myRoutes
:
Routes
=
[
{
path
:
''
,
component
:
MyCenterHomeComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
title
:
'银盾保险经纪 - 工作台'
}]
},
...
...
@@ -43,7 +44,8 @@ const myRoutes: Routes = [
{
path
:
'news'
,
component
:
MyNewsComponent
,
canActivate
:
[
AuthGuard
]
},
{
path
:
'target'
,
component
:
MyTargetComponent
,
canActivate
:
[
AuthGuard
]
},
{
path
:
'teamPanel'
,
component
:
TeamPanelComponent
,
canActivate
:
[
AuthGuard
]
},
{
path
:
'teamPanel/:type'
,
component
:
TeamSalesScoreComponent
,
canActivate
:
[
AuthGuard
]
}
{
path
:
'teamPanel/:type'
,
component
:
TeamSalesScoreComponent
,
canActivate
:
[
AuthGuard
]
},
{
path
:
'scoreDeatil'
,
component
:
ScoreDetailsComponent
,
canActivate
:
[
AuthGuard
]
}
];
@
NgModule
({
...
...
src/app/my/my.module.ts
View file @
4a6712d7
...
...
@@ -26,9 +26,10 @@ import { MyTargetComponent } from './my-target/my-target.component';
import
{
TeamPanelComponent
}
from
'./team-panel/team-panel.component'
;
import
{
SwitchNumberPipe
}
from
'../common/pipe/switch-number.pipe'
;
import
{
TeamSalesScoreComponent
}
from
'./team-sales-score/team-sales-score.component'
;
import
{
ScoreDetailsComponent
}
from
'./score-details/score-details.component'
;
@
NgModule
({
declarations
:
[
MyCenterHomeComponent
,
MkMaterialComponent
,
MkMaterialDetailComponent
,
FileUploadComponent
,
ImportantAnnouncementComponent
,
SalesDetailComponent
,
AnnouncementDetailComponent
,
MyBusinessComponent
,
MyBusinessDetailComponent
,
PickerComponent
,
ToastComponent
,
SalesRankComponent
,
TeamRankComponent
,
RecruitingComponent
,
RecruitingDetailComponent
,
ThanksComponent
,
MySettingComponent
,
MySettingDetailComponent
,
MyNewsComponent
,
MyTargetComponent
,
TeamPanelComponent
,
SwitchNumberPipe
,
TeamSalesScoreComponent
],
declarations
:
[
MyCenterHomeComponent
,
MkMaterialComponent
,
MkMaterialDetailComponent
,
FileUploadComponent
,
ImportantAnnouncementComponent
,
SalesDetailComponent
,
AnnouncementDetailComponent
,
MyBusinessComponent
,
MyBusinessDetailComponent
,
PickerComponent
,
ToastComponent
,
SalesRankComponent
,
TeamRankComponent
,
RecruitingComponent
,
RecruitingDetailComponent
,
ThanksComponent
,
MySettingComponent
,
MySettingDetailComponent
,
MyNewsComponent
,
MyTargetComponent
,
TeamPanelComponent
,
SwitchNumberPipe
,
TeamSalesScoreComponent
,
ScoreDetailsComponent
],
imports
:
[
CommonModule
,
LifeCommonModule
,
...
...
src/app/my/my.service.ts
View file @
4a6712d7
...
...
@@ -287,4 +287,11 @@ export class MyService {
return
this
.
http
.
post
(
url
,
JSON
.
stringify
(
param
));
}
//销售活动量分值详情
salesScoreDetailQuery
(
param
)
{
const
url
=
this
.
ydapi
+
'/practitioner/salesScoreDetailQuery'
;
return
this
.
http
.
post
(
url
,
JSON
.
stringify
(
param
));
}
}
src/app/my/score-details/score-details.component.html
0 → 100644
View file @
4a6712d7
<div
class=
"scoreDetail_wrapper"
>
<div
class=
"top"
>
<div>
销售活动量分值详情
</div>
<ul>
<li>
今天
</li>
<li>
本周
</li>
<li>
本月
</li>
</ul>
</div>
</div>
\ No newline at end of file
src/app/my/score-details/score-details.component.scss
0 → 100644
View file @
4a6712d7
src/app/my/score-details/score-details.component.spec.ts
0 → 100644
View file @
4a6712d7
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
ScoreDetailsComponent
}
from
'./score-details.component'
;
describe
(
'ScoreDetailsComponent'
,
()
=>
{
let
component
:
ScoreDetailsComponent
;
let
fixture
:
ComponentFixture
<
ScoreDetailsComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
ScoreDetailsComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
ScoreDetailsComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/my/score-details/score-details.component.ts
0 → 100644
View file @
4a6712d7
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
MyService
}
from
'../my.service'
;
@
Component
({
selector
:
'ydlife-score-details'
,
templateUrl
:
'./score-details.component.html'
,
styleUrls
:
[
'./score-details.component.scss'
]
})
export
class
ScoreDetailsComponent
implements
OnInit
{
constructor
(
private
myService
:
MyService
)
{
}
ngOnInit
()
{
this
.
salesScoreDetailQuery
();
}
//销售活动量详情
salesScoreDetailQuery
()
{
const
practitionerId
=
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'practitionerId'
];
this
.
myService
.
salesScoreDetailQuery
({
practitionerId
:
practitionerId
}).
subscribe
((
res
)
=>
{
console
.
log
(
res
)
})
}
}
src/index.html
View file @
4a6712d7
...
...
@@ -50,8 +50,8 @@
<script
src=
"./assets/LCalendar/LCalendar.js"
></script>
<script
src=
"./assets/laydate/laydate.js"
></script>
<script
type=
"text/javascript"
>
var
api
=
'https://'
+
window
.
location
.
host
;
// var api = 'https://mstage
.zuihuibi.cn';
//
var api = 'https://' + window.location.host;
var
api
=
'https://mdev
.zuihuibi.cn'
;
function
getToken
()
{
$
.
ajax
({
type
:
"POST"
,
...
...
@@ -100,7 +100,6 @@
iframe
.
parentNode
.
removeChild
(
iframe
);
}
function
getknowledgeQry
()
{
$
.
ajax
({
type
:
"POST"
,
...
...
@@ -135,7 +134,6 @@
}
getknowledgeQry();
</script>
</body>
</html>
\ No newline at end of file
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