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

162 lines
8.7 KiB

<!--pages/main/index.wxml-->
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
<view style="background-image: linear-gradient(127deg, rgba(0,122,255,0.67) 0%, rgba(13,100,227,0.95) 100%);">
<view class="cu-custom" style="height:{{CustomBar}}px;z-index: 99">
<view class="cu-bar fixed " style="height:{{CustomBar}}px;padding-top:{{StatusBar}}rpx;border-bottom:none">
<view class="content" style="top:{{StatusBar}}rpx;color:black;font-size:36rpx">
</view>
<view class="topLeftText flex" style="margin-top:15rpx">
<view>纸厂情报</view>
<view class="topRightText" style="margin-left:24rpx" id="toAllFactory" bindtap="toPage">全部纸厂></view>
</view>
</view>
</view>
<view class="flex flex-justify" style="width:100%;height:80rpx;background-color:#F4F4F4;" class="topTitle">
<view class="topLeft flex flex-center">
<picker mode="date" value="{{curDate}}" start="2015-09-01" end="2099-09-01" bindchange="curDateChange">
<view class="piker">
{{curDate}}
<view style="width:16rpx;height:80rpx; display: flex;align-items: center;float: right;margin-left:10rpx">
<image style="width:16rpx;height:16rpx" src="/assets/info/timeDown.png"></image>
</view>
</view>
</picker>
</view>
<view style="color:rgba(0,0,0,0.40);" id='tofeedback' bindtap="toPage">
<view class="topRight-icon">
<image style="width:31.3rpx;height:32.4rpx" src="/assets/info/feedback.png"></image>
</view>
<view class="topRight-text">反馈情报
</view>
</view>
</view>
</view>
<scroll-view scroll-y="true" style='max-height:{{scorllHeight-80}}rpx;width:100%;background-color:white'>
<view class="zt">
<view class="flex flex-justify"
style="width:100%;height:80rpx;font-size: 28px;color: rgba(0,0,0,0.65);letter-spacing: 0;padding: 0rpx 32rpx;">
<view class="text-df text-gray" style="flex:1;overflow: hidden;">纸厂名称</view>
<view class="text-df text-gray" style="flex:1;text-align: center" bindtap="changeSort">
<text>价格涨跌</text>
<image style="width:24rpx;height:24rpx" src="{{pximg}}"></image>
</view>
<view class="text-df text-gray" style="flex:0.8;text-align: center">纸厂排队</view>
<view class="text-df text-gray" style="flex:1;text-align: center">最近扣点</view>
</view>
<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 wx:if="{{loading==false}}" class="top-nodata-text2" id="toAttentionFactory" bindtap="toPage">添加关注</view>
</view>
<view class="bg-white">
<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"
data-factoryId="{{item.paperMillId}}" catchtap="toPage">
<view class="text-df text-balck" style="flex:1">{{item.shortName}}</view>
<view
class="text-df {{item.biggestFloatPrice>0?'text-red':(item.biggestFloatPrice<0?'text-green':'text-black')}}"
style="flex:1">
<text style="margin-left:40rpx">{{ formate.formateDrice(item.unitPrice)}}</text><text
style="font-size: 32rpx;">{{item.biggestFloatPrice>0?'↑':(item.biggestFloatPrice<0?'↓':'')}}</text>
<text wx:if="{{item.biggestFloatPrice != 0}}"
style="margin-left: 12rpx;font-size:24rpx">{{ item.biggestFloatPrice > 0 ? '+' : '' }}{{ formate.formateDrice(item.biggestFloatPrice)}}</text>
</view>
<view class="text-df text-balck" style="flex:0.8;text-align: center">{{item.yesterdayTotalQuantity || 0}}辆
</view>
<view class="flex flex-center text-df text-balck" style="flex:1;text-align: center">
<view style="flex:1.5;text-align: center">
<view
class="text-df text-balck"
style="line-height:32rpx">{{formate.formateDescripe(item.minimumDeductionPoint)}}</view>
<view class="text-gray " style="font-size:24rpx;line-height:32rpx">
{{formate.substring(item.priceDate, 0, 10)}}</view>
</view>
<view class="text-df text-balck" style="flex:0.5;text-align: center" id="{{item.paperMillId}}"
catchtap="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}}"
catchtap="changeTable" wx:if="{{tableSgin !== item.paperMillId}}">
<image style="width:28rpx;height:28rpx;" src="/assets/info/factoryDown.png"></image>
</view>
</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="index" 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.floatPrice>0?'text-red':(cell.floatPrice<0?'text-green':'text-black')}}"
style="flex:1;text-align: center" style="flex:1;text-align: center">
{{formate.formatePrice(cell.unitPrice)}}<text
style="font-size:32rpx">{{cell.floatPrice>0?'↑':(cell.floatPrice<0?'↓':'')}}</text></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;font-size:24rpx">
{{cell.floatPrice>0?'+':''}}{{formate.formatePrice(cell.floatPrice)}}</view>
<view class="text-df text-balck"
style="flex:1;text-align: center" style="flex:1;text-align: center">
{{formate.formateDescripe(cell.curDeductionPoint)}}</view>
<view class="text-df text-balck" style="flex:1;text-align: center" id="toDmai"
data-fcId="{{item.paperMillId}}" data-paperId="{{cell.categoryId}}" catchtap="toPage">
<view class="son-table-btn">代卖</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view style="width:100%;height:10rpx;background-color:#f3f3f3"></view>
<view class="midTietle">
<view class="midTietleText1">行业情报</view>
<view class="midTietleText2" id="toqb" bindtap="toPage">更多资讯></view>
</view>
<view style="width:100%;height:2rpx;background-color:#f3f3f3"></view>
<!-- background-image:url(https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png); -->
<view class="bottomView" wx:for="{{factoryList}}" wx:key="index" id="{{item.id}}" bindtap="toPageDetails">
<view class="bottomViewleft">
<view class="bottomViewleft-top">
<view style="height:41rpx;line-height:41rpx;font-size: 24rpx;color: #007AFF;">
<wux-tag id="{{item.millPaperId}}" catchtap="toMill" wx:if="{{item.millPaperName}}">
<text>#</text>
<text class="text-df" style="margin-left:10rpx">{{m1.newString(item.millPaperName)}}</text>
</wux-tag>
<text style="font-size: 32rpx;color:black;margin-left:16rpx">{{item.title}}</text>
</view>
</view>
<view class="bottomViewleft-bottem"
style="font-family: PingFangSC-Regular;font-size: 24rpx;color: rgba(0,0,0,0.50);">
<view style="width:140rpx;height:33rpx;float:left;line-height:33rpx;overflow: hidden;">{{item.creatorName}}
</view>
<view style="width:260rpx;height:33rpx;float:right;line-height:33rpx;overflow: hidden;">{{item.updateTime}}
</view>
</view>
</view>
<view class="bottomViewRight">
<image class="bottomViewRightImg" src="{{item.imageUrlList[0]||'https://img.imgdb.cn/item/607664a48322e6675cd68a55.png'}}"></image>
</view>
</view>
</scroll-view>
<wxs module="m1">
var newString = function (string) {
var newString = string.substring(0, 4)
return newString + '...';
}
module.exports.newString = newString;
</wxs>