mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-11-13 22:11:42 +08:00
feat: 联系博主页对接博主介绍/社交动态列表,下线友链提交页
- contact.vue:博主介绍(intro 富文本)用 mp-html 完整配置渲染(domain/loading-img/ tag-style/container-style/markdown,对齐 moments/文章详情);社交信息改读 authorConfig.social.items 动态列表(priority 排序、visible 过滤、未配置空态、 不回退默认值),去 enabled 开关;收信日期改 formatTime 实时显示 - about.vue:社交入口判定改按社交项列表(存在可见且有内容即展示) - 友链提交功能调整:submit-link 页面下线,mini-info/site-info 与提交开关 (submissionEnabled)随插件端新结构对接 Co-Authored-By: AtomCode (deepseek-v4-flash) <noreply@atomgit.com>
This commit is contained in:
@@ -24,18 +24,20 @@ const emit = defineEmits<{
|
||||
const isShow = ref(false)
|
||||
const appConfigStore = useAppConfigStore()
|
||||
|
||||
/** 小程序申请信息(字段与 uh-links-mini-apply 表单一致;小程序信息读 linkInfo.miniInfo、作者信息读 linkInfo.authorInfo,字段名无映射) */
|
||||
/** 小程序申请信息(字段与 uh-links-mini-apply 表单一致;小程序信息读 linkInfo.miniInfo;
|
||||
* 作者信息 2026-09-10 起改读应用设置-博主资料 authorConfig.blogger(linkInfo.authorInfo 已下线),字段名无映射) */
|
||||
const miniInfo = computed(() => {
|
||||
const miniCfg = (appConfigStore.configs.pluginConfig?.linkInfo?.miniInfo || {}) as Record<string, unknown>
|
||||
const authorCfg = (appConfigStore.configs.pluginConfig?.linkInfo?.authorInfo || {}) as Record<string, unknown>
|
||||
const blogger = (appConfigStore.configs.authorConfig?.blogger || {}) as Record<string, unknown>
|
||||
const str = (cfg: Record<string, unknown>, key: string, fallback = '') => String(cfg[key] || fallback || '')
|
||||
return {
|
||||
displayName: str(miniCfg, 'displayName'),
|
||||
miniProgramCode: str(miniCfg, 'miniProgramCode'),
|
||||
link: str(miniCfg, 'link'),
|
||||
authorName: str(authorCfg, 'authorName'),
|
||||
avatar: str(authorCfg, 'avatar'),
|
||||
website: str(authorCfg, 'website'),
|
||||
// 作者信息:博主资料 nickname/avatar/website(官网地址 2026-09-10 新增)
|
||||
authorName: str(blogger, 'nickname'),
|
||||
avatar: str(blogger, 'avatar'),
|
||||
website: str(blogger, 'website'),
|
||||
description: str(miniCfg, 'description'),
|
||||
applyRemark: str(miniCfg, 'applyRemark'),
|
||||
email: str(miniCfg, 'email'),
|
||||
|
||||
@@ -26,7 +26,6 @@ const blogDetail = computed(() => (appConfigStore.configs.pluginConfig?.linkInfo
|
||||
url?: string
|
||||
logo?: string
|
||||
description?: string
|
||||
email?: string
|
||||
backlink?: string
|
||||
feedUrls?: string[]
|
||||
} | undefined) || {})
|
||||
|
||||
Reference in New Issue
Block a user