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

Merge branch 'feature/update_url' into 'master'

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

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