Commit 75b1326c authored by 郝聪敏's avatar 郝聪敏

fix: 修改为家人投保跳转链接

parent 25fbfabb
...@@ -15,6 +15,8 @@ export default { ...@@ -15,6 +15,8 @@ export default {
// 点击了浏览器的返回按钮 // 点击了浏览器的返回按钮
if (this.$route.name === "PolicyDetail") { if (this.$route.name === "PolicyDetail") {
this.$router.replace("/policy"); this.$router.replace("/policy");
} else if (this.$route.name === "Sucess") {
this.$router.replace("/policy");
} else if (this.$route.name === "Policy") { } else if (this.$route.name === "Policy") {
this.$router.replace("/user"); this.$router.replace("/user");
} }
......
...@@ -76,6 +76,7 @@ ...@@ -76,6 +76,7 @@
import { some } from "lodash-es"; import { some } from "lodash-es";
import GOODS_LIST from "@/api/goodsList.mock"; import GOODS_LIST from "@/api/goodsList.mock";
import { getPolicyList } from "@/api/policy"; import { getPolicyList } from "@/api/policy";
import { getLink } from "@/api/product";
import settings from "@/api/settings"; import settings from "@/api/settings";
import policyStatusMixin from "../mixin/policyStatus.mixin"; import policyStatusMixin from "../mixin/policyStatus.mixin";
import detailPayMixin from "@/views/Goods/Detail/modules/detailPay.mixin"; import detailPayMixin from "@/views/Goods/Detail/modules/detailPay.mixin";
...@@ -130,8 +131,13 @@ export default { ...@@ -130,8 +131,13 @@ export default {
showStatusText(text) { showStatusText(text) {
return text === "保障中"; return text === "保障中";
}, },
goNext(text, item) { async goNext(text, item) {
if (["为家人投保", "重新投保"].includes(text)) { if (["为家人投保", "重新投保"].includes(text)) {
if (item.id === "BNZJX001") {
const { url } = await getLink();
window.location.href = url;
return;
}
this.$router.push({ this.$router.push({
path: "/goods/detail", path: "/goods/detail",
query: { id: item.id, type: item.itype } query: { id: item.id, type: item.itype }
......
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