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

fix: 修改头像ui、百年跳转问题

parent f826dedd
export default {
mounted() {
if (window.history && window.history.pushState) {
// 向历史记录中插入了当前页
history.pushState(null, null, document.URL);
window.addEventListener("popstate", this.goBack, false);
}
},
destroyed() {
window.removeEventListener("popstate", this.goBack, false);
},
methods: {
goBack() {
console.log("popstate", history, this.$route);
// 点击了浏览器的返回按钮
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");
}
}
}
// mounted() {
// if (window.history && window.history.pushState) {
// // 向历史记录中插入了当前页
// history.pushState(null, null, document.URL);
// window.addEventListener("popstate", this.goBack, false);
// }
// },
// destroyed() {
// window.removeEventListener("popstate", this.goBack, false);
// },
// methods: {
// goBack() {
// console.log("popstate", history, this.$route);
// // 点击了浏览器的返回按钮
// 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");
// }
// }
// }
};
......@@ -133,7 +133,7 @@ export default {
},
async goNext(text, item) {
if (["为家人投保", "重新投保"].includes(text)) {
if (item.id === "BNZJX001") {
if (item.productNo === "BNZJX001") {
const { url } = await getLink();
window.location.href = url;
return;
......
......@@ -156,6 +156,10 @@
background: #fff;
}
}
.Ufi-item-img {
width: 40px;
height: 40px;
}
&::-webkit-scrollbar {
display: none;
}
......
......@@ -8,7 +8,7 @@
v-for="(item, index) in familyList"
:key="index"
>
<cr-image round width="40px" height="40px" fit="cover" :src="item.avatar" />
<cr-image round class="Ufi-item-img" width="" height="" fit="cover" :src="item.avatar" />
<span class="user-family-info-item-name">{{ item.nameMask }}</span>
<div class="user-family-info-item-divider" v-show="index === activeIndex"></div>
</div>
......
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