|
|
@ -57,7 +57,7 @@ |
|
|
<view wx:for="{{orderList}}" wx:key="index" class="tableStyle"> |
|
|
<view wx:for="{{orderList}}" wx:key="index" class="tableStyle"> |
|
|
<view class="flex flex-justify" style="border-top:2rpx solid #f3f3f3;padding: 0rpx 32rpx;" id="toFactoryDetails" |
|
|
<view class="flex flex-justify" style="border-top:2rpx solid #f3f3f3;padding: 0rpx 32rpx;" id="toFactoryDetails" |
|
|
data-factoryId="{{item.paperMillId}}" catchtap="toPage"> |
|
|
data-factoryId="{{item.paperMillId}}" catchtap="toPage"> |
|
|
<view class="text-df text-balck" style="flex:1">{{item.shortName}}</view> |
|
|
|
|
|
|
|
|
<view class="text-df text-balck" style="flex:1">{{m2.newString(item.shortName)}}</view> |
|
|
<view |
|
|
<view |
|
|
class="text-df {{item.biggestFloatPrice>0?'text-red':(item.biggestFloatPrice<0?'text-green':'text-black')}}" |
|
|
class="text-df {{item.biggestFloatPrice>0?'text-red':(item.biggestFloatPrice<0?'text-green':'text-black')}}" |
|
|
style="flex:1"> |
|
|
style="flex:1"> |
|
|
@ -158,5 +158,14 @@ |
|
|
return newString + '...'; |
|
|
return newString + '...'; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
module.exports.newString = newString; |
|
|
|
|
|
</wxs> |
|
|
|
|
|
<wxs module="m2"> |
|
|
|
|
|
var newString = function (string) { |
|
|
|
|
|
var newString = string.substring(0, 10) |
|
|
|
|
|
|
|
|
|
|
|
return newString + '...'; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
module.exports.newString = newString; |
|
|
module.exports.newString = newString; |
|
|
</wxs> |
|
|
</wxs> |