diff --git a/pages/moment/moment-item/index.wxml b/pages/moment/moment-item/index.wxml
index ec99bc2..e47caf4 100644
--- a/pages/moment/moment-item/index.wxml
+++ b/pages/moment/moment-item/index.wxml
@@ -41,16 +41,16 @@
(最近7天)
-
- {{item.categoryName}}
+
+ {{element.categoryName}}
- {{formate.formatePrice(item.quotedPrice, 0)}}
-
+ {{formate.formatePrice(element.quotedPrice, 0)}}
+
- {{stringUtil.roundPrice(item.floatingQuotedPrice)}}
- {{stringUtil.precent(item.averageDeductionPoints)}}
+ {{stringUtil.roundPrice(element.floatingQuotedPrice)}}
+ {{stringUtil.precent(element.averageDeductionPoints)}}
- 代卖
+ 代卖
@@ -58,13 +58,19 @@
var queue = function(val) {
- if(val > 0){
+ if(val === null){
+ return '- -'
+ }
+ if(val >= 0){
return val + '辆'
}
return '- -'
}
var precent = function(val) {
- if(val > 0){
+ if(val === null){
+ return '- -'
+ }
+ if(val >= 0){
return val + '%'
}
return '- -'