Commit 1a5a3fa9 authored by 郭志伟's avatar 郭志伟

style: 语法检查

parent aa88ae9c
...@@ -18,8 +18,8 @@ export default { ...@@ -18,8 +18,8 @@ export default {
}, },
methods: { methods: {
goNext(type) { goNext(type) {
if (type === 'home') { if (type === "home") {
this.$router.push('/home') this.$router.push("/home");
} }
} }
} }
......
<template> <template>
<div class="Pdb-payment"> <div class="Pdb-payment">
<p v-if="showTips" class="Pdb-payment-title Pdb-payment-title_tips">{{payCostConfig.title}}</p> <p v-if="showTips" class="Pdb-payment-title Pdb-payment-title_tips">
{{ payCostConfig.title }}
</p>
<div v-else> <div v-else>
<p class="Pdb-payment-title">保障将在XX天后失效,请立即缴费</p> <p class="Pdb-payment-title">保障将在XX天后失效,请立即缴费</p>
<div class="Pdb-payment-content"> <div class="Pdb-payment-content">
...@@ -18,7 +20,7 @@ ...@@ -18,7 +20,7 @@
</div> </div>
</div> </div>
</div> </div>
<cr-button class="Pdb-payment-button">{{payCostConfig.button}}</cr-button> <cr-button class="Pdb-payment-button">{{ payCostConfig.button }}</cr-button>
</div> </div>
</template> </template>
<script> <script>
...@@ -27,7 +29,7 @@ export default { ...@@ -27,7 +29,7 @@ export default {
props: { props: {
statusKey: { statusKey: {
type: String, type: String,
default: '2' default: "2"
}, },
payCostConfig: { payCostConfig: {
type: Object, type: Object,
......
...@@ -31,11 +31,11 @@ ...@@ -31,11 +31,11 @@
</div> </div>
<div class="Pdbc-body-item"> <div class="Pdbc-body-item">
<span>生效日期</span> <span>生效日期</span>
<span>{{EffectiveDate}}</span> <span>{{ EffectiveDate }}</span>
</div> </div>
<div class="Pdbc-body-item"> <div class="Pdbc-body-item">
<span>终止日期</span> <span>终止日期</span>
<span>{{EndDate}}</span> <span>{{ EndDate }}</span>
</div> </div>
</div> </div>
<div class="Pdb-content-operation"> <div class="Pdb-content-operation">
...@@ -44,15 +44,15 @@ ...@@ -44,15 +44,15 @@
<div class="Pdb-content-user"> <div class="Pdb-content-user">
<p class="Pdbc-user-who">投保人</p> <p class="Pdbc-user-who">投保人</p>
<div class="Pdbc-user-info"> <div class="Pdbc-user-info">
<span>{{data.holderUserNameMask}}</span> <span>{{ data.holderUserNameMask }}</span>
<span>身份证号 {{data.holderIdNoMask}}</span> <span>身份证号 {{ data.holderIdNoMask }}</span>
</div> </div>
</div> </div>
<div class="Pdb-content-user"> <div class="Pdb-content-user">
<p class="Pdbc-user-who">被保人</p> <p class="Pdbc-user-who">被保人</p>
<div class="Pdbc-user-info"> <div class="Pdbc-user-info">
<span>{{data.insuredUserNameMask}}</span> <span>{{ data.insuredUserNameMask }}</span>
<span>身份证号 {{data.insuredIdNoMask}}</span> <span>身份证号 {{ data.insuredIdNoMask }}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -64,8 +64,10 @@ export default { ...@@ -64,8 +64,10 @@ export default {
name: "SecurityContent", name: "SecurityContent",
props: { props: {
data: { data: {
type: Object, type: Object,
default: ({}) default() {
return {};
}
} }
}, },
data() { data() {
...@@ -73,16 +75,14 @@ export default { ...@@ -73,16 +75,14 @@ export default {
}, },
computed: { computed: {
EffectiveDate() { EffectiveDate() {
return parseTime(this.data.policyEffectiveDate, "{y}-{m}-{d}") return parseTime(this.data.policyEffectiveDate, "{y}-{m}-{d}");
}, },
EndDate() { EndDate() {
return parseTime(this.data.policyEndDate, "{y}-{m}-{d}") return parseTime(this.data.policyEndDate, "{y}-{m}-{d}");
} }
}, },
methods: { methods: {
showPdf() { showPdf() {}
}
} }
}; };
</script> </script>
......
...@@ -14,15 +14,15 @@ export default { ...@@ -14,15 +14,15 @@ export default {
props: { props: {
firstTitle: { firstTitle: {
type: String, type: String,
default: '' default: ""
}, },
secondTitle: { secondTitle: {
type: String, type: String,
default: '' default: ""
}, },
recordText: { recordText: {
type: String, type: String,
default: '' default: ""
} }
}, },
data() { data() {
...@@ -30,7 +30,7 @@ export default { ...@@ -30,7 +30,7 @@ export default {
}, },
computed: { computed: {
secondTitleText() { secondTitleText() {
return this.firstTitle ? `${this.secondTitle}...` : this.secondTitle return this.firstTitle ? `${this.secondTitle}...` : this.secondTitle;
} }
} }
}; };
......
...@@ -58,7 +58,7 @@ export default { ...@@ -58,7 +58,7 @@ export default {
const prePath = ["/goods/inform", "/goods/detail", "/policy/add"]; const prePath = ["/goods/inform", "/goods/detail", "/policy/add"];
if (prePath.includes(from.path)) { if (prePath.includes(from.path)) {
vm.isFromPay = true; vm.isFromPay = true;
console.log(2, vm.isFromPay) console.log(2, vm.isFromPay);
} }
}); });
} }
......
...@@ -121,7 +121,8 @@ export default { ...@@ -121,7 +121,8 @@ export default {
showStatusText(text) { showStatusText(text) {
return text === "保障中"; return text === "保障中";
}, },
goNext(text, item) { // goNext(text, item) {
goNext() {
// if (text === "为家人投保") { // if (text === "为家人投保") {
// } else if (text === "电子保单") { // } else if (text === "电子保单") {
// } else if (text === "开通自动续费") { // } else if (text === "开通自动续费") {
......
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