fix: youhua

This commit is contained in:
zzc
2026-02-05 15:15:08 +08:00
parent 82b3d7a36d
commit 1867d5aa55
3 changed files with 37 additions and 3 deletions

25
src/utils/blessing.js Normal file
View File

@@ -0,0 +1,25 @@
/**
* 根据场景值获取场景名称
* @param {string} scene - 场景值
* @returns {string} - 场景名称
*/
const sceneMap = {
card_generate: '祝福卡片',
fortune_draw: '抽签',
wallpaper_download: '壁纸',
avatar_download: '头像',
card_generate_index: '祝福卡片分享首页',
fortune_draw_index: '抽签分享首页',
wallpaper_download_index: '壁纸分享首页',
avatar_download_index: '头像分享首页',
index: '分享首页',
mine: '我的页面分享',
}
export function getSceneName(scene) {
return sceneMap[scene] || scene
}
export const getThumbUrl = (url) => {
return `${url}?imageView2/1/w/340/h/600/q/80`
}