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

Merge branch 'feature/update_pdf' into 'master'

fix: 修改pdf展示方式

See merge request !197
parents c16848d0 0b01fc06
...@@ -137,7 +137,12 @@ export default { ...@@ -137,7 +137,12 @@ export default {
: refundRecord?.currentState === 3 : refundRecord?.currentState === 3
? "退款成功" ? "退款成功"
: "-", : "-",
recordDate: refundRecord?.payTime || "-", recordDate:
refundRecord?.currentState === 2
? refundRecord?.payTime || "-"
: refundRecord?.currentState === 3
? refundRecord?.refundTime || "-"
: "-",
amountText: `${refundRecord?.amount}`, amountText: `${refundRecord?.amount}`,
payStatusText: payStatusText:
refundRecord?.currentState === 2 refundRecord?.currentState === 2
......
<template> <template>
<cr-image width="" height="" fit="cover" :src="url" /> <div>
<cr-image width="" height="" fit="cover" :src="item" v-for="item in urls" :key="item" />
</div>
</template> </template>
<script> <script>
import { getElectronicInsurance } from "@/api/policy";
export default { export default {
name: "PolicyVirtualDetail", name: "PolicyVirtualDetail",
data() { data() {
return { return {
url: "" urls: ""
}; };
}, },
created() { async created() {
this.url = this.$route.query?.url; const policySecId = this.$route.query?.policySecId;
({ urls: this.urls } = await getElectronicInsurance({ policySecId }));
} }
}; };
</script> </script>
......
...@@ -7,14 +7,14 @@ export default { ...@@ -7,14 +7,14 @@ export default {
this.$notify({ type: "warning", message: "保单不存在" }); this.$notify({ type: "warning", message: "保单不存在" });
return; return;
} }
const { url } = await getElectronicInsurance({ policySecId }); const { urls } = await getElectronicInsurance({ policySecId });
if (!url) { if (!urls) {
this.$notify({ type: "danger", message: "保单地址返回异常" }); this.$notify({ type: "danger", message: "保单地址返回异常" });
return; return;
} }
this.$router.push({ this.$router.push({
path: "/policy/virtual-detail", path: "/policy/virtual-detail",
query: { url } query: { policySecId }
}); });
} }
} }
......
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