Commit 0b8e276f authored by 郭志伟's avatar 郭志伟

fix: 产品详情UI调整

parent 7026863c
...@@ -4,10 +4,13 @@ ...@@ -4,10 +4,13 @@
* @Description: 华贵大麦2020定期寿险 * @Description: 华贵大麦2020定期寿险
* @Date: 2020-07-27 15:46:37 * @Date: 2020-07-27 15:46:37
* @LastEditors: gzw * @LastEditors: gzw
* @LastEditTime: 2020-08-24 20:13:25 * @LastEditTime: 2020-08-26 18:57:16
*/ */
import goodsBg from "@/assets/images/goods/detail/shouxian/bg.png"; import goodsBg from "@/assets/images/goods/detail/shouxian/bg.png";
import title from "@/assets/images/goods/detail/shouxian/title.png";
import cmd from "@/assets/images/goods/detail/shouxian/cmd.png";
import logo from "@/assets/images/goods/detail/shouxian/logo.png";
import intro01 from "@/assets/images/goods/detail/shouxian/intro-01.png"; import intro01 from "@/assets/images/goods/detail/shouxian/intro-01.png";
import intro02 from "@/assets/images/goods/detail/shouxian/intro-02.png"; import intro02 from "@/assets/images/goods/detail/shouxian/intro-02.png";
import intro03 from "@/assets/images/goods/detail/shouxian/intro-03.png"; import intro03 from "@/assets/images/goods/detail/shouxian/intro-03.png";
...@@ -20,7 +23,10 @@ export default { ...@@ -20,7 +23,10 @@ export default {
type: "huagui", type: "huagui",
company: "", company: "",
title: "大麦2020定期寿险", title: "大麦2020定期寿险",
titleImg: title,
price: [155, "元/年起"], price: [155, "元/年起"],
logo: logo,
cmdImg: cmd,
subPrice: [155, "元/年", "剩余", "(共9年)"], subPrice: [155, "元/年", "剩余", "(共9年)"],
insuredNum: 0, insuredNum: 0,
stamp: false stamp: false
......
...@@ -4,15 +4,19 @@ ...@@ -4,15 +4,19 @@
* @Description: 泰康600万医疗保障 * @Description: 泰康600万医疗保障
* @Date: 2020-07-27 15:46:37 * @Date: 2020-07-27 15:46:37
* @LastEditors: gzw * @LastEditors: gzw
* @LastEditTime: 2020-08-24 21:00:06 * @LastEditTime: 2020-08-26 18:20:51
*/ */
import goodsBg from "@/assets/images/goods/detail/yiliaoxian/bg.png"; import goodsBg from "@/assets/images/goods/detail/yiliaoxian/bg.png";
import intro01 from "@/assets/images/goods/detail/zhongjixian/intro-01.png"; import title from "@/assets/images/goods/detail/yiliaoxian/title.png";
import intro02 from "@/assets/images/goods/detail/zhongjixian/intro-02.png"; import cmd from "@/assets/images/goods/detail/yiliaoxian/cmd.png";
import intro03 from "@/assets/images/goods/detail/zhongjixian/intro-03.png"; import logo from "@/assets/images/goods/detail/yiliaoxian/logo.png";
import intro04 from "@/assets/images/goods/detail/zhongjixian/intro-04.png"; import intro01 from "@/assets/images/goods/detail/yiliaoxian/intro-01.png";
import intro02 from "@/assets/images/goods/detail/yiliaoxian/intro-02.png";
import intro03 from "@/assets/images/goods/detail/yiliaoxian/intro-03.png";
import intro04 from "@/assets/images/goods/detail/yiliaoxian/intro-04.png";
import intro05 from "@/assets/images/goods/detail/yiliaoxian/intro-05.png";
import intro06 from "@/assets/images/goods/detail/yiliaoxian/intro-06.png";
export default { export default {
type: "mi", type: "mi",
productNo: "TKYLX001", productNo: "TKYLX001",
...@@ -20,19 +24,27 @@ export default { ...@@ -20,19 +24,27 @@ export default {
bgSrc: goodsBg, bgSrc: goodsBg,
type: "taikang", type: "taikang",
company: "泰康在线", company: "泰康在线",
title: "1000万医疗保障", title: "600万医疗保障",
sub: "责任内100%报销住院医疗费", titleImg: title,
sub: "报销看病费用 治疗和用药都保障",
cmdImg: cmd,
logo: logo,
price: [1, "", "首月"], price: [1, "", "首月"],
subPrice: [3.6, "元/月起", "次月", "(共11期)"], subPrice: [3.6, "元/月起", "次月", "(共11期)"],
insuredNum: 0, insuredNum: 0,
stamp: true stamp: true
}, },
introImg: [intro01, intro02, intro03, intro04], introImg: [intro01, intro02, intro03, intro04, intro05, intro06],
companyInfo: [ companyInfo: [
{ content: "承保公司:泰康财产保险有限公司", offset: false }, { content: "承保公司:泰康在线财产保险股份有限公司", offset: false },
{ content: "经营范围:短期健康保险和意外伤害保险", offset: false }, { content: "备案名称:泰康在线财产保险股份有限公司住院医疗费用保险(C款)", offset: false },
{ content: "备案名称:华泰财险重大疾病保险条款", offset: false }, { content: "泰康在线财产保险股份有限公司附加特定疾病保险(A款))", offset: true },
{ content: "备案编号:C00015431912018061501152;", offset: false } { content: "泰康在线财产保险股份有限公司附加质子重离子医疗保险)", offset: true },
{ content: "泰康在线财产保险股份有限公司附加恶性肿瘤院外特定药品费用医疗保险条款)", offset: true },
{ content: "备案编号:C00019932512020071000092", offset: false },
{ content: "C00019932522020081804172", offset: true },
{ content: "C00019932522019010901732", offset: true },
{ content: "C00019932522019043002571", offset: true }
], ],
navBarOptions: [ navBarOptions: [
{ label: "我要投保", value: "insure" }, { label: "我要投保", value: "insure" },
...@@ -58,9 +70,6 @@ export default { ...@@ -58,9 +70,6 @@ export default {
{ title: "质子重离子医疗保险金", value: "600万" }, { title: "质子重离子医疗保险金", value: "600万" },
{ title: "恶性肿瘤院外特定药品费用保险金", value: "600万" }, { title: "恶性肿瘤院外特定药品费用保险金", value: "600万" },
{ title: "", value: "", divider: true }, { title: "", value: "", divider: true },
{ title: "发生以下治疗费用,获额外400万年度累计限额的赔付", value: "", inline: true },
{ title: "恶性肿瘤特定治疗保险金/康复医疗保险金", value: "400万" },
{ title: "", value: "", divider: true },
{ title: "发生以下指定费用,赔付不超过对应限额", value: "", inline: true }, { title: "发生以下指定费用,赔付不超过对应限额", value: "", inline: true },
{ title: "指定检查费用保险金", value: "5000元" }, { title: "指定检查费用保险金", value: "5000元" },
{ title: "特定疾病保险金", value: "5000元" }, { title: "特定疾病保险金", value: "5000元" },
...@@ -69,7 +78,7 @@ export default { ...@@ -69,7 +78,7 @@ export default {
{ title: "押金垫付", value: "住院费用垫付服务" }, { title: "押金垫付", value: "住院费用垫付服务" },
{ title: "就医绿色通道", value: "全国1233家知名三甲医院" } { title: "就医绿色通道", value: "全国1233家知名三甲医院" }
], ],
planTipOptions: ["不限社保", "报销自费药", "额外400万特定赔付"], planTipOptions: ["不限社保", "报销自费药", "最高可报600万"],
insuredOptions: [ insuredOptions: [
{ label: "本人", value: "1" }, { label: "本人", value: "1" },
{ label: "父母", value: "2" }, { label: "父母", value: "2" },
...@@ -128,24 +137,24 @@ export default { ...@@ -128,24 +137,24 @@ export default {
{ title: "平台服务协议", id: 3 } { title: "平台服务协议", id: 3 }
], ],
caseInfo: { caseInfo: {
name: "吴先生", name: "蔡女士",
info: "46岁 北京 有社保", info: "28岁 成都 无社保",
list: [ list: [
{ {
title: "投保", title: "投保",
event: "2018年6月29日,吴先生为自己投保了一份万家保·重疾轻症险,保额20万,并续保" event: "2020年2月6日,蔡女士为自己投保了一份万家保·百万医疗险,无社保版"
}, },
{ {
title: "投保", title: "出险",
event: "2019年9月16日,吴先生意外烫伤双下肢皮肤,达到浅Ⅲ°烧伤,烧伤面积达20" event: "2020年6月18日,蔡女士不幸确诊了乳腺癌。住院过程中,蔡女士还使用了靶向药、进口器材等设备,总计花费了50.23万元。"
}, },
{ {
title: "轻症理赔", title: "报案",
event: "2019年9月17日,吴先生后向我司报案,经核实符合该保险中轻症“特定面积Ⅲ度烧伤”的诊断赔付标准,给予4万保险金赔付" event: "蔡女士出院后,拨打泰康保险公司热线400-079-5522完成了报案"
}, },
{ {
title: "重疾理赔", title: "理赔",
event: "2020年1月3日,吴先生突发胸痛咯血,后诊断为右肺非小细胞性肺癌,经我司核实后确认为保险责任,一次性给予20万元的重大疾病保险金" event: "泰康在线在收到蔡女士的理赔材料后,经审核保险事故属实,保险公司按照保单约定比例100%赔付,共计50.23万元,合同继续有效"
} }
] ]
}, },
...@@ -183,6 +192,10 @@ export default { ...@@ -183,6 +192,10 @@ export default {
{ {
title: "提交资料", title: "提交资料",
desc: `关注「泰康在线保险服务」微信公众号,验证身份信息后,填写被保险人出险信息,并完成上传理赔材料。保险公司审核通过后,通知客户寄送纸质理赔原件。` desc: `关注「泰康在线保险服务」微信公众号,验证身份信息后,填写被保险人出险信息,并完成上传理赔材料。保险公司审核通过后,通知客户寄送纸质理赔原件。`
},
{
title: "理赔付款",
desc: `自保险公司成功收取理赔原件后,5个工作日内赔付。`
} }
], ],
rateInfo: [ rateInfo: [
......
...@@ -4,10 +4,12 @@ ...@@ -4,10 +4,12 @@
* @Description:众安50万意外险 * @Description:众安50万意外险
* @Date: 2020-07-27 15:46:37 * @Date: 2020-07-27 15:46:37
* @LastEditors: gzw * @LastEditors: gzw
* @LastEditTime: 2020-08-25 18:25:51 * @LastEditTime: 2020-08-26 18:43:54
*/ */
import goodsBg from "@/assets/images/goods/detail/yiwaixian/bg.png"; import goodsBg from "@/assets/images/goods/detail/yiwaixian/bg.png";
import title from "@/assets/images/goods/detail/yiwaixian/title.png";
import cmd from "@/assets/images/goods/detail/yiwaixian/cmd.png";
import logo from "@/assets/images/goods/detail/yiwaixian/logo.png";
import intro01 from "@/assets/images/goods/detail/yiwaixian/intro-01.png"; import intro01 from "@/assets/images/goods/detail/yiwaixian/intro-01.png";
import intro02 from "@/assets/images/goods/detail/yiwaixian/intro-02.png"; import intro02 from "@/assets/images/goods/detail/yiwaixian/intro-02.png";
import intro03 from "@/assets/images/goods/detail/yiwaixian/intro-03.png"; import intro03 from "@/assets/images/goods/detail/yiwaixian/intro-03.png";
...@@ -21,8 +23,11 @@ export default { ...@@ -21,8 +23,11 @@ export default {
type: "zhongan", type: "zhongan",
company: "众安保险", company: "众安保险",
title: "100万意外保障", title: "100万意外保障",
titleImg: title,
sub: "最高可赔400万 包含猝死责任", sub: "最高可赔400万 包含猝死责任",
price: [53, "元/年起"], cmdImg: cmd,
logo: logo,
price: [53, "", "", "/年起"],
insuredNum: 0, insuredNum: 0,
stamp: true stamp: true
}, },
......
...@@ -92,6 +92,9 @@ export default { ...@@ -92,6 +92,9 @@ export default {
&-option { &-option {
display: flex; display: flex;
align-items: center; align-items: center;
a {
font-size: 14px;
}
} }
&-body { &-body {
margin-bottom: 20px; margin-bottom: 20px;
......
...@@ -132,7 +132,7 @@ export default { ...@@ -132,7 +132,7 @@ export default {
box-shadow: 0px 6px 25px 0px rgba(255, 200, 66, 0.2); box-shadow: 0px 6px 25px 0px rgba(255, 200, 66, 0.2);
} }
&-txt { &-txt {
margin-left: 10px; margin-left: 14px;
font-weight: @font-weight-bold; font-weight: @font-weight-bold;
font-size: @font-size-14; font-size: @font-size-14;
line-height: @line-height-lg; line-height: @line-height-lg;
...@@ -158,7 +158,7 @@ export default { ...@@ -158,7 +158,7 @@ export default {
&-icon { &-icon {
font-style: normal; font-style: normal;
font-weight: @font-weight-bold; font-weight: @font-weight-bold;
width: 15px; width: 18px;
} }
&-txt { &-txt {
margin-left: 8px; margin-left: 8px;
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
'compact-cell_divider': item.divider, 'compact-cell_divider': item.divider,
'compact-cell_inline': item.inline 'compact-cell_inline': item.inline
}" }"
:style="{ fontSize: fontSize + 'px' }"
@click="cellClick(item)" @click="cellClick(item)"
> >
<template v-if="item.title.needSlot" slot="title"> <template v-if="item.title.needSlot" slot="title">
...@@ -52,6 +53,10 @@ export default { ...@@ -52,6 +53,10 @@ export default {
noVal: { noVal: {
type: Boolean, type: Boolean,
default: false default: false
},
fontSize: {
type: [Number, String],
default: 12
} }
}, },
methods: { methods: {
......
...@@ -105,7 +105,7 @@ export default { ...@@ -105,7 +105,7 @@ export default {
if (!item.allow) { if (!item.allow) {
return; return;
} }
if (item.id === "" && !item.url) { if (item.id === "BNZJX001" && !item.url) {
this.setIsShowLogin(); this.setIsShowLogin();
return; return;
} }
......
...@@ -30,7 +30,7 @@ const router = new VueRouter({ ...@@ -30,7 +30,7 @@ const router = new VueRouter({
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
const urlParams = parseSearch(window.location.href); const urlParams = parseSearch(window.location.href);
setTitle(to.meta.title, to.path, to.query); setTitle(to.meta.title, to.path, to.query);
if (isXyqb) getAuthInfo(urlParams.token); if (isXyqb) getAuthInfo(urlParams.vccToken);
if (isWeixinBrower) getWxOpenId(urlParams.code); if (isWeixinBrower) getWxOpenId(urlParams.code);
next(); next();
}); });
......
...@@ -8,6 +8,7 @@ export default { ...@@ -8,6 +8,7 @@ export default {
} }
}, },
set(key, value) { set(key, value) {
if (value === undefined) return;
let toString = Object.prototype.toString; let toString = Object.prototype.toString;
if (toString.call(value) === "[object Array]" || toString.call(value) === "[object Object]") { if (toString.call(value) === "[object Array]" || toString.call(value) === "[object Object]") {
value = JSON.stringify(value); value = JSON.stringify(value);
......
...@@ -260,6 +260,7 @@ export default { ...@@ -260,6 +260,7 @@ export default {
"5万以下", "5万以下",
"5万", "5万",
"10万", "10万",
"15万",
"20万", "20万",
"25万", "25万",
"30万", "30万",
......
...@@ -154,7 +154,9 @@ export default { ...@@ -154,7 +154,9 @@ export default {
immediate: true, immediate: true,
handler(val) { handler(val) {
const { price } = val; const { price } = val;
this.goodActionInfo = { title: price }; const _price = JSON.parse(JSON.stringify(price));
_price[1] = "元/年起";
this.goodActionInfo = { title: _price };
this.goodBuyModalInfo = [{ title: `每年保费`, value: `${price[0]}元` }]; this.goodBuyModalInfo = [{ title: `每年保费`, value: `${price[0]}元` }];
} }
}, },
...@@ -369,9 +371,12 @@ export default { ...@@ -369,9 +371,12 @@ export default {
const res = await trail(_param); const res = await trail(_param);
if (res) { if (res) {
price[0] = res.downPayPrice; price[0] = res.downPayPrice;
price[1] = "元/年"; price[1] = "";
price[3] = "/年";
const _price = JSON.parse(JSON.stringify(price));
_price[1] = "元/年";
this.goodActionInfo = { this.goodActionInfo = {
title: price title: _price
}; };
this.goodBuyModalInfo = [{ title: `每年保费`, value: `${price[0]}元` }]; this.goodBuyModalInfo = [{ title: `每年保费`, value: `${price[0]}元` }];
noticeCellInfo[amountInsured][2].value = `${price[0] + price[1]}`; noticeCellInfo[amountInsured][2].value = `${price[0] + price[1]}`;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<detail-header :det="headerInfo" /> <detail-header :det="headerInfo" />
<div class="det-body"> <div class="det-body">
<card title="保险计划" :option="['查看详情']" @option-click="openIframePupop(4)"> <card title="保险计划" :option="['查看详情']" @option-click="openIframePupop(4)">
<compactCellGroup :cell-data="planCellInfo" :text-bold="true" /> <compactCellGroup :cell-data="planCellInfo" :text-bold="true" font-size="14" />
<plan-tip :tip-list="planTipOptions" /> <plan-tip :tip-list="planTipOptions" />
</card> </card>
<div id="det_insure"> <div id="det_insure">
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</card> </card>
<cps-case :case-data="caseInfo" /> <cps-case :case-data="caseInfo" />
<div id="det_process"> <div id="det_process">
<cps-process :process-data="processDetail" @click="openIframePupop(5)" /> <cps-process :process-data="processDetail" :more="false" />
</div> </div>
<cps-qa :qa-data="qaInfo" /> <cps-qa :qa-data="qaInfo" />
</div> </div>
...@@ -49,7 +49,6 @@ ...@@ -49,7 +49,6 @@
:content="pupopData.content" :content="pupopData.content"
:url="pupopData.url" :url="pupopData.url"
> >
<cps-process-detail v-if="currentPupopIndex === 5" :process-data="processDetail" />
<cps-rate v-if="currentPupopIndex === 6" :rate-data="rateInfo" :is-mi="true" /> <cps-rate v-if="currentPupopIndex === 6" :rate-data="rateInfo" :is-mi="true" />
</popup-with-iframe> </popup-with-iframe>
<go-insure-dialog <go-insure-dialog
...@@ -80,7 +79,6 @@ import CpsProcess from "./modules/CpsProcess"; ...@@ -80,7 +79,6 @@ import CpsProcess from "./modules/CpsProcess";
import CpsQa from "./modules/CpsQA"; import CpsQa from "./modules/CpsQA";
import PopupWithIframe from "@/components/PopupWithIframe"; import PopupWithIframe from "@/components/PopupWithIframe";
import GoInsureDialog from "./modules/GoInsureDialog"; import GoInsureDialog from "./modules/GoInsureDialog";
import CpsProcessDetail from "./modules/CpsProcessDetail";
import CpsRate from "./modules/CpsRate"; import CpsRate from "./modules/CpsRate";
import PlanTip from "./modules/PlanTip"; import PlanTip from "./modules/PlanTip";
import InsurePersonForm from "./modules/InsurePersonForm"; import InsurePersonForm from "./modules/InsurePersonForm";
...@@ -117,7 +115,6 @@ export default { ...@@ -117,7 +115,6 @@ export default {
PopupWithIframe, PopupWithIframe,
GoodAction, GoodAction,
GoInsureDialog, GoInsureDialog,
CpsProcessDetail,
CpsRate, CpsRate,
PlanTip, PlanTip,
InsurePersonForm, InsurePersonForm,
......
...@@ -10,7 +10,9 @@ ...@@ -10,7 +10,9 @@
readonly readonly
:rules="[{ required: true, message: 'required' }]" :rules="[{ required: true, message: 'required' }]"
@click.native="$emit('select-date')" @click.native="$emit('select-date')"
/> >
<svg-icon icon-class="triangle-right" slot="button" />
</cr-field>
<cr-field <cr-field
name="amountInsured" name="amountInsured"
label="保障额度" label="保障额度"
...@@ -136,7 +138,7 @@ export default { ...@@ -136,7 +138,7 @@ export default {
.policy-form { .policy-form {
padding: 0; padding: 0;
@{deep} .cr-cell { @{deep} .cr-cell {
padding: 8px 0 !important; padding: 7.5px 0 !important;
&__title { &__title {
width: 75px !important; width: 75px !important;
} }
...@@ -148,4 +150,9 @@ export default { ...@@ -148,4 +150,9 @@ export default {
} }
} }
} }
.svg-icon {
height: 16px;
width: 16px;
margin-top: 4px;
}
</style> </style>
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<div class="cps-demo-body"> <div class="cps-demo-body">
<div class="cps-demo-person"> <div class="cps-demo-person">
<span>{{ props.caseData.name }}</span> <span>{{ props.caseData.name }}</span>
<i>|</i>
<span>{{ props.caseData.info }}</span> <span>{{ props.caseData.info }}</span>
</div> </div>
<div class="cps-demo-list"> <div class="cps-demo-list">
...@@ -80,8 +81,12 @@ export default { ...@@ -80,8 +81,12 @@ export default {
line-height: @line-height-lg; line-height: @line-height-lg;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between;
margin-bottom: 29px; margin-bottom: 29px;
i {
font-style: normal;
padding: 0 10px;
vertical-align: -2px;
}
} }
&-list { &-list {
&-item { &-item {
...@@ -91,7 +96,7 @@ export default { ...@@ -91,7 +96,7 @@ export default {
&-title { &-title {
font-size: @font-size-16; font-size: @font-size-16;
font-weight: @font-weight-bold; font-weight: @font-weight-bold;
color: @black; color: @orange-dark;
width: 34px; width: 34px;
line-height: @line-height-md; line-height: @line-height-md;
} }
...@@ -113,14 +118,14 @@ export default { ...@@ -113,14 +118,14 @@ export default {
&::before { &::before {
height: 12px; height: 12px;
width: 12px; width: 12px;
background-color: #d8d8d8; background-color: @orange-light;
border-radius: @border-radius-max; border-radius: @border-radius-max;
left: 18px; left: 18px;
} }
&::after { &::after {
width: 0; width: 0;
height: calc(100% + 20px); height: calc(100% + 20px);
border-left: 1px solid #d8d8d8; border-left: 1px solid @orange-light;
left: 24px; left: 24px;
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<card <card
title="理赔流程" title="理赔流程"
:option="props.more ? ['了解更多理赔信息'] : []" :option="props.more ? ['了解更多理赔信息'] : []"
@option-click="listeners.click" @option-click="props.more ? listeners.click : () => {}"
> >
<div class="cps-process-list"> <div class="cps-process-list">
<div class="cps-process-list-item" v-for="(item, index) in props.processData" :key="index"> <div class="cps-process-list-item" v-for="(item, index) in props.processData" :key="index">
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
content: " "; content: " ";
display: block; display: block;
position: absolute; position: absolute;
top: 50px; top: 35px;
left: 13px; left: 13px;
width: 0; width: 0;
height: calc(100% - 98px); height: calc(100% - 98px);
...@@ -52,7 +52,6 @@ export default { ...@@ -52,7 +52,6 @@ export default {
} }
&-item { &-item {
display: flex; display: flex;
align-items: center;
padding-bottom: 16px; padding-bottom: 16px;
&-title { &-title {
font-size: @font-size-12; font-size: @font-size-12;
...@@ -60,7 +59,7 @@ export default { ...@@ -60,7 +59,7 @@ export default {
color: @black; color: @black;
width: 19px; width: 19px;
height: 19px; height: 19px;
margin: -10px 20px 0 4px; margin: 30px 20px 0 4px;
background-color: @orange-light; background-color: @orange-light;
border-radius: @border-radius-max; border-radius: @border-radius-max;
line-height: @line-height-md; line-height: @line-height-md;
...@@ -76,7 +75,7 @@ export default { ...@@ -76,7 +75,7 @@ export default {
padding: @padding-sm; padding: @padding-sm;
position: relative; position: relative;
h6 { h6 {
color: @black; color: @orange-dark;
font-weight: @font-weight-bold; font-weight: @font-weight-bold;
font-size: @font-size-14; font-size: @font-size-14;
line-height: @line-height-sm + 2; line-height: @line-height-sm + 2;
......
...@@ -4,16 +4,19 @@ ...@@ -4,16 +4,19 @@
:class="props.det.type" :class="props.det.type"
:style="{ backgroundImage: 'url(' + props.det.bgSrc + ')' }" :style="{ backgroundImage: 'url(' + props.det.bgSrc + ')' }"
> >
<img <img :src="props.det.logo" alt="logo" class="det-hd-logo" v-if="props.det.logo" />
src="@/assets/images/goods/detail/shouxian/logo.png"
alt="logo"
class="det-hd-logo"
v-if="props.det.type === 'huagui'"
/>
<img src="@/assets/logo-top.png" alt="logo" class="det-hd-logo" v-else /> <img src="@/assets/logo-top.png" alt="logo" class="det-hd-logo" v-else />
<div class="det-hd-recommend"> <div class="det-hd-recommend">
<img
:src="props.det.cmdImg"
alt="智能产品官-小果 为您优选推荐"
class="det-hd-recommend-img"
v-if="props.det.cmdImg"
/>
<template v-else>
<h2 class="det-hd-recommend-h2">智能产品官-小果</h2> <h2 class="det-hd-recommend-h2">智能产品官-小果</h2>
<h1 class="det-hd-recommend-h1">为您优选推荐</h1> <h1 class="det-hd-recommend-h1">为您优选推荐</h1>
</template>
<cr-tag v-if="props.det.company"> <cr-tag v-if="props.det.company">
<strong>{{ props.det.company }}</strong> <strong>{{ props.det.company }}</strong>
...@@ -22,22 +25,31 @@ ...@@ -22,22 +25,31 @@
<div class="tag-placeholder" v-else></div> <div class="tag-placeholder" v-else></div>
</div> </div>
<div class="det-hd-insured" :class="{ stamp: props.det.stamp }"> <div class="det-hd-insured" :class="{ stamp: props.det.stamp }">
<h1 class="det-hd-insured-title">{{ props.det.title }}</h1> <img
:src="props.det.titleImg"
:alt="props.det.title"
class="det-hd-insured-title-img"
v-if="props.det.titleImg"
/>
<h1 class="det-hd-insured-title" v-else>{{ props.det.title }}</h1>
<slot> <slot>
<small class="det-hd-insured-sub"> <small class="det-hd-insured-sub">
{{ props.det.sub }} {{ props.det.sub }}
</small> </small>
<h5 class="det-hd-insured-price" v-if="props.det.price"> <h5 class="det-hd-insured-price" v-if="props.det.price">
<!-- eslint-disable-next-line prettier/prettier --> <!-- eslint-disable-next-line prettier/prettier -->
{{ props.det.price[2] || "" }}<strong>{{ props.det.price[0] || "" }}</strong>{{ props.det.price[1] || "" }} {{ props.det.price[2] || "" }}<strong>{{ props.det.price[0] || "" }}{{ props.det.price[1] || "" }}</strong>{{ (props.det.type === "zhongan" ? props.det.price[3] : "") || "" }}
<small v-if="props.det.subPrice && props.det.subPrice[0]"> <small v-if="props.det.subPrice && props.det.subPrice[0]">
<!-- eslint-disable-next-line prettier/prettier --> <!-- eslint-disable-next-line prettier/prettier -->
{{ props.det.subPrice[2] || "" }}{{ props.det.subPrice[0] || "" }}{{ props.det.subPrice[1] || "" }} {{ props.det.subPrice[2] || "" }}{{ props.det.subPrice[0] || "" }}{{ props.det.subPrice[1] || "" }}
</small> </small>
</h5> </h5>
<cr-button type="warning" block native-type="submit"> <button
立即开启保障 class="cr-button cr-button--warning cr-button--normal cr-button--square cr-button--block insure-btn"
</cr-button> type="submit"
>
<img src="@/assets/images/goods/detail/get-insure.png" alt="立即投保" />
</button>
<div class="det-hd-insured-people"> <div class="det-hd-insured-people">
已有 已有
<em>{{ props.det.insuredNum }}</em> <em>{{ props.det.insuredNum }}</em>
...@@ -86,13 +98,18 @@ export default { ...@@ -86,13 +98,18 @@ export default {
&-logo { &-logo {
position: relative; position: relative;
left: -16px; left: -16px;
width: 100px;
height: 32px; height: 32px;
margin: 16px 0 12px; margin: 16px 0 12px;
} }
&-recommend { &-recommend {
color: @white; color: @white;
padding: 0 8px; padding: 0 8px;
&-img {
width: 163px;
height: 51px;
display: block;
margin: 8px 0 4px;
}
&-h2 { &-h2 {
font-size: @font-size-20; font-size: @font-size-20;
font-weight: @font-weight-bold; font-weight: @font-weight-bold;
...@@ -133,9 +150,16 @@ export default { ...@@ -133,9 +150,16 @@ export default {
color: @black; color: @black;
line-height: @line-height-lg * 2; line-height: @line-height-lg * 2;
margin-top: 1px; margin-top: 1px;
&-img {
height: 49px;
display: block;
margin: 0 auto;
}
} }
&-sub { &-sub {
.sub-text-mixins(); .sub-text-mixins();
color: @black;
font-size: @font-size-16;
margin-top: 8px; margin-top: 8px;
} }
&-price { &-price {
...@@ -153,20 +177,29 @@ export default { ...@@ -153,20 +177,29 @@ export default {
small { small {
margin-left: 5px; margin-left: 5px;
.sub-text-mixins(); .sub-text-mixins();
color: @black;
} }
} }
.cr-button { .insure-btn {
margin-top: 30px; margin-top: 30px;
height: @button-large-height; height: @button-large-height;
line-height: @button-large-line-height; line-height: @button-large-line-height;
font-size: @font-size-16; font-size: @font-size-16;
border-radius: @border-radius-max !important;
box-shadow: 1px 12px 14px 0px rgba(255, 200, 66, 0.4); box-shadow: 1px 12px 14px 0px rgba(255, 200, 66, 0.4);
img {
width: 98px;
height: 27px;
display: block;
margin: 10px auto;
}
} }
&-people { &-people {
.sub-text-mixins(); .sub-text-mixins();
margin-top: 18px; margin-top: 18px;
em {
color: @black; color: @black;
em {
color: @orange-dark;
font-style: normal; font-style: normal;
margin: 0 3px; margin: 0 3px;
} }
...@@ -176,6 +209,7 @@ export default { ...@@ -176,6 +209,7 @@ export default {
.tag-placeholder { .tag-placeholder {
height: 30px; height: 30px;
} }
.taikang { .taikang {
.det-hd { .det-hd {
&-recommend { &-recommend {
...@@ -199,12 +233,4 @@ export default { ...@@ -199,12 +233,4 @@ export default {
} }
} }
} }
.huagui {
.det-hd {
&-logo {
width: 173px;
height: 32px;
}
}
}
</style> </style>
...@@ -528,20 +528,26 @@ export default { ...@@ -528,20 +528,26 @@ export default {
} }
&-item_nobg { &-item_nobg {
background-color: transparent !important; background-color: transparent !important;
padding: 10px 0; padding: 10px 0 !important;
overflow: initial; overflow: initial;
align-items: baseline !important; align-items: baseline !important;
margin-bottom: 0 !important; margin-bottom: 0 !important;
flex-wrap: wrap;
.radio-btn { .radio-btn {
margin-bottom: 0; margin-bottom: 0;
} }
@{deep} .cr-cell { @{deep} .cr-cell {
&__title { &__title {
width: 31%; width: 100%;
flex: none; flex: none;
margin-bottom: 16px;
font-size: @font-size-16;
span {
font-weight: @font-weight-bold;
}
} }
&__value { &__value {
width: 69%; width: 100%;
flex: none; flex: none;
overflow: initial; overflow: initial;
} }
......
<template> <template>
<card :title="title" :option="options" footer="协议" @option-click="openIframe(6)"> <card :title="title" :option="options" footer="协议" @option-click="openIframe(6)">
<compactCellGroup :cell-data="cellData" /> <compactCellGroup :cell-data="cellData" font-size="14" />
<slot></slot> <slot></slot>
<template v-slot:footer> <template v-slot:footer>
<div class="insure-form-pact" slot="footer"> <div class="insure-form-pact" slot="footer">
...@@ -103,9 +103,6 @@ export default { ...@@ -103,9 +103,6 @@ export default {
@import "../../../../style/var.less"; @import "../../../../style/var.less";
.insure-form { .insure-form {
&-pact { &-pact {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px 0; padding: 14px 0;
.cr-cell { .cr-cell {
padding: 0; padding: 0;
...@@ -115,22 +112,23 @@ export default { ...@@ -115,22 +112,23 @@ export default {
} }
} }
@{deep} .cr-checkbox__label { @{deep} .cr-checkbox__label {
font-size: @font-size-11; font-size: @font-size-14;
color: @gray-4; color: #999;
margin-left: 5px; margin-left: 5px;
} }
&-link { &-link {
margin-top: -3.5px; margin-top: 3px;
display: flex; display: flex;
padding-top: 3px; padding-top: 3px;
padding-left: 17px;
align-items: center; align-items: center;
a { a {
font-size: @font-size-11; font-size: @font-size-12 + 1;
&::after { &::after {
display: inline-block; display: inline-block;
content: " "; content: " ";
width: 0; width: 0;
height: 12px; height: 13px;
border-right: 1px @blue solid; border-right: 1px @blue solid;
margin: 0 3px 0 1px; margin: 0 3px 0 1px;
vertical-align: -2px; vertical-align: -2px;
......
...@@ -46,7 +46,8 @@ module.exports = { ...@@ -46,7 +46,8 @@ module.exports = {
return { return {
...options, ...options,
transformAssetUrls: { transformAssetUrls: {
"cr-image": "src" "cr-image": "src",
"cr-button": "icon"
} }
}; };
}); });
......
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