Commit 0b01fc06 authored by 郝聪敏's avatar 郝聪敏

fix: 修改pdf展示方式

parent c16848d0
......@@ -137,7 +137,12 @@ export default {
: refundRecord?.currentState === 3
? "退款成功"
: "-",
recordDate: refundRecord?.payTime || "-",
recordDate:
refundRecord?.currentState === 2
? refundRecord?.payTime || "-"
: refundRecord?.currentState === 3
? refundRecord?.refundTime || "-"
: "-",
amountText: `${refundRecord?.amount}`,
payStatusText:
refundRecord?.currentState === 2
......
<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>
<script>
import { getElectronicInsurance } from "@/api/policy";
export default {
name: "PolicyVirtualDetail",
data() {
return {
url: ""
urls: ""
};
},
created() {
this.url = this.$route.query?.url;
async created() {
const policySecId = this.$route.query?.policySecId;
({ urls: this.urls } = await getElectronicInsurance({ policySecId }));
}
};
</script>
......
......@@ -7,14 +7,14 @@ export default {
this.$notify({ type: "warning", message: "保单不存在" });
return;
}
const { url } = await getElectronicInsurance({ policySecId });
if (!url) {
const { urls } = await getElectronicInsurance({ policySecId });
if (!urls) {
this.$notify({ type: "danger", message: "保单地址返回异常" });
return;
}
this.$router.push({
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