Commit 738d1f14 authored by 华国豪's avatar 华国豪 🙄

完善页面记录

parent 6221a8d7
...@@ -165,6 +165,9 @@ ...@@ -165,6 +165,9 @@
.pd_bottom_detail_right img{ .pd_bottom_detail_right img{
max-width: 100%; max-width: 100%;
} }
.pd_bottom_detail_right .pd_img_box{
text-align: center;
}
.pd_quota{ .pd_quota{
font-size:12px; font-size:12px;
color:#666666; color:#666666;
...@@ -231,7 +234,7 @@ ...@@ -231,7 +234,7 @@
<div v-html="detail.description"> <div v-html="detail.description">
</div> </div>
<div> <div class="pd_img_box">
<template v-for="item in detail.deImgArr"> <template v-for="item in detail.deImgArr">
<img :src="item" alt=""> <img :src="item" alt="">
</template> </template>
......
...@@ -347,11 +347,11 @@ export default { ...@@ -347,11 +347,11 @@ export default {
let userInfo = r.data.data; let userInfo = r.data.data;
let userJson = JSON.stringify(userInfo); let userJson = JSON.stringify(userInfo);
localStorage.userInfo = userJson; localStorage.userInfo = userJson;
let FromPath = sessionStorage.getItem("FromPath"); let FromPath = sessionStorage.getItem("FromPath") ? JSON.parse(sessionStorage.getItem("FromPath")) : '';
this.$store.commit("changeLogin", 1); this.$store.commit("changeLogin", 1);
this.$store.commit("updateUser", userInfo); this.$store.commit("updateUser", userInfo);
if (FromPath) { if (FromPath) {
this.$router.push({ path: FromPath }); this.$router.push({ path: FromPath.path, query: FromPath.query });
} else if (this.$route.query.id && this.$route.query.path) { } else if (this.$route.query.id && this.$route.query.path) {
let path = `${this.$route.query.path}/${this.$route.query.id}`; let path = `${this.$route.query.path}/${this.$route.query.id}`;
this.$router.push({ path }); this.$router.push({ path });
......
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