|
|
|
@ -3,7 +3,7 @@ |
|
|
|
<view class="item-tips" wx:if="{{item.tipsTime}}">{{moment.formateDate(item.tipsTime)}}</view> |
|
|
|
<view class="bg-white flex flex-justify" style="padding:18rpx 32rpx" bindtap="lookItem"> |
|
|
|
<view style="width: 30%;" > |
|
|
|
<highlight-text content="{{item.shortName}}" keyword="{{keyword}}" class="text-df text-black text-cut"/> |
|
|
|
<highlight-text content="{{stringUtil.shortName(item.shortName)}}" keyword="{{keyword}}" class="text-df text-black text-cut"/> |
|
|
|
<view class="{{item.hasFollowed ? 'attention-bg' : 'attention-unbg'}}" catchtap="attention"> |
|
|
|
<text>{{item.hasFollowed ? '已关注' : '点击关注'}}</text> |
|
|
|
</view> |
|
|
|
@ -83,7 +83,14 @@ |
|
|
|
} |
|
|
|
return '- -' |
|
|
|
} |
|
|
|
var shortName = function(val){ |
|
|
|
if(val.length > 4){ |
|
|
|
return val.substring(0, 4) + '...' |
|
|
|
} |
|
|
|
return val |
|
|
|
} |
|
|
|
module.exports.queue = queue; |
|
|
|
module.exports.shortName = shortName; |
|
|
|
module.exports.precent = precent; |
|
|
|
module.exports.roundPrice = roundPrice; |
|
|
|
</wxs> |