Commit 4a6712d7 by Chao Sun

销售活动量详情页

parent 0a037f46
......@@ -240,6 +240,7 @@ export class MkMaterialDetailComponent implements OnInit {
this.shareInfo.url = `${environment.DOMAINNAME}/hProductDetail/${this.materialItemId}?shareCode=${shareCodeUuid}&type=9`;
}
}
// 发送请求保存分享码
this.shareCallBack();
}
......
......@@ -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>
......
......@@ -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;
......
......@@ -310,4 +310,5 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
}
})
}
}
......@@ -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({
......
......@@ -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,
......
......@@ -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));
}
}
<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
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();
});
});
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)
})
}
}
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment