Merge branch 'dev' of ssh://git.online.zzfzyc.com:10022/mp/EShop into 样式对比

This commit is contained in:
Haiyi
2022-06-28 20:14:32 +08:00
9 changed files with 91 additions and 35 deletions
+3 -2
View File
@@ -139,10 +139,11 @@ export const toDecimal2 = (x) => {
/**
* 格式化图片路径
* @param {*} url
* @status true|false
* @returns
*/
export const formatImgUrl = (url, suffix="!w200") => {
return url?IMG_CND_Prefix + url + suffix:IMG_CND_Prefix +'/mall/no_img.png'
export const formatImgUrl = (url, status = false ,suffix="!w200") => {
return url? (status?IMG_CND_Prefix:'') +url + suffix:IMG_CND_Prefix +'/mall/no_img.png'
}
/**