From 432db5b0e9141c80534e0a6b6bb98c57cf26ac34 Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Fri, 15 Oct 2021 11:44:17 +0800 Subject: [PATCH] no message --- pages/moment/moment-item/index.wxml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) 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 '- -'