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

Merge branch 'feature/update_url' into 'master'

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

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