index.wxs 204 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 var priceFilter = function (num) { // 处理金额分转元并补零 var pow = Math.pow(10, 2) return (Math.round(num / 100 * pow) / pow).toFixed(2) } module.exports = { priceFilter: priceFilter }