You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
4.3 KiB
76 lines
4.3 KiB
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
|
|
<view style="background-color:#f3f3f3;height:20rpx" wx:if="{{!frist}}"></view>
|
|
<view class="flex flex-justify item-content" bindtap="lookItem">
|
|
<van-image use-loading-slot width="108rpx" height="108rpx" radius="4" lazy-load src="{{item.enterpriseLogo}}">
|
|
<image class="image-load" slot="loading" src="/assets/image/def_image.png"></image>
|
|
</van-image>
|
|
<view style="margin-left:24rpx;flex:1">
|
|
<view class="text-sg text-cut text-bold">{{item.paperMillName}}</view>
|
|
<view class="text-xs text-gray" style="margin-top:4rpx">
|
|
<text>{{item.locDetail}}</text>
|
|
<text class="text-gray" style="margin: 0rpx 8rpx" wx:if="{{item.volumeOfAgentSold > 0}}">|</text>
|
|
<text wx:if="{{item.volumeOfAgentSold > 0}}">已代卖:{{item.volumeOfAgentSold}}吨</text>
|
|
<text class="text-gray" style="margin: 0rpx 8rpx">|</text>
|
|
<text wx:if="{{item.numberOfLinedUpYesterday}}">昨日排队:{{item.numberOfLinedUpYesterday}}辆</text>
|
|
<text wx:else>昨日排队:--</text>
|
|
</view>
|
|
<view class="flex flex-justify text-df" style="margin-top:4rpx">
|
|
<text class="flex" wx:if="{{item.priceOfAgentSold}}">
|
|
<text class="text-black">代卖费:</text>
|
|
<text class="text-red">{{formate.formatePrice(item.priceOfAgentSold)}}</text>
|
|
</text>
|
|
<text class="flex" wx:if="{{item.accountPeriod}}">
|
|
<text class="text-black">纸厂账期:</text>
|
|
<text class="text-red">{{item.accountPeriod}}天</text>
|
|
</text>
|
|
</view>
|
|
</view>
|
|
<text class="cuIcon-right text-gray" style="font-size:18px"></text>
|
|
</view>
|
|
<view class="bg-white" style="padding:0rpx 32rpx 10rpx 32rpx">
|
|
<view class="flex" wx:for-item="cateItem" wx:for-index="ck" wx:for="{{item.agentPaperCategoryList}}" wx:key="ck" wx:if="{{item.fold || ck < 3}}" style="margin-bottom: 20rpx">
|
|
<view class="item-cate {{cateIndex == ck ? 'cate-tag' : ''}}" data-page="{{pageIndex}}" data-index="{{index}}" data-ck="{{ck}}" catchtap="checkTag">
|
|
<view class="flex flex-justify">
|
|
<view class="text-sg text-black">{{cateItem.displayName}}</view>
|
|
<text class="text-sg text-black" wx:if="{{cateItem.purchasePrice}}">
|
|
<text>{{formate.formatePrice(cateItem.purchasePrice)}}</text>
|
|
</text>
|
|
<text class="text-sg text-gray" wx:else>暂无报价</text>
|
|
</view>
|
|
<view class="flex flex-justify text-xs text-gray" style="margin-top:4rpx">
|
|
<text>价格更新:{{cateItem.informationTime}}</text>
|
|
<view class="flex flex-center" style="padding:6rpx 0rpx" wx:if="{{cateItem.floatingPrice > 0}}">
|
|
<text class="cuIcon-refresharrow text-red transform" style="font-size:24rpx;margin-top:2rpx;"></text>
|
|
<text class="text-red text-xs" style="padding-top:2rpx">{{formate.formatePrice(cateItem.floatingPrice)}}</text>
|
|
<text class="text-xs text-gray" style="margin-left:16rpx">较昨日</text>
|
|
</view>
|
|
<view class="flex flex-center text-df" style="padding:6rpx 0rpx" wx:elif="{{cateItem.floatingPrice < 0}}">
|
|
<text class="cuIcon-refresharrow text-green" style="font-size:24rpx;margin-top:2rpx;"></text>
|
|
<text class="text-green text-xs" style="padding-top:2rpx">{{formate.formatePrice(-cateItem.floatingPrice)}}</text>
|
|
<text class="text-xs text-gray" style="margin-left:16rpx">较昨日</text>
|
|
</view>
|
|
<view class="flex flex-center text-sg" style="margin-left:24rpx" wx:else>
|
|
<text class="text-xl text-gray">-</text>
|
|
<text class="text-xl text-gray" style="margin-left:4rpx">-</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="flex flex-center" style="padding-bottom: 12rpx;" wx:if="{{item.agentPaperCategoryList.length > 3}}" catchtap="unflodItem">
|
|
<view data-page="{{pageIndex}}" data-index="{{index}}">
|
|
<text class="text-blue text-df">{{item.fold ? '点击收起' : '查看全部' }}({{item.agentPaperCategoryList.length}})</text>
|
|
</view>
|
|
<text class="cuIcon-{{item.fold ? 'fold' : 'unfold'}} text-blue" style="font-size:16px;margin-left: 8rpx;padding-top: 10rpx;"></text>
|
|
</view>
|
|
</view>
|
|
|
|
<wxs module="priceItem">
|
|
function priceItem(item) {
|
|
if(item.publicSubsidies && Number(item.publicSubsidies) > 0){
|
|
var price = parseFloat(item.unitPrice) + parseFloat(item.publicSubsidies)
|
|
return (parseFloat(price) * 1000).toFixed(1) + '元/吨'
|
|
}
|
|
return (parseFloat(item.unitPrice) * 1000).toFixed(1) + '元/吨'
|
|
}
|
|
module.exports = priceItem;
|
|
</wxs>
|