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.
58 lines
3.6 KiB
58 lines
3.6 KiB
<!--pages/moment/price/index.wxml-->
|
|
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
|
|
<cu-custom bgColor="bg-white" isBack="{{true}}">
|
|
<view slot="content">纸厂价格</view>
|
|
</cu-custom>
|
|
|
|
<scroll-view scroll-y style="height: {{height}}rpx;" lower-threshold="200" bindscrolltolower="fetchPapersList">
|
|
<view class="list-empty" style="height:{{height}}rpx" wx:if="{{!orderList.length}}">
|
|
<view wx:if="{{loading}}">
|
|
<view class="load-spinner text-gray" style="margin-bottom:24px" />
|
|
<view class="text-empty">正在加载</view>
|
|
</view>
|
|
<view class="flex flex-center" style="height:90rpx;line-height:90rpx" bindtap="selectMill" wx:else>
|
|
<text class="cuIcon-roundadd text-blue" style="font-size: 16px;"></text>
|
|
<text class="text-blue text-sg" style="margin-left:8rpx">添加纸厂</text>
|
|
</view>
|
|
</view>
|
|
<view wx:else>
|
|
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex">
|
|
<view wx:for="{{pageItem}}" wx:key="index">
|
|
<view style="height:16rpx" wx:if="{{pageIndex != 0 || index != 0 }}"></view>
|
|
<view class="flex flex-center item-content flex-column">
|
|
<view class="text-lg">{{item.name}}</view>
|
|
<view class="text-sm text-gray">(单位:{{kg? '元/KG' : '元/吨'}})</view>
|
|
</view>
|
|
<view class="bg-white" style="padding:0rpx 30rpx 10rpx 30rpx">
|
|
<view class="flex flex-justify" style="padding-bottom:10rpx">
|
|
<text class="text-df text-gray" style="flex:3">品类信息</text>
|
|
<text class="text-df text-gray" style="flex:2;text-align: center">昨日价格</text>
|
|
<text class="text-df text-gray" style="flex:2;text-align: center">今日价格</text>
|
|
<text class="text-df text-gray" style="flex:1.5;text-align: center">涨跌</text>
|
|
</view>
|
|
<view class="flex flex-justify cateItem" wx:for-item="cateItem" wx:for-index="ck" wx:for="{{item.paperCategoryList}}" wx:key="ck">
|
|
<text class="text-sg text-black text-cut" style="flex:3">{{cateItem.categoryName}}</text>
|
|
<text class="text-sg text-black" style="flex:2;text-align: center">{{formate.formatePrice(cateItem.yesterdayUnitPrice, kg)}}</text>
|
|
<text class="text-sg text-black" style="flex:2;text-align: center">{{formate.formatePrice(cateItem.unitPrice, kg)}}</text>
|
|
<view class="flex flex-center" style="flex:1.5" wx:if="{{cateItem.floatingPrice > 0}}">
|
|
<text class="cuIcon-refresharrow text-red transform" style="font-size:28rpx;padding-top:2rpx;"></text>
|
|
<text class="text-red">{{formate.formatePrice(cateItem.floatingPrice, kg)}}</text>
|
|
</view>
|
|
<view class="flex flex-center" style="flex:1.5" wx:elif="{{cateItem.floatingPrice < 0}}">
|
|
<text class="cuIcon-refresharrow text-green" style="font-size:28rpx;padding-top:2rpx;"></text>
|
|
<text class="text-green">{{formate.formatePrice(-cateItem.floatingPrice, kg)}}</text>
|
|
</view>
|
|
<view class="flex flex-center" style="flex:1.5" 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>
|
|
<view class="bg-white flex flex-center" style="height:90rpx;line-height:90rpx;border-top:2rpx solid #eee" bindtap="selectMill">
|
|
<text class="cuIcon-roundadd text-blue" style="font-size: 16px;"></text>
|
|
<text class="text-blue text-sg" style="margin-left:8rpx">添加纸厂</text>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|