refactor: 全量代码优化与品牌视觉统一

- 移除冗余的引导页逻辑与代码
- 优化多处代码写法:简化箭头函数、清理无用注释、修复类型兼容问题
- 统一暗色模式全局样式与用户信息卡视觉风格
- 完善小程序配置与水印开关容错处理
- 更新自动导入类型声明
This commit is contained in:
zhangtao
2026-08-06 00:37:14 +08:00
parent ffbe2453f2
commit 5ff25fe28c
15 changed files with 218 additions and 384 deletions
+1 -3
View File
@@ -41,10 +41,8 @@ export function useShare(configOrGetter?: ShareConfig | (() => ShareConfig)) {
return { ...DEFAULT_SHARE }
}
onShareAppMessage((options) => {
onShareAppMessage(() => {
const cfg = getConfig()
// 从分享来源判断:如果是按钮分享,可携带额外参数
const fromButton = options?.from === 'button'
return {
title: cfg.title,
path: cfg.path || DEFAULT_SHARE.path,
@@ -220,7 +220,7 @@ export function useSharePoster() {
height: H,
destWidth: W * 2,
destHeight: H * 2,
success: (res) => resolve(res.tempFilePath),
success: res => resolve(res.tempFilePath),
fail: () => resolve(''),
})
}, 200)
@@ -107,7 +107,7 @@ export function useSubscribeMessage() {
// #ifdef MP-WEIXIN
try {
const settings = await uni.getSetting({})
const subscription = (settings as any).authSetting?.['subscribeMessage']
const subscription = (settings as any).authSetting?.subscribeMessage
// 如果用户曾经拒绝过,引导去设置页开启
if (subscription === false) {
uni.showModal({