|
|
|
@ -29,7 +29,7 @@ |
|
|
|
<view class="flex flex-justify" style="border-top:2rpx solid #f3f3f3;padding: 0rpx 32rpx;" id="toFactoryDetails" |
|
|
|
data-factoryId="{{item.paperMillId}}" catchtap="toPage"> |
|
|
|
<view class="text-df text-balck" style="flex:1"> |
|
|
|
{{item.shortName}} |
|
|
|
{{m2.newString(item.shortName)}} |
|
|
|
<view wx:if="{{item.hasFollowed==true}}" class="yesAttention">已关注</view> |
|
|
|
<view wx:if="{{item.hasFollowed==false}}" class="noAttention">未关注</view> |
|
|
|
</view> |
|
|
|
@ -92,4 +92,17 @@ |
|
|
|
<!-- <view class="gzBtn" id="toAttentionPaperFctory" bindtap="toPage"> |
|
|
|
<view class="gzBtnIcon"><image style="width:36rpx;height:36rpx" src="/assets/info/addgzicon.png"></image></view> |
|
|
|
<view class="gzBtnText">关注纸厂</view> |
|
|
|
</view> --> |
|
|
|
</view> --> |
|
|
|
<wxs module="m2"> |
|
|
|
var newString = function (string) { |
|
|
|
if (string.length > 4) { |
|
|
|
var newString = string.substring(0, 4) |
|
|
|
|
|
|
|
return newString + '...'; |
|
|
|
}else{ |
|
|
|
return string |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
module.exports.newString = newString; |
|
|
|
</wxs> |