fix(axios): 更新开发环境session token

feat(ai): 添加移除页面元素的逻辑
style(aiItem): 优化图片列表布局和星级显示
chore: 更新dist/index.html构建文件
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-08-26 14:41:25 +08:00
parent e151b8cf4b
commit 7839c05c67
7 changed files with 27 additions and 10 deletions

File diff suppressed because one or more lines are too long

2
dist/index.html vendored
View File

@@ -1,4 +1,4 @@
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/favicon.ico"/><title>港校租房</title><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/js/chunk-vendors.65a8ec5d.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/js/app.7a09fb88.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/css/chunk-vendors.7885d77e.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/css/app.e162f837.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but zufang doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><script src="https://app.gter.net/bottom?tpl=header&menukey=fang"></script><div id="app"></div><div style="display: none;"><script>var _hmt = _hmt || []
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/favicon.ico"/><title>港校租房</title><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/js/chunk-vendors.65a8ec5d.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/js/app.3cd36d5e.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/css/chunk-vendors.7885d77e.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/css/app.e162f837.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but zufang doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><script src="https://app.gter.net/bottom?tpl=header&menukey=fang"></script><div id="app"></div><div style="display: none;"><script>var _hmt = _hmt || []
;(function () {
var hm = document.createElement("script")
hm.src = "//hm.baidu.com/hm.js?4bd66cbe45a640b607fe46c48f658746"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -46,8 +46,7 @@
<div class="dot"></div>
<div class="star-box flex1 flexacenter">
<span class="spot-title">推荐星级</span>
<img v-for="item in item.score" :key="item" class="star-item" src="@/assets/img/publicImage/star-icon.svg" />
<img v-for="item in Number(item.score)" :key="item" class="star-item" src="@/assets/img/publicImage/star-icon.svg" />
<img v-if="item.scoreHalf" class="star-item" src="@/assets/img/publicImage//star-half.svg" />
</div>
</div>
@@ -351,14 +350,16 @@ const cloaseImageShow = () => {
margin-left: 30px;
white-space: nowrap;
overflow: auto;
display: flex;
.img {
min-width: 165px;
width: 165px;
height: 110px;
margin-right: 10px;
border-radius: 10px;
object-fit: cover;
display: inline-block;
display: block;
cursor: pointer;
}
}

View File

@@ -19,7 +19,7 @@ axios.interceptors.request.use(
if (config.url != "/tenement/pc/api/user/operation" && !noMask) showFullScreenLoading();
// 开发时登录用的,可以直接替换小程序的 authorization
if (process.env.NODE_ENV !== "production") {
const miucms_session = "01346a38444d71aaadb3adad52b52c39";
const miucms_session = "c75851401db4f86ede8f2547da72d7a5";
document.cookie = "miucms_session=" + miucms_session;
config["headers"]["authorization"] = miucms_session;
}

View File

@@ -80,10 +80,26 @@ onMounted(() => {
window.addEventListener("beforeunload", endChat);
window.addEventListener("scroll", handleScrollToTop);
removeElements();
});
const removeElements = () => {
// 处理footer
const header = document.querySelector("header.page-header");
if (header) header.style.display = "none";
// 处理footer
const footer = document.querySelector("section.index-footer");
if (footer) footer.style.display = "none";
// 处理侧边栏
const side = document.querySelector(".left-side-bar1");
if (side) side.style.display = "none";
// 只要有一个元素未找到,就继续定时检查
if (!header || !footer || !side) setTimeout(removeElements, 200);
};
onBeforeUnmount(() => {
// 移除高度监听
if (resizeObserver) {