fix: H5 路由与资源 base 设为 /h5/——修复公网 /h5/ 入口白屏(资源404)

This commit is contained in:
Hermes Agent
2026-09-15 20:00:09 +08:00
parent 1e8a0aeead
commit 62fb40e415
2 changed files with 22 additions and 2 deletions
+7 -1
View File
@@ -21,5 +21,11 @@
"darkmode": true,
"themeLocation": "theme.json"
},
"app-plus": {}
"app-plus": {},
"h5": {
"router": {
"mode": "hash",
"base": "/h5/"
}
}
}
+15 -1
View File
@@ -108,7 +108,10 @@
<!-- 页脚:公司信息 / 联系客服 -->
<view class="foot">
<image class="foot-qr" src="/static/yzr/kefu.png" mode="widthFix" show-menu-by-longpress @click="previewKefu" />
<text class="foot-tip">微信客服 · 长按识别二维码</text>
<text class="foot-tip">微信客服 · 长按识别二维码,或点下方按钮直接联系</text>
<!-- #ifdef MP-WEIXIN -->
<button class="foot-contact" open-type="contact" session-from="profile-footer">💬 在线联系客服</button>
<!-- #endif -->
<text class="foot-line">联系邮箱:contact@yuzhiran.com</text>
<text class="foot-line">北京宇之然科技中心 · © 2026</text>
<!-- #ifdef H5 -->
@@ -713,6 +716,17 @@ onShareTimeline(() => ({
}
.foot-qr { width: 120px; border-radius: 8px; background: #fff; }
.foot-tip { font-size: 11px; color: var(--text-muted, #b6bac9); }
.foot-contact {
margin-top: 4px;
font-size: 13px;
color: #6366f1;
background: var(--color-brand-bg, #f0f0ff);
border-radius: 999px;
padding: 0 18px;
height: 32px;
line-height: 32px;
}
.foot-contact::after { border: none; }
.foot-line { font-size: 11px; color: var(--text-muted, #b6bac9); }
.foot-link { font-size: 11px; color: var(--text-tertiary, #9aa0b4); text-decoration: none; }
.balance-actions { display: flex; gap: 8px; }