纸通宝小程序
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.
 

66 lines
5.1 KiB

<!--pages/main/index.wxml-->
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">全部纸厂</view>
</cu-custom>
<view style="width:100%;height:15rpx;"></view>
<view class="zt">
<view class="flex flex-justify" style="width:100%;height:80rpx;lineheight:80rpx;font-size: 28px;color: rgba(0,0,0,0.65);letter-spacing: 0;padding: 0rpx 40rpx 0rpx 40rpx;">
<view class="text-df text-gray" style="flex:1.2;overflow: hidden;">纸厂名称</view>
<view class="text-df text-gray" style="flex:1;text-align: center" bindtap="changeSort">价格涨跌<image style="width:30rpx;height:30rpx" src="{{pximg}}"></image>
</view>
<view class="text-df text-gray" style="flex:1;text-align: center">纸厂排队</view>
<view class="text-df text-gray" style="flex:1;text-align: center">最近扣点</view>
<view class="text-df text-gray" style="flex:0.5;text-align: center">更多</view>
</view>
<scroll-view scroll-y="true" style='max-height:1050rpx;width:100%;background-color:white'>
<view class="img-nodata" style="height:{{height}}rpx" wx:if="{{!orderList.length}}">
<view class="load-spinner text-gray" style="margin-bottom:24px" wx:if="{{loading}}" />
<image class="onDataImg" src="/assets/info/noData.png" wx:else></image>
<view style="font-family: PingFangSC-Medium;font-size: 40rpx;color: #000000;letter-spacing: 0;text-align: left;margin-top:30rpx">{{loading? '正在加载' : '暂无关注'}}</view>
<view class="top-nodata-text1">可前往纸厂列表添加关注</view>
<view class="top-nodata-text2" id="toAttentionFactory" bindtap="toPage">添加关注</view>
</view>
<!-- <view class="bg-white" wx:else> -->
<view class="bg-white">
<view wx:for="{{orderList}}" wx:key="index" class="tableStyle">
<view class="flex flex-justify" style="border-top:2rpx solid #f3f3f3;margin-top:20rpx;padding: 0rpx 40rpx 0rpx 40rpx;">
<!-- <text class="text-df text-balck" style="flex:1;text-align: center">{{item.yesterdayTotalQuantity || 0}}%</text> -->
<view class="text-df text-balck" style="flex:1.2">{{item.name}}</view>
<view class="text-df {{item.biggestFloatPrice>0?'text-red':(item.biggestFloatPrice<0?'text-green':'text-black')}}" style="flex:1;text-align: center">{{item.biggestFloatPrice*1000||0}} </view>
<view class="text-df text-balck" style="flex:1;text-align: center">{{item.yesterdayRetainedQuantity || 0}}辆</view>
<view class="text-df text-balck" style="flex:1;text-align: center">{{item.minimumDeductionPoint || 0}}%</view>
<view class="text-df text-balck" style="flex:0.5;text-align: center" id="{{item.paperMillid}}" bindtap="changeTable" wx:if="{{tableSgin==item.paperMillid}}">
<image style="width:28rpx;height:28rpx;" src="/assets/info/factoryUp.png"></image>
</view>
<view class="text-df text-balck" style="flex:0.5;text-align: center" id="{{item.paperMillid}}" bindtap="changeTable" wx:if="{{tableSgin !== item.paperMillid}}">
<image style="width:28rpx;height:28rpx;" src="/assets/info/factoryDown.png"></image>
</view>
</view>
<view wx:if="{{tableSgin==item.paperMillid}}" style="width:100%;background-color:#f3f3f3;padding-left:10rpx;padding:10rpx 24rpx 15rpx 24rpx">
<view class="flex flex-justify" style="">
<view class="text-df text-gray" style="flex:1;text-align: center">品类</view>
<view class="text-df text-gray" style="flex:1;text-align: center">价格</view>
<view class="text-df text-gray" style="flex:1;text-align: center">涨跌</view>
<view class="text-df text-gray" style="flex:1;text-align: center">最近扣点</view>
<view class="text-df text-gray" style="flex:1;text-align: center">操作</view>
</view>
<view class="flex flex-justify" style="margin-top:20rpx" wx:for="{{ item.paperCategoryList }}" wx:for-item="cell" wx:key="cell.categoryId" style="background-color:white;margin-top:10rpx">
<view class="text-df {{cell.categoryName>0?'text-red':(cell.categoryName<0?'text-green':'text-black')}}" style="flex:1;text-align: center">{{cell.categoryName|| '---'}}</view>
<view class="text-df {{cell.unitPrice>0?'text-red':(cell.unitPrice<0?'text-green':'text-black')}}" style="flex:1;text-align: center" style="flex:1;text-align: center">{{cell.unitPrice*1000|| 0}}</view>
<view class="text-df {{cell.floatPrice>0?'text-red':(cell.floatPrice<0?'text-green':'text-black')}}" style="flex:1;text-align: center" style="flex:1;text-align: center">{{cell.floatPrice*1000|| 0}}</view>
<view class="text-df {{cell.curDeductionPoint>0?'text-red':(cell.curDeductionPoint<0?'text-green':'text-black')}}" style="flex:1;text-align: center" style="flex:1;text-align: center">{{cell.curDeductionPoint|| 0}}</view>
<view class="text-df text-balck" style="flex:1;text-align: center">
<view class="son-table-btn">代卖</view>
</view>
</view>
</view>
</view>
</view>
</scroll-view>
<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>