|
|
|
@ -1,31 +1,31 @@ |
|
|
|
<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 class="bg-white flex flex-justify" style="padding:18rpx 32rpx"> |
|
|
|
<view style="width: 30%;" > |
|
|
|
<view class="text-df text-black text-cut" bindtap="lookItem">{{item.shortName}}</view> |
|
|
|
<view class="{{item.hasFollowed ? 'attention-bg' : 'attention-unbg'}}" catchtap="attention"> |
|
|
|
<text>{{item.hasFollowed ? '已关注' : '点击关注'}}</text> |
|
|
|
</view> |
|
|
|
</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> |
|
|
|
<view style="width: 30%;" bindtap="lookItem"> |
|
|
|
<view class="flex flex-center" style="justify-content: flex-start"> |
|
|
|
<text class="text-lg text-bold {{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 class="text-gray text-sm" style="margin-top: 4rpx;">调价时间:{{moment.formateTimes(item.latestQuoteTime, 5, 10)}}</view> |
|
|
|
</view> |
|
|
|
<view class="text-black" style="width: 20%;;" bindtap="lookItem">{{stringUtil.queue(item.retainedReceivedQuantity)}}</view> |
|
|
|
<view class="text-black" style="width: 16%;" bindtap="lookItem">{{stringUtil.precent(item.startDeductionPoints)}}</view> |
|
|
|
<view style="width: 48rpx;" bindtap="onFlodTap"> |
|
|
|
<text class="cuIcon-triangle{{unflod ? 'upfill': 'downfill'}} text-gray" style="font-size:48rpx;"></text> |
|
|
|
</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> |
|
|
|
@ -54,4 +54,21 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<wxs module="stringUtil"> |
|
|
|
var queue = function(val) { |
|
|
|
if(val > 0){ |
|
|
|
return val + '辆' |
|
|
|
} |
|
|
|
return '- -' |
|
|
|
} |
|
|
|
var precent = function(val) { |
|
|
|
if(val > 0){ |
|
|
|
return (val * 100) + '%' |
|
|
|
} |
|
|
|
return '- -' |
|
|
|
} |
|
|
|
module.exports.queue = queue; |
|
|
|
module.exports.precent = precent; |
|
|
|
</wxs> |