Files
xk-doctor-wx/utils/staticOss.js
李琦 158ffd9e6e feat: 完善公账锁店流程,静态图改走 OSS
强化公账锁店页与首页横幅入口,支持声明已支付与催办;
代付二维码与 base64 工具抽到公共组件;本地 static 大图改为 OSS 引用。
2026-08-21 12:52:09 +08:00

14 lines
459 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 医生端业务静态图 OSS 前缀
* tabbar 图标仍走本地 static/image其它图上传后按原相对路径拼接
*/
export const STATIC_OSS = 'https://xiaokang88.oss-cn-hangzhou.aliyuncs.com/xk-doctor-wx/static/'
/**
* 把 static 下相对路径转成 OSS 完整地址
* @param {string} rel 如 image/none.png不要带 /static 前缀)
*/
export function staticOss(rel) {
return STATIC_OSS + String(rel || '').replace(/^\/+/, '')
}