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.
57 lines
3.8 KiB
57 lines
3.8 KiB
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
|
|
<wxs module="moment" src="../../moment/index.wxs"></wxs>
|
|
<view class="item-tips" wx:if="{{item.tipsTime}}">{{moment.formateDate(item.tipsTime)}}</view>
|
|
<view class="bg-white flex flex-justify" style="padding:18rpx 24rpx">
|
|
<view style="width: 20%;" bindtap="lookItem">
|
|
<view class="text-df text-black text-cut" style="text-align: center;">{{item.shortName}}</view>
|
|
<!-- <view class="attention-bg" bindtap="onAttentionChange">
|
|
<text class="{{item.hasFollowed ? 'text-blue' : 'text-red'}}">{{item.hasFollowed ? '关注' : '已关注'}}</text>
|
|
</view> -->
|
|
<wux-button outline type="{{item.hasFollowed ? 'positive' : 'stable'}}" loading="{{loading}}" size="attention" bind:click="attention">{{loading ? '' : item.hasFollowed ? '已关注' : '点击关注'}}</wux-button>
|
|
</view>
|
|
<view style="width: 40%;" bindtap="lookItem">
|
|
<view class="flex flex-center">
|
|
<text class="text-lg {{moment.colorText(item.typicalFloatingQuotedPrice)}}">{{formate.formatePrice(item.typicalFloatingQuotedPrice, 0) || '- -'}}</text>
|
|
<image class="float-image" src="{{moment.floatImage(item.typicalFloatingQuotedPrice)}}" wx:if="{{moment.checkPrice(item.typicalFloatingQuotedPrice)}}"></image>
|
|
</view>
|
|
<view class="text-gray text-sm" style="margin-top: 4rpx;text-align: center">更新时间:{{moment.formateText(item.latestQuoteTime, 10)}}</view>
|
|
</view>
|
|
<view class="text-black" style="flex: 1;text-align: center;" bindtap="lookItem">{{item.retainedReceivedQuantity || '- -'}}</view>
|
|
<view style="flex: 1;text-align: center" bindtap="lookItem">{{item.startDeductionPoints || '- -'}}</view>
|
|
<text class="cuIcon-triangle{{unflod ? 'upfill': 'downfill'}}" style="font-size:48rpx;padding-top: 4rpx;color: #ccc;" bindtap="onFlodTap"></text>
|
|
</view>
|
|
<view style="display: {{ unflod ? 'block' : 'none'}};padding:16rpx 24rpx;">
|
|
<view class="list-empty" style="height:240rpx" wx:if="{{requesting}}">
|
|
<view class="load-spinner text-gray" />
|
|
</view>
|
|
<view class="list-empty" style="height:240rpx" catchtap="fetchItemList" wx:elif="{{!requesting && !itemList.length}}">
|
|
<!-- <image class="img-empty" src="/assets/image/list_empty.png"></image> -->
|
|
<view class="text-empty">暂无数据,点击刷新</view>
|
|
</view>
|
|
<view wx:else>
|
|
<view class="flex" style="padding-bottom: 16rpx;">
|
|
<view style="width: 25%;padding-left: 32rpx;">品类</view>
|
|
<view style="width: 25%;text-align: center">
|
|
<text class="text-df" style="color: #555555;">价格</text>
|
|
<text style="color: #555555;font-size: 20rpx;">(元/吨)</text>
|
|
</view>
|
|
<view style="width: 20%;text-align: center;padding-left: 8rpx;">涨跌</view>
|
|
<view style="width: 30%;">
|
|
<text class="text-df" style="color: #555555;">平均扣点</text>
|
|
<text style="color: #555555;font-size: 20rpx;">(最近7天)</text>
|
|
</view>
|
|
</view>
|
|
<view class="flex flex-center bg-white item-content" wx:for="{{itemList}}" wx:key="index">
|
|
<view class="text-df text-black" style="width: 20%;">{{item.categoryName}}</view>
|
|
<view class="flex flex-center" style="width: 30%;">
|
|
<text class="text-lg {{moment.colorText(item.floatingQuotedPrice)}}">{{formate.formatePrice(item.quotedPrice, 0) || '- -'}}</text>
|
|
<image class="float-image" src="{{moment.floatImage(item.floatingQuotedPrice)}}" wx:if="{{moment.checkPrice(item.floatingQuotedPrice)}}"></image>
|
|
</view>
|
|
<view class="text-df text-center {{moment.colorText(item.floatingQuotedPrice)}}" style="width: 20%;">{{item.floatingQuotedPrice || '- -'}}</view>
|
|
<view class="text-df text-black text-center" style="width: 10%;">{{item.averageDeductionPoints || '- -'}}</view>
|
|
<view class="flex flex-center" style="width: 20%;align-items: flex-end">
|
|
<wux-button outline round type="positive" size="cate" data-index="{{index}}" bind:click="agentOrder">代卖</wux-button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|