fix(site): 修复解忧站点图标
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 7.0 KiB |
@@ -0,0 +1,8 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-labelledby="title desc">
|
||||
<title id="title">解忧商行印章</title>
|
||||
<desc id="desc">解忧商行方形朱砂印章</desc>
|
||||
<rect x="2" y="2" width="60" height="60" rx="8" fill="#A64332"/>
|
||||
<rect x="7" y="7" width="50" height="50" rx="3" fill="none" stroke="#ECD0B1" stroke-width="1.4"/>
|
||||
<text x="32" y="31" text-anchor="middle" font-family="'Noto Serif SC','Source Han Serif SC','Songti SC',serif" font-size="20" font-weight="700" fill="#FFFDF8">解</text>
|
||||
<text x="32" y="52" text-anchor="middle" font-family="'Noto Serif SC','Source Han Serif SC','Songti SC',serif" font-size="20" font-weight="700" fill="#FFFDF8">忧</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 722 B |
@@ -0,0 +1,24 @@
|
||||
/* global document, URLSearchParams, window */
|
||||
|
||||
(() => {
|
||||
const host = window.location.hostname.toLowerCase()
|
||||
const params = new URLSearchParams(window.location.search)
|
||||
const tenantHint = (params.get('tenant_code') || params.get('tenant') || '').toLowerCase()
|
||||
const isJieyou =
|
||||
host === 'zuhaox.com' ||
|
||||
host.endsWith('.zuhaox.com') ||
|
||||
host.startsWith('jieyou.') ||
|
||||
tenantHint === 'jieyou'
|
||||
if (!isJieyou) return
|
||||
|
||||
document.title = '解忧商行 - 官方租号平台'
|
||||
const icon = document.getElementById('site-icon')
|
||||
if (icon) {
|
||||
icon.href = '/jieyou-favicon.svg'
|
||||
icon.type = 'image/svg+xml'
|
||||
}
|
||||
const appleIcon = document.getElementById('site-apple-touch-icon')
|
||||
if (appleIcon) {
|
||||
appleIcon.href = '/jieyou-apple-touch-icon.png'
|
||||
}
|
||||
})()
|
||||
Reference in New Issue
Block a user