function formatDate(time) {
var timeTemp = getDate(time);
var timeString = timeTemp.toLocaleDateString() + timeTemp.toLocaleTimeString();
return timeString.replace('/','-').replace('/','-').replace('上午',' ').replace('下午',' ');
}
function parseDouble(number) {
return parseFloat(number).toFixed(2);
}
module.exports.formatDate = formatDate;
module.exports.parseDouble = parseDouble;
{{ item.description }}
{{wxs.formatDate(item.gmtCreated)}}
+
{{ wxs.parseDouble(item.price / 100) }}
-
{{ wxs.parseDouble(item.price / 100) }}