商品详情:评论列表

This commit is contained in:
YunaiV
2023-12-10 17:25:15 +08:00
parent e3264329e7
commit 0e189711a8
7 changed files with 259 additions and 242 deletions
+10
View File
@@ -157,6 +157,16 @@ function getDayjsTime(time) {
}
}
/**
* 将分转成元
*
* @param price 分,例如说 100 分
* @returns {string} 元,例如说 1.00 元
*/
export function fen2yuan(price) {
return (price / 100.0).toFixed(2)
}
/**
* 从商品 SKU 数组中,转换出商品属性的数组
*