Commit e6840ba1 authored by 郭志伟's avatar 郭志伟

feat: 详情优化

parent bfc51939
<template>
<modal
v-model="show"
title="您好<br />欢迎来到芒果保险"
:closeable="true"
cancel-btn=""
confirm-btn="确定"
@confirm="login"
>
</modal>
</template>
<script>
import Modal from "@/components/Modal";
export default {
name: "LoginModal",
components: {
Modal
},
data() {
return {
show: false
};
},
watch: {
value(val) {
this.show = val;
}
},
methods: {}
};
</script>
<style lang="less" scoped>
@import "../../../../style/var.less";
</style>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="panel"> <div class="panel">
<div class="panel-head"> <div class="panel-head">
<slot name="title"> <slot name="title">
<h4 v-if="title">{{ title }}</h4> <h4 v-if="title" v-html="title"></h4>
</slot> </slot>
</div> </div>
<div class="panel-body"> <div class="panel-body">
......
export default { export default {
basicHost: "https://hathaway-mg.liangkebang.net/", // basicHost: "https://hathaway-mg.liangkebang.net/",
basicHost: "http://127.0.0.1:8964/",
wxAppId: "wx514de17b23d53a20" wxAppId: "wx514de17b23d53a20"
}; };
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
</div> </div>
<detail-footer :company-info="companyInfo" /> <detail-footer :company-info="companyInfo" />
<copyright /> <copyright />
<good-action @leftClick="goInsureState = true" :content="goodActionInfo" /> <good-action @click="$router.push('/policy/add')" :content="goodActionInfo" />
<popup-with-iframe <popup-with-iframe
v-model="popupShow" v-model="popupShow"
:title="pupopData.title" :title="pupopData.title"
...@@ -79,11 +79,6 @@ ...@@ -79,11 +79,6 @@
<cps-process-detail v-if="currentPupopIndex === 5" :process-data="processDetail" /> <cps-process-detail v-if="currentPupopIndex === 5" :process-data="processDetail" />
<cps-rate v-if="currentPupopIndex === 6" /> <cps-rate v-if="currentPupopIndex === 6" />
</popup-with-iframe> </popup-with-iframe>
<go-insure-dialog
v-model="goInsureState"
:title="headerInfo.title"
:pay-data="goodBuyModalInfo"
/>
</div> </div>
</template> </template>
...@@ -104,7 +99,6 @@ import CpsCase from "./modules/CpsCase"; ...@@ -104,7 +99,6 @@ import CpsCase from "./modules/CpsCase";
import CpsProcess from "./modules/CpsProcess"; 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 CpsProcessDetail from "./modules/CpsProcessDetail"; 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";
...@@ -130,7 +124,6 @@ export default { ...@@ -130,7 +124,6 @@ export default {
Copyright, Copyright,
PopupWithIframe, PopupWithIframe,
GoodAction, GoodAction,
GoInsureDialog,
CpsProcessDetail, CpsProcessDetail,
CpsRate, CpsRate,
PlanTip, PlanTip,
...@@ -147,7 +140,6 @@ export default { ...@@ -147,7 +140,6 @@ export default {
payway: "1", payway: "1",
pact: false pact: false
}, },
goInsureState: false,
showLayer: false showLayer: false
}; };
}, },
......
<template> <template>
<modal v-model="show" :closeable="true" cancel-btn="" confirm-btn="好的 继续" @confirm="go"> <modal v-model="show" :closeable="true" cancel-btn="" confirm-btn="好的 继续" @confirm="go">
<h4 slot="title">立即拥有<br />{{ title }}</h4> <h4 slot="title" class="pay-title">立即拥有<br />{{ title }}</h4>
<compactCellGroup class="pay-det" :cell-data="payCellData" :text-bold="true" /> <compactCellGroup class="pay-det" :cell-data="payCellData" :text-bold="true" />
<div class="pay-tip">*不满意可随时退保</div> <div class="pay-tip">*不满意可随时退保</div>
<div class="pay-protocol"> <div class="pay-protocol">
...@@ -74,44 +74,14 @@ export default { ...@@ -74,44 +74,14 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@import "../../../../style/var.less"; @import "../../../../style/var.less";
.panel {
background-color: @white; .pay {
border-radius: @border-radius-md; &-title {
width: 300px;
&-wrap {
overflow: initial;
@{deep} .cr-popup--close {
top: -36px;
right: 0;
color: @white;
font-size: 24px;
}
}
&-head {
border-top-left-radius: @border-radius-md;
border-top-right-radius: @border-radius-md;
padding: @padding-lg @padding-lg 5px @padding-lg;
background: url("../../../../assets/dialog-header-bg.png") right no-repeat;
background-size: 34px 25px;
background-position: right center;
h4 {
color: @black; color: @black;
font-size: @font-size-18; font-size: @font-size-18;
font-weight: @font-weight-bold; font-weight: @font-weight-bold;
line-height: @line-height-lg + 1; line-height: @line-height-lg + 1;
} }
}
&-body {
padding: @padding-lg;
}
&-foot {
display: flex;
justify-content: center;
align-items: center;
padding: @padding-lg;
}
}
.pay {
&-det { &-det {
padding-left: 34px; padding-left: 34px;
position: relative; position: relative;
......
...@@ -344,6 +344,7 @@ export default { ...@@ -344,6 +344,7 @@ export default {
methods: { methods: {
onFormSubmit(values) { onFormSubmit(values) {
console.log("submit", values); console.log("submit", values);
this.goInsureState = true;
}, },
onFormFailed(errorInfo) { onFormFailed(errorInfo) {
const { errors } = errorInfo; const { errors } = errorInfo;
......
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