Commit e7d273b3 by sunchao

ydLife海报详情样式修改

parent 586d7cae
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.left{ .left{
display: flex; display: flex;
padding: 10px 2px; padding: 10px 2px;
border-bottom: 3px #3784ca solid; // border-bottom: 3px #3784ca solid;
background: #f0f0f0; background: #f0f0f0;
margin-bottom: 10px; margin-bottom: 10px;
li{ li{
......
...@@ -74,7 +74,7 @@ export class MkMaterialDetailComponent implements OnInit { ...@@ -74,7 +74,7 @@ export class MkMaterialDetailComponent implements OnInit {
// 加载海报图 // 加载海报图
ctx.drawImage(img, 0, 0, this.canvas.nativeElement.width, this.canvas.nativeElement.height); ctx.drawImage(img, 0, 0, this.canvas.nativeElement.width, this.canvas.nativeElement.height);
ctx.save(); ctx.save();
ctx.fillStyle = '#f5e7cd'; ctx.fillStyle = 'rgba(0,0,0,0.15)';
ctx.fillRect(0, this.canvas.nativeElement.height - this.contentHeight * ratio, this.canvas.nativeElement.width * ratio, this.contentHeight * ratio); ctx.fillRect(0, this.canvas.nativeElement.height - this.contentHeight * ratio, this.canvas.nativeElement.width * ratio, this.contentHeight * ratio);
ctx.beginPath(); // 开始绘制 ctx.beginPath(); // 开始绘制
// 先画个圆 前两个参数确定了圆心 (x,y) 坐标 第三个参数是圆的半径 四参数是绘图方向 默认是false,即顺时针 // 先画个圆 前两个参数确定了圆心 (x,y) 坐标 第三个参数是圆的半径 四参数是绘图方向 默认是false,即顺时针
...@@ -101,7 +101,7 @@ export class MkMaterialDetailComponent implements OnInit { ...@@ -101,7 +101,7 @@ export class MkMaterialDetailComponent implements OnInit {
this.canvas.nativeElement.style.display = 'none'; this.canvas.nativeElement.style.display = 'none';
}; };
// 绘制字体 // 绘制字体
ctx.fillStyle = '#000'; ctx.fillStyle = '#fff';
ctx.font = `${12 * ratio}px 微软雅黑`; ctx.font = `${12 * ratio}px 微软雅黑`;
ctx.fillText(`${this.lifeCustomerInfo.practitionerBasicInfo.name}`, 75 * ratio, avatarurlY + 15 * ratio); // Y指的是文字底部的位置 ctx.fillText(`${this.lifeCustomerInfo.practitionerBasicInfo.name}`, 75 * ratio, avatarurlY + 15 * ratio); // Y指的是文字底部的位置
ctx.fillText(`银盾保险经纪`, 75 * ratio, avatarurlY + 30 * ratio); // Y指的是文字底部的位置 ctx.fillText(`银盾保险经纪`, 75 * ratio, avatarurlY + 30 * ratio); // Y指的是文字底部的位置
......
.left{ .left{
display: flex; display: flex;
padding: 10px 2px; padding: 10px 2px;
border-bottom: 3px #3784ca solid; // border-bottom: 3px #3784ca solid;
background: #f0f0f0; background: #f0f0f0;
margin-bottom: 10px; margin-bottom: 10px;
list-style: none; list-style: none;
......
...@@ -17,8 +17,6 @@ export class MkMaterialComponent implements OnInit { ...@@ -17,8 +17,6 @@ export class MkMaterialComponent implements OnInit {
ngOnInit() { ngOnInit() {
this.dropOptionsQuery(); this.dropOptionsQuery();
this.posterQuery();
} }
posterQuery() { posterQuery() {
...@@ -40,7 +38,7 @@ export class MkMaterialComponent implements OnInit { ...@@ -40,7 +38,7 @@ export class MkMaterialComponent implements OnInit {
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) this.posterQuery();
} }
}else{ }else{
this.categoryList = []; this.categoryList = [];
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<div class="weui-panel__bd"> <div class="weui-panel__bd">
<div class="performance_wrapper"> <div class="performance_wrapper">
<img class="bg" src="assets/images/sales_bg.png" > <!-- <img class="bg" src="assets/images/sales__bg.png" > -->
<div class="content"> <div class="content">
<span class="detail" (click)="jumpToDetail()">明细<i class="iconfont icon-ar-r" <span class="detail" (click)="jumpToDetail()">明细<i class="iconfont icon-ar-r"
...@@ -75,8 +75,8 @@ ...@@ -75,8 +75,8 @@
<div class="performance_wrapper notice"> <div class="performance_wrapper notice">
<div style="position: relative;"> <div style="position: relative;">
<h3 style="font-size: 16px;color: #ff002a;">公告</h3><i class="iconfont" style="color: #ff002a;">&#xe645;</i> <h3 style="font-size: 16px;color: #ff002a;">公告</h3><i class="iconfont" style="color: #ff002a;">&#xe645;</i>
<div [innerHtml]="firstAnnouncement" ></div> <div #hide style="font-size: 14px;" [innerHtml]="firstAnnouncement" ></div>
<span style="position:absolute;right:5px;font-size: 14px;color:#408dc9;" routerLink="importantAnnouncement">更多</span> <span style="position:absolute;right:5px;font-size: 12px;color:#408dc9;" routerLink="importantAnnouncement">更多</span>
</div> </div>
</div> </div>
<div class="tool_wrapper"> <div class="tool_wrapper">
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<div class="summaryBox"> <div class="summaryBox">
<div class="summaryContent" *ngFor="let label of product.labels"> <div class="summaryContent" *ngFor="let label of product.labels">
<div class="summaryIcon"><i class="iconfont icon-gou"></i></div> <div class="summaryIcon"><i class="iconfont icon-gou"></i></div>
<div class="summaryLabel">{{label}}</div> <div class="summaryLabel" >{{label}}</div>
</div> </div>
</div> </div>
<div class="priceContainer"> <div class="priceContainer">
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
<div class="health_wrapper"> <div class="health_wrapper">
<h3>医疗服务</h3> <h3>医疗服务</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%;margin-right: 10px;" src="assets/images/yindunvipmember.jpg" (click)="jumpUrl()">
<img style="border-radius: 10px;width: 48%;" src="assets/images/yindunvipmember.jpg" (click)="jumpUrl()"> <!-- <img style="border-radius: 10px;width: 48%;" src="assets/images/yindunvipmember.jpg" (click)="jumpUrl()"> -->
</div> </div>
......
...@@ -85,7 +85,7 @@ export class MyCenterHomeComponent implements OnInit { ...@@ -85,7 +85,7 @@ export class MyCenterHomeComponent implements OnInit {
},{ },{
title:'展业工具', title:'展业工具',
content:[ content:[
{no:9,subtitle:'名片分享',icon:'icon-shenfenzheng',path:'',routerLink:''}, {no:9,subtitle:'执业分享',icon:'icon-shenfenzheng',path:'',routerLink:''},
{no:10,subtitle:'职业类别',icon:'icon-zhiyeleibie',path:'https://www.ydinsurance.cn/occupationQry/',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:11,subtitle:'文件下载',icon:'icon-xiazai1',path:'https://www.ydinsurance.cn/?page_id=13957',routerLink:'fileUpload'},
{no:12,subtitle:'',icon:'',path:'',routerLink:''} {no:12,subtitle:'',icon:'',path:'',routerLink:''}
...@@ -130,8 +130,8 @@ export class MyCenterHomeComponent implements OnInit { ...@@ -130,8 +130,8 @@ export class MyCenterHomeComponent implements OnInit {
this.lifeCommonService.shareStatusPublish(1); this.lifeCommonService.shareStatusPublish(1);
this.lifeCommonService.wxShare( this.lifeCommonService.wxShare(
`银盾保险经纪 ${this.lifeCustomerInfo.practitionerBasicInfo.name}`, `银盾保险经纪 ${this.lifeCustomerInfo.practitionerBasicInfo.name}`,
'银盾保险经纪,家庭健康保险专家', '您的家庭保险专家、财务策划师。规划成就人生。',
`https://m.zuihuibi.cn/brokerQry/#/brokerDetail/${this.lifeCustomerInfo.practitionerId}`, `https://${window.location.host}/brokerQry/#/brokerDetail/${this.lifeCustomerInfo.practitionerId}`,
imgUrl); imgUrl);
} }
...@@ -139,7 +139,7 @@ export class MyCenterHomeComponent implements OnInit { ...@@ -139,7 +139,7 @@ export class MyCenterHomeComponent implements OnInit {
this.myService.announcementQuery(null, null).subscribe(res => { this.myService.announcementQuery(null, null).subscribe(res => {
if (res['success']) { if (res['success']) {
this.announcementLists = res['data']['announcementInfoList']; this.announcementLists = res['data']['announcementInfoList'];
this.firstAnnouncement = this.getStr(this.announcementLists[0]['title'],'28'); this.firstAnnouncement = this.getStr(this.announcementLists[0]['title'],'36');
} }
}); });
} }
...@@ -173,7 +173,7 @@ export class MyCenterHomeComponent implements OnInit { ...@@ -173,7 +173,7 @@ export class MyCenterHomeComponent implements OnInit {
templen++; templen++;
} }
if (len == templen || len== templen+1) { if (len == templen || len== templen+1) {
return str.substring(0, i + 1) ; return str.substring(0, i + 1) + '...' ;
} else if (templen > len + 1) { } else if (templen > len + 1) {
return str.substring(0, i); return str.substring(0, i);
} }
...@@ -195,11 +195,7 @@ export class MyCenterHomeComponent implements OnInit { ...@@ -195,11 +195,7 @@ export class MyCenterHomeComponent implements OnInit {
// 大家都在买产品查询列表 // 大家都在买产品查询列表
recommendPlanQuery() { recommendPlanQuery() {
const adType = { this.myService.queryproductlistbytag({mdTagId:17}).subscribe(res => {
type: 4,
productId: 1
};
this.myService.recommendPlanQuery(adType).subscribe(res => {
this.products = res['data'].plans; this.products = res['data'].plans;
}) })
} }
......
...@@ -60,4 +60,11 @@ export class MyService { ...@@ -60,4 +60,11 @@ export class MyService {
return res; return res;
}); });
} }
queryproductlistbytag(param){
const url = this.API + "/queryproductlistbytag";
return this.http.post(url, JSON.stringify(param)).pipe(res => {
return res;
});
}
} }
...@@ -48,6 +48,7 @@ input::placeholder { ...@@ -48,6 +48,7 @@ input::placeholder {
.summaryBox .summaryContent .summaryLabel { .summaryBox .summaryContent .summaryLabel {
margin-left: 5px; margin-left: 5px;
line-height: 1; line-height: 1;
font-size: 14px;
} }
.summaryBox .summaryContent:nth-child(2n) { .summaryBox .summaryContent:nth-child(2n) {
......
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