diff --git a/pages/article/newInfo/index.wxml b/pages/article/newInfo/index.wxml index 6bdd558..75e4e2c 100644 --- a/pages/article/newInfo/index.wxml +++ b/pages/article/newInfo/index.wxml @@ -70,9 +70,8 @@ - {{formate.formateDescripe(item.minimumDeductionPoint)}} + + {{formate.formateDescripe(item.minimumDeductionPoint)}} {{formate.substring(item.priceDate, 0, 10)}} @@ -107,11 +106,11 @@ {{cell.floatPrice>0?'+':''}}{{formate.formatePrice(cell.floatPrice)}} - + {{formate.formateDescripe(cell.curDeductionPoint)}} + data-fcId="{{item.paperMillId}}" data-paperId="{{cell.categoryId}}" + data-operations="{{item.isOperations}}" data-msg="{{item.manageNotifyMessage}}" catchtap="toPage"> 代卖 @@ -146,7 +145,9 @@ - + + @@ -162,9 +163,14 @@ var newString = function (string) { - var newString = string.substring(0, 5) + if (string.length > 4) { + var newString = string.substring(0, 4) + + return newString + '...'; + }else{ + return string + } - return newString + '...'; } module.exports.newString = newString;