Commit c88b3aee authored by 郝聪敏's avatar 郝聪敏

抽离备案蒙层

parent be4aa655
<template>
<cr-overlay class="user-mask" :show="value" @click="hide">
<cr-image class="user-mask-image" round width="86px" height="86px" fit="cover" :src="record" />
<p class="user-mask-title">平台备案中</p>
<p class="user-mask-desc">{{ desc }}</p>
</cr-overlay>
</template>
<script>
import record from "@/assets/images/user/for_the_record@2x.png";
export default {
name: "Tabbar",
props: {
value: {
type: Boolean,
default: false
},
desc: {
type: String,
default: ""
}
},
data() {
return {
record
};
},
methods: {
hide() {
this.$emit("input", false);
}
}
};
</script>
<style lang="less">
.user-mask {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 101;
&-image {
margin-bottom: 10px;
}
&-title {
font-size: 15px;
line-height: 24px;
font-weight: 600;
color: #ffffff;
}
&-desc {
font-size: 20px;
line-height: 24px;
font-weight: 600;
color: #ffffff;
}
}
</style>
...@@ -9,11 +9,11 @@ export default { ...@@ -9,11 +9,11 @@ export default {
name: "SvgIcon", name: "SvgIcon",
props: { props: {
iconClass: { iconClass: {
type: String, type: [String, Array],
required: true required: true
}, },
className: { className: {
type: String, type: [String, Array],
default: "" default: ""
} }
}, },
......
...@@ -69,6 +69,7 @@ export default { ...@@ -69,6 +69,7 @@ export default {
.mongo-tabbar { .mongo-tabbar {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
z-index: 100;
box-sizing: border-box; box-sizing: border-box;
height: 49px; height: 49px;
padding: 5px 0 2px 0; padding: 5px 0 2px 0;
......
...@@ -9,13 +9,11 @@ export default new Vuex.Store({ ...@@ -9,13 +9,11 @@ export default new Vuex.Store({
}, },
mutations: { mutations: {
setActiveIdx(state, value) { setActiveIdx(state, value) {
console.log('setActiveIdx', value);
state.activeIdx = value; state.activeIdx = value;
} }
}, },
actions: { actions: {
setActiveIdx(state, value) { setActiveIdx(state, value) {
console.log('setActiveIdx', value);
state.activeIdx = value; state.activeIdx = value;
} }
}, },
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
为保证被保险人的保险权益在理赔时不受影响,请确认被保险人健康状况是否符合以下投保条件: 为保证被保险人的保险权益在理赔时不受影响,请确认被保险人健康状况是否符合以下投保条件:
</div> </div>
</div> </div>
<card :title="true" class="inform-content"> <card title="true" class="inform-content">
<span slot="title" class="inform-content-title"> <span slot="title" class="inform-content-title">
请如实告知 请如实告知
<strong>被保人</strong> 是否有以下情形之一 <strong>被保人</strong> 是否有以下情形之一
...@@ -30,19 +30,29 @@ ...@@ -30,19 +30,29 @@
<cr-button @click="$router.back()">不符合</cr-button> <cr-button @click="$router.back()">不符合</cr-button>
<cr-button type="warning" @click="conform">符合,立即投保</cr-button> <cr-button type="warning" @click="conform">符合,立即投保</cr-button>
</div> </div>
<record-layer v-model="showLayer" desc="敬请期待"></record-layer>
</div> </div>
</template> </template>
<script> <script>
import card from "@/components/Card"; import card from "@/components/Card";
import RecordLayer from "@/components/RecordLayer";
export default { export default {
name: "GoodsInform", name: "GoodsInform",
components: { components: {
card card,
RecordLayer
},
data() {
return {
showLayer: false
};
}, },
methods: { methods: {
conform() { conform() {
this.$toast("平台备案中,不能支付,敬请期待"); // this.$toast("平台备案中,不能支付,敬请期待");
this.showLayer = true;
} }
} }
}; };
......
...@@ -22,19 +22,19 @@ ...@@ -22,19 +22,19 @@
<script> <script>
import "./index.less"; import "./index.less";
import policyDefault from "@/assets/images/policy/policy-default@2x.png"; import policyDefault from "@/assets/images/policy/policy-default@2x.png";
import InsuranceRecommend from "./modules/InsuranceRecommend"; // import InsuranceRecommend from "./modules/InsuranceRecommend";
import PolicyItem from "./modules/PolicyItem"; // import PolicyItem from "./modules/PolicyItem";
export default { export default {
name: "PolicyList", name: "PolicyList",
components: { // components: {
InsuranceRecommend, // InsuranceRecommend,
PolicyItem, // PolicyItem
}, // },
data() { data() {
return { return {
active: 0, active: 0,
policyDefault, policyDefault
}; };
} }
}; };
......
...@@ -279,25 +279,4 @@ ...@@ -279,25 +279,4 @@
color: #CCCCCC; color: #CCCCCC;
} }
} }
&-mask {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
&-image {
margin-bottom: 10px;
}
&-title {
font-size: 15px;
line-height:24px;
font-weight: 600;
color: #FFFFFF;
}
&-desc {
font-size: 20px;
line-height:24px;
font-weight: 600;
color: #FFFFFF;
}
}
} }
...@@ -43,18 +43,7 @@ ...@@ -43,18 +43,7 @@
<svg-icon icon-class="logo" class-name="user-logo-svg" /> <svg-icon icon-class="logo" class-name="user-logo-svg" />
<p class="user-logo-desc" @click="go('/introduction')">了解芒果保险</p> <p class="user-logo-desc" @click="go('/introduction')">了解芒果保险</p>
</div> </div>
<cr-overlay class="user-mask" :show="show" @click="show = false"> <record-layer v-model="showLayer" desc="敬请期待"></record-layer>
<cr-image
class="user-mask-image"
round
width="86px"
height="86px"
fit="cover"
:src="record"
/>
<p class="user-mask-title">平台备案中</p>
<p class="user-mask-desc">敬请期待</p>
</cr-overlay>
<tabbar></tabbar> <tabbar></tabbar>
</div> </div>
</template> </template>
...@@ -63,30 +52,30 @@ import "./index.less"; ...@@ -63,30 +52,30 @@ import "./index.less";
import customerService from "@/assets/images/user/customer-service@1x.png"; import customerService from "@/assets/images/user/customer-service@1x.png";
import help from "@/assets/images/user/help@2x.png"; import help from "@/assets/images/user/help@2x.png";
import avatar from "@/assets/images/user/avatar@2x.png"; import avatar from "@/assets/images/user/avatar@2x.png";
import record from "@/assets/images/user/for_the_record@2x.png";
import UserFamily from "./modules/UserFamily"; import UserFamily from "./modules/UserFamily";
import Tabbar from "@/components/Tabbar"; import Tabbar from "@/components/Tabbar";
import RecordLayer from "@/components/RecordLayer";
export default { export default {
name: "User", name: "User",
components: { components: {
UserFamily, UserFamily,
Tabbar Tabbar,
RecordLayer
}, },
data() { data() {
return { return {
avatar, avatar,
customerService, customerService,
help, help,
record,
isFixed: false, isFixed: false,
show: false showLayer: false
}; };
}, },
methods: { methods: {
go(path, isOverlay = false) { go(path, isOverlay = false) {
if (isOverlay) { if (isOverlay) {
this.show = true; this.showLayer = true;
} else { } else {
this.$router.push(path); this.$router.push(path);
} }
......
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