Commit 6cccedfb by sunchao

寿险经纪人页面调整

parent 42bebde2
......@@ -3,7 +3,7 @@
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"start": "ng serve --host 192.168.68.106",
"build": "ng build -c=dev --prod",
"test": "ng test",
"lint": "ng lint",
......
......@@ -11,7 +11,7 @@ import {LifeCommonModule} from './common/life-common.module';
import {httpInterceptorProviders} from './http-interceptors/index';
import {DatePipe} from "@angular/common";
import { SafeHtmlPipe } from './safe-html.pipe';
import {LocalStorage} from './domain/local.storage';
@NgModule({
declarations: [
AppComponent,
......@@ -24,9 +24,9 @@ import { SafeHtmlPipe } from './safe-html.pipe';
AuthModule,
LifeCommonModule,
HttpClientModule,
AppRoutingModule
AppRoutingModule,
],
providers: [DatePipe, httpInterceptorProviders],
providers: [DatePipe, httpInterceptorProviders,LocalStorage],
bootstrap: [AppComponent]
})
export class AppModule {
......
......@@ -6,18 +6,18 @@
<div class="weui-form__control-area">
<div class="weui-cells__group weui-cells__group_form">
<div class="weui-cells weui-cells_form">
<div class="weui-cell">
<div class="weui-cell__hd"><label class="weui-label">手机号</label></div>
<div class="weui-cell" style="padding:16px 0px">
<!-- <div class="weui-cell__hd"><label class="weui-label">手机号</label></div> -->
<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"
[(ngModel)]="userInfo.mobileNo">
</div>
</div>
<div class="weui-cell weui-cell_vcode">
<div class="weui-cell__hd"><label class="weui-label">验证码</label></div>
<div class="weui-cell weui-cell_vcode" style="padding:12px 0px">
<!-- <div class="weui-cell__hd"><label class="weui-label">验证码</label></div> -->
<div class="weui-cell__bd">
<input class="weui-input" type="tel" pattern="[0-9]*" id="js_input" placeholder="手机验证码"
<input class="weui-input" type="tel" pattern="[0-9]*" id="js_input" placeholder="请输入验证码"
maxlength="4" name="verificationCode" [(ngModel)]="userInfo.verificationCode">
</div>
<div class="weui-cell__ft">
......@@ -29,8 +29,8 @@
</div>
</div>
<div class="weui-form__opr-area">
<a class="weui-btn weui-btn_primary" href="javascript:" id="showTooltips" style="width:80%"
(click)="login()">确定</a>
<a class="weui-btn weui-btn_primary login" href="javascript:" id="showTooltips" style="width:100%"
(click)="login()">登陆</a>
</div>
</div>
</div>
......
.weui-form{
padding: 56px 15px 0px 15px;
}
.weui-form__opr-area{
.login{
color: #fff;
background: #ff1c2b;
}
}
.weui-cell:before,.weui-cells__group_form .weui-cells:before, .weui-cells__group_form .weui-cell:before{
left:0;
right: 0;
}
.weui-cells__group_form .weui-cells:after {
left: 0;
right: 0;
}
.weui-cells__group_form .weui-vcode-btn{
background: none;
background: none;
border: 1px red solid;
color: red;
font-weight: normal;
}
......@@ -112,4 +112,36 @@ export class LifeCommonService {
wx.updateTimelineShareData(shareData);
});
}
// 根据开始时间设置结束时间,天数应减1,当日~当日是一天
setInitDate(dayCount) {
let dt;
let dtEnd;
(dt = new Date()).setDate(dt.getDate() + 1);
(dtEnd = new Date(dt)).setDate(dt.getDate() + dayCount * 1 - 1);
const initDate = {
startDate: Date.parse(dt.toDateString()),
endDate: Date.parse(dtEnd.toDateString())
};
sessionStorage.removeItem('timeRange');
sessionStorage.setItem('initDate', JSON.stringify(initDate));
const date = {
startDate: dt,
endDate: dtEnd
};
return date;
}
// 判断一年是365还是366
yearDayCount(days, disableCalc?: boolean) {
if (days === 365 || days === 366) {
const y = new Date().getFullYear();
const isLeap = (0 === y % 4) && (0 !== y % 100) || (0 === y % 400);
days = isLeap ? 366 : 365;
if (disableCalc) {
days = 365;
}
}
return days;
}
}
export class LocalStorage {
public localStorage: any;
constructor() {
if (!localStorage) {
throw new Error('Current browser does not support Local Storage');
}
this.localStorage = localStorage;
}
public set(key: string, value: string): void {
this.localStorage[key] = value;
}
public get(key: string): string {
return this.localStorage[key] || false;
}
public setObject(key: string, value: any): void {
this.localStorage[key] = JSON.stringify(value);
}
public getObject(key: string): any {
return JSON.parse(this.localStorage[key] || '{}');
}
public remove(key: Array<string>): any {
let m = 0;
let status = false;
key.map(i => {
this.localStorage.removeItem(i);
m++;
status = m === key.length;
});
return status;
}
}
// export const LOCAL_STORAGE_PROVIDERS:any[] = [
// Provider(LocalStorage, {useClass: LocalStorage})
// ];
export class NameAge {
id?: number;
name?: string;
age?: number;
birthDay?: string;
gender?: string;
}
export class Plans {
planName?: string;
productName?: string;
companyName?: string;
companyDesc?: string;
labels?: Array<any>;
price?: number;
planId?: number;
companyLogoPath?: string;
iconPath?: string;
customerServicePhone?: string;
type?: number;
minDay?: number;
maxDay?: number;
minAge?: number;
maxAge?: number;
defaultBirth?: string;
isSocialInsured?: string;
adultCount?: number;
childCount?: number;
eldCount?: number;
dayCount?: number;
insurerId?: string;
planCategoryId?: number;
planPara?: any;
holderPara?: any;
insuredPara?: any;
quotePara?: any;
subjectPara?: any;
vehiclePara?: any;
feedbackCount?: any;
productCategoryId?: any;
productId?: any;
noPlanProduct?: boolean;
needIdCard?: string;
isActiveForProduct?: number;
isActiveForPlan?: number;
}
export class User {
constructor(public dayCount?: any,
public adultCount?: any,
public childCount?: any,
public eldCount?: any,
public level?: any,
public destinationType?: any,
public destinationId?: any,
public destinationName?: any,
public levelCodeForBuilding?: any,
public productId?: any,
public planId?: any) {
}
}
......@@ -9,9 +9,11 @@
<div class="brokerInfo">
<div class="brokerName">
<div style="letter-spacing: 2px"><span>{{lifeCustomerInfo?.practitionerBasicInfo?.name}}</span></div>
<div style="color: #fff;font-weight: normal;"><i class="iconfont icon-tuichu"></i><span
style="margin-left: 5px;">退出</span></div>
<!--<div class="shareSelfInfoBtn" *ngIf="deviceType=='3'" (click)="shareIdCard()"><span>分享名片</span></div>-->
<div style="color: #fff;font-weight: normal;" (click)="getOut()">
<i class="iconfont icon-tuichu"></i>
<span style="margin-left: 5px;">退出</span>
</div>
<!-- <div class="shareSelfInfoBtn" *ngIf="deviceType=='3'" (click)="shareIdCard()"><span>分享名片</span></div> -->
</div>
<div class="brokerTag">
......@@ -24,22 +26,123 @@
</div>
<!--头部经纪人信息END-->
</div>
<div class="weui-panel__bd">
<div class="weui-media-box weui-media-box_small-appmsg">
<div class="weui-cells">
<a class="weui-cell weui-cell_access weui-cell_example" *ngFor="let menuItem of menuLists;" href="javascript:;"
(click)="menuNavigation(menuItem)">
<div class="weui-cell__hd">
<i class="iconfont" [ngClass]="menuItem.icon"></i>
<ul class="tab">
<li *ngFor="let item of performanceList"
(click)="selectRang(item.type)"
[ngClass]="{selected:performanceSelectedFlag==item.type}"
>
<div style="position: relative;">
<h3>{{item.name}}
<i class="line" *ngIf="performanceSelectedFlag==item.type"
[ngStyle]="{'left':leftWidth}"
></i>
</h3>
</div>
</li>
</ul>
<div class="performance_wrapper">
<ul class="performance_list title">
<li></li>
<li><b>FYP</b></li>
<li><b>FYC</b></li>
<li><b>完成率</b></li>
<li><b>排名</b></li>
</ul>
<ul class="performance_list">
<li>线上</li>
<li class="mark">
¥{{performanceInfo?.onlineInfo['fyp']}}
</li>
<li class="mark">
¥{{performanceInfo?.onlineInfo['fyc']}}
</li>
</ul>
<ul class="performance_list">
<li>线下</li>
</ul>
</div>
<div class="performance_wrapper notice">
<div>
<h3>重要公告</h3><i class="iconfont">&#xe645;</i>
<div [innerHtml]="firstAnnouncement" routerLink="importantAnnouncement"></div>
</div>
</div>
<div class="tool_wrapper">
<div class="tool_item" *ngFor="let menuItem of menuLists;">
<h3>{{menuItem.title}}</h3>
<div class="tool_content">
<div class="content_item" *ngFor="let menuItemContent of menuItem['content']"
href="javascript:;" (click)="menuNavigation(menuItemContent)"
>
<span class="iconfont" [ngClass]="menuItemContent.icon"></span>
<div style="font-size: 14px;">{{menuItemContent.subtitle}}</div>
</div>
</div>
</div>
</div>
<hr style="border-top: 1px solid #ddd;border-left: none;border-right: none;border-bottom: none;"/>
<div class="hotProduct">
<div style="margin-bottom: 10px;">
<h3>热销产品</h3>
</div>
<div class="weui-cell__bd weui-cell_primary">
<p>{{menuItem.title}}</p>
<div class="media borderBottom" *ngFor="let product of products,let i = index" (click)="goProductDetail(product)"
[ngClass]="{'pad15':!isShowShare}">
<div class="media-left media-middle">
<img class="media-object" src="{{product.iconPath}}" alt="{{product.planName}}">
<div class="yd_logo">
<img src="assets/images/yd-online_logo.png" alt="上海银盾保险经纪有限公司">
</div>
<span class="weui-cell__ft"></span>
</a>
</div>
<div class="media-body">
<div class="media-heading">
<h4>{{product.planName}}</h4>
<div class="companylogo">
<span class="logoBox"><img src="{{product.companyLogoPath}}" alt="{{product.companyName}}"
class="img-responsive"></span>
</div>
</div>
<div class="summaryBox">
<div class="summaryContent" *ngFor="let label of product.labels">
<div class="summaryIcon"><i class="iconfont icon-gou"></i></div>
<div class="summaryLabel">{{label}}</div>
</div>
</div>
<div class="priceContainer">
<div style="width: 75%;display: flex;justify-content:space-between;align-items: flex-end">
<span class="price" *ngIf="product.productCategoryId!='4'"><strong>¥{{product.price}}</strong><small
style="font-size:12px;font-weight: normal;margin-left: 2px;"></small><span
style="margin-left: 5px;white-space: nowrap">1人{{product.dayCount>=365 ? '1年' : product.dayCount + '天'}}</span></span>
<span class="price" *ngIf="product.productCategoryId=='4'"><strong>¥{{product.price}}</strong><small
style="font-size:12px;font-weight: normal;margin-left: 2px;">/年 起</small></span>
<span style="color:#4a4a4a;font-weight:lighter;white-space: nowrap">{{product.feedbackCount}}条评价</span>
</div>
<div><span style="font-size: 16px;padding-right: 18px;color:#4a4a4a" class="iconfont icon-ar-r"></span></div>
</div>
</div>
</div>
</div>
<hr style="border-top: 1px solid #ddd;border-left: none;border-right: none;border-bottom: none;"/>
<div class="health_wrapper">
<h3 style="margin: 10px auto;">医疗服务</h3>
<img style="border-radius: 10px;width: 48%;margin-right: 10px;" src="assets/images/yindunvipmember.jpg" (click)="jumpUrl()">
<img style="border-radius: 10px;width: 48%;" src="assets/images/yindunvipmember.jpg" (click)="jumpUrl()">
</div>
</div>
<div class="footer" style="font-size: 12px;padding-top: 10px;text-align: center;background: #f6f7f2;">
<p>上海银盾保险经纪有限公司</p>
<p>保险业务经营许可证:269615000000800</p>
<p>版权所有©2020银盾保险在线 &nbsp;沪ICP备18000565号</p>
</div>
</div>
<ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert>
......@@ -50,7 +50,7 @@
}
}
.ydTitle, .brokerTag {
color: #fff;
color: #ae9f82;
border-radius: 6px;
}
.brokerTag {
......@@ -76,6 +76,194 @@
}
}
.weui-panel__bd{
background: #f6f7f2;
height: auto;
padding: 5px 15px;
img{
width: 100%;
height: 100%;
}
.tab{
display: flex;
list-style: none;
margin-bottom: 10px;
li {
margin-right: 15px;
line-height: 40px;
height: 40px;
h3{
font-weight: normal;
}
}
li.selected{
h3{
font-weight: bold;
}
.line{
width: 25px;
height: 5px;
display: inline-block;
position: absolute;
bottom: 0px;
background: #ff002a;
}
}
}
.performance_wrapper{
background: #fff;
border-radius: 10px;
margin: 15px auto;
box-shadow: 0 1px 5px #969696;
padding: 10px 0px;
ul{
list-style: none;
}
.performance_list{
display: flex;
font-size: 14px;
li{
width: 20%;
text-align: center;
line-height: 25px;
// .center{
// height: 100%;
// display: flex;
// justify-content: center;
// align-items: center;
// }
}
.mark{
color: #ff1c2b;
}
li:nth-child(1){
width: 15%;
}
}
}
.notice{
background: #fdf2ec;
padding: 0px 0px 0px 10px;
div{
display: flex;
align-items: center;
color: #ff002a;
.iconfont{
font-size: 36px;
}
}
}
.tool_wrapper{
.tool_item{
display: flex;
flex-direction: column;
margin-bottom: 10px;
h3{
font-weight: normal;
}
.tool_content{
display: flex;
justify-content: space-between;
.content_item{
display: flex;
flex-direction: column;
align-items: center;
width: 25%;
.iconfont{
color: #ff002a;
font-size: 32px;
}
}
}
}
}
.hotProduct{
margin: 10px auto;
h3{
font-weight: normal;
}
.media {
position: relative;
width: 100%;
display: flex;
justify-content: space-between;
align-items: flex-start;
cursor: pointer;
padding-bottom: 15px;
}
.media-left {
width: 30%;
padding-right: 10px;
.yd_logo {
padding: 8px;
background: rgba(114, 209, 196, 0.18);
margin-top: -5px;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}
}
.media-body {
width: 75%;
}
.summaryBox {
justify-content: space-between;
}
.priceContainer {
width: 100%;
display: flex;
justify-content: space-between;
align-items: flex-end;
line-height: 1;
margin-top: 5px;
span {
font-size: 12px;
color: #e56124;
}
.price {
display: flex;
font-size: 22px;
margin-right: 15px;
color: #e56124;
justify-content: space-between;
align-items: flex-end;
}
}
.media-heading {
display: flex;
justify-content: space-between;
align-items: flex-start;
color: #4a4a4a;
}
h4 {
font-size: 15px;
margin: 0;
width: 85%;
}
.companylogo {
width: 70px;
height: 26px;
margin-top: -1px;
font-size: 12px;
}
.logoBox {
width: 100%;
height: 100%;
display: inline-block;
}
}
.health_wrapper{
h3{
font-weight: normal;
}
}
}
@media(min-width: 768px) {
}
......@@ -2,6 +2,10 @@ import {Component, OnInit} from '@angular/core';
import {Router} from "@angular/router";
import {LifeCommonService} from "../../common/life-common.service";
import {environment} from "../../../environments/environment";
import {MyService} from "../my.service";
import {Plans} from '../../domain/plans';
import {User} from '../../domain/user';
import {LocalStorage} from '../../domain/local.storage';
declare var wx: any;
@Component({
selector: 'ydlife-my-center-home',
......@@ -14,36 +18,87 @@ export class MyCenterHomeComponent implements OnInit {
dialogInfo: any;
lifeCustomerInfo: any;
deviceType: number;
constructor(private router: Router, private lifeCommonService: LifeCommonService) {
announcementLists:Array<any>;
firstAnnouncement:string;
allPerformanceInfo:any;
performanceList:Array<any>;
performanceInfo:any;
performanceSelectedFlag:string;
leftWidth:any;
products: Plans[];
productInfo: Plans;
inquiry: User;
constructor(
private router: Router,
private lifeCommonService: LifeCommonService,
private myService: MyService,
private ls: LocalStorage
) {
}
ngOnInit() {
this.deviceType = this.lifeCommonService.checkDeviceType();
this.lifeCustomerInfo = JSON.parse(localStorage.getItem('lifeCustomerInfo')) ? JSON.parse(localStorage.getItem('lifeCustomerInfo')) : null;
this.announcementQuery();
// fileUpload
// this.menuLists = [
// {
// no: 1,
// title: '重要公告',
// path: 'https://www.ydinsurance.cn/?page_id=13763',
// icon: 'icon-gonggao',
// routerLink: 'importantAnnouncement'
// },
// {no: 2, title: '业绩资讯', path: '', icon: 'icon-icon-test', routerLink: ''},
// {no: 3, title: '我的客户', path: '', icon: 'icon-kehu', routerLink: ''},
// {no: 4, title: '保单查询', path: '', icon: 'icon-baodanyangben', routerLink: ''},
// {no: 5, title: '教育训练', path: '', icon: 'icon-jiaoyu', routerLink: 'training'},
// {
// no: 6,
// title: '文件下载',
// path: 'https://www.ydinsurance.cn/?page_id=13957',
// icon: 'icon-xiazai',
// routerLink: 'fileUpload'
// },
// {no: 7, title: '产品海报', path: '', icon: 'icon-sucai', routerLink: 'material'},
// {no: 0, title: '退出登录', path: '', icon: 'icon-tuichu', routerLink: ''},
// ];
this.menuLists = [
{
no: 1,
title: '重要公告',
path: 'https://www.ydinsurance.cn/?page_id=13763',
icon: 'icon-gonggao',
routerLink: 'importantAnnouncement'
},
{no: 2, title: '业绩资讯', path: '', icon: 'icon-icon-test', routerLink: ''},
{no: 3, title: '我的客户', path: '', icon: 'icon-kehu', routerLink: ''},
{no: 4, title: '保单查询', path: '', icon: 'icon-baodanyangben', routerLink: ''},
{no: 5, title: '教育训练', path: '', icon: 'icon-jiaoyu', routerLink: 'training'},
{
no: 6,
title: '文件下载',
path: 'https://www.ydinsurance.cn/?page_id=13957',
icon: 'icon-xiazai',
routerLink: 'fileUpload'
},
{no: 7, title: '产品海报', path: '', icon: 'icon-sucai', routerLink: 'material'},
{no: 0, title: '退出登录', path: '', icon: 'icon-tuichu', routerLink: ''},
title:'营销工具',
content:[
{no:2,subtitle:'AI咨询',icon:'icon-ai',path:`https://${window.location.host}/questionnaire/#/index?campaign=AIRobot&task=AItask1`,routerLink:''},
{no:1,subtitle:'獴哥咨询',icon:'icon-btnconsult',path:`https://${window.location.host}/consulting`,routerLink:''},
{no:3,subtitle:'产品海报',icon:'icon-wenjian',path:'',routerLink:'material'},
{no:4,subtitle:'银盾在线',icon:'icon-zaixian',path:`https://${window.location.host}/index`,routerLink:''}
]
},{
title:'教育培训',
content:[
{no:5,subtitle:'保险ABC',icon:'icon-xueshimao',path:`https://${window.location.host}/issue`,routerLink:''},
{no:6,subtitle:'培训课件',icon:'icon-jiaoyu',path:'',routerLink:'training'},
{no:7,subtitle:'文章分享',icon:'icon-zhuanfaxian',path:`https://${window.location.host}/discovery`,routerLink:''},
{no:8,subtitle:'',icon:'',path:'',routerLink:''}
]
},{
title:'展业工具',
content:[
{no:9,subtitle:'名片分享',icon:'icon-shenfenzheng',path:'',routerLink:''},
{no:10,subtitle:'职业类别',icon:'icon-zhiyeleibie',path:'https://www.ydinsurance.cn/occupationQry/',routerLink:''},
{no:11,subtitle:'文件下载',icon:'icon-xiazai1',path:'https://www.ydinsurance.cn/?page_id=13957',routerLink:'fileUpload'},
{no:12,subtitle:'',icon:'',path:'',routerLink:''}
]
}
];
this.performanceList = [
{type: 'month',name:'本月'},
{type: 'year',name:'本年度'}
]
this.brokerInfoQuery();
this.recommendPlanQuery();
}
// 菜单导航
......@@ -52,10 +107,9 @@ export class MyCenterHomeComponent implements OnInit {
this.router.navigate([`./${item.routerLink}`]);
} else if (item.path) {
window.open(item.path);
} else if (item.no === 0) {
localStorage.removeItem('lifeCustomerInfo');
this.router.navigate(['/login']);
} else {
}else if(item.no ===9){
this.shareIdCard();
}else {
this.isNeedAlert = true;
this.dialogInfo = {
title: null,
......@@ -81,4 +135,118 @@ export class MyCenterHomeComponent implements OnInit {
imgUrl);
}
announcementQuery() {
this.myService.announcementQuery(null, null).subscribe(res => {
if (res['success']) {
this.announcementLists = res['data']['announcementInfoList'];
this.firstAnnouncement = this.getStr(this.announcementLists[0]['content'],'28');
}
});
}
getOut(){
localStorage.removeItem('lifeCustomerInfo');
this.router.navigate(['/login']);
}
//查询业绩
brokerInfoQuery(){
const practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'];
this.myService.brokerInfoQuery({practitionerId:practitionerId}).subscribe((res)=>{
if(res['success']){
this.allPerformanceInfo = res['data']['commissionInfo'];
//初始化查本月业绩
this.selectRang('month');
}
})
}
//截取字符串
getStr(str, len) {
if (!str) return "";
if (len <= 0) return "";
var templen = 0;
for (var i = 0; i < str.length; i++) {
if (str.charCodeAt(i) > 255) {
templen += 2;
} else {
templen++;
}
if (len == templen || len== templen+1) {
return str.substring(0, i + 1) + "···";
} else if (templen > len + 1) {
return str.substring(0, i);
}
}
return str;
}
selectRang(e){
if(e=='year'){
this.performanceInfo = this.allPerformanceInfo['thisYearInfo'];
this.leftWidth = '30%'
}
if(e=='month'){
this.performanceInfo = this.allPerformanceInfo['thisMonthInfo'];
this.leftWidth = '15%'
}
this.performanceSelectedFlag = e;
}
// 大家都在买产品查询列表
recommendPlanQuery() {
const adType = {
type: 4,
productId: 1
};
this.myService.recommendPlanQuery(adType).subscribe(res => {
this.products = res['data'].plans;
})
}
// 点击产品进入详情页
goProductDetail(product: Plans): void {
this.productInfo = product;
this.productInfo.type = 2;
this.inquiry = {
planId: this.productInfo.planId,
adultCount: this.productInfo.adultCount,
childCount: this.productInfo.childCount,
eldCount: this.productInfo.eldCount,
dayCount: this.productInfo.minDay
};
this.setInitDate();
this.ls.setObject('inquiry', this.inquiry);
if (this.productInfo.noPlanProduct === true) {
// this.router.navigate(['/life', this.productInfo.productId]);
window.location.href = `https://${window.location.host}/life/${this.productInfo.productId}`
} else {
if (this.productInfo.productCategoryId === 1 || this.productInfo.productCategoryId === 4) {
// this.router.navigate(['/pdetail', this.productInfo.planId]);
window.location.href = `https://${window.location.host}/pdetail/${this.productInfo.planId}`
} else if (this.productInfo.productCategoryId === 2) {
// this.router.navigate(['/hProductDetail', this.productInfo.planId], {queryParams: {type: 7}});
window.location.href = `https://${window.location.host}/hProductDetail/${this.productInfo.planId}?type=7`
} else if (this.productInfo.productCategoryId === 5) {
// this.router.navigate(['/hProductDetail', this.productInfo.planId], {queryParams: {type: 9}});
window.location.href = `https://${window.location.host}/hProductDetail/${this.productInfo.planId}?type=9`
} else {
window.location.href = `https://${window.location.host}/life/${this.productInfo.productId}`
this.router.navigate(['/pdetail', this.productInfo.planId]);
}
}
}
// 根据开始时间设置结束时间,天数应减1,当日~当日是一天
setInitDate() {
this.productInfo.dayCount = this.lifeCommonService.yearDayCount(this.productInfo.dayCount, this.productInfo.insurerId == '5');
this.lifeCommonService.setInitDate(this.productInfo.dayCount);
}
jumpUrl(){
window.location.href = `https://${window.location.host}/mk/ydviphexincoupon`
}
}
......@@ -38,4 +38,18 @@ export class MyService {
return this.http
.post(url, JSON.stringify(paginationInfo));
}
//查业绩
brokerInfoQuery(practitionerId) {
const url = this.API + '/brokerInfoQuery';
return this.http
.post(url, JSON.stringify(practitionerId));
}
//热销产品
recommendPlanQuery(param) {
const url = this.API + '/recommendPlanQuery';
return this.http
.post(url, JSON.stringify(param));
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -30,3 +30,26 @@ input::placeholder {
color: #000 !important;
}
}
.summaryBox .summaryContent {
display: flex;
align-items: baseline;
justify-content: flex-start;
width: 100%;
margin-right: 15px;
line-height: 1.2;
margin-top: 3px;
}
.summaryIcon .iconfont {
color: #11998e;
}
.summaryBox .summaryContent .summaryLabel {
margin-left: 5px;
line-height: 1;
}
.summaryBox .summaryContent:nth-child(2n) {
margin-right: 0;
}
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