|
|
@ -3,22 +3,22 @@ |
|
|
<wxs module="moment" src="../../moment/index.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="item-tips" wx:if="{{item.tipsTime}}">{{moment.formateDate(item.tipsTime)}}</view> |
|
|
<view class="bg-white flex flex-justify" style="padding:18rpx 24rpx"> |
|
|
<view class="bg-white flex flex-justify" style="padding:18rpx 24rpx"> |
|
|
<view style="width: 25%;"> |
|
|
|
|
|
|
|
|
<view style="width: 20%;"> |
|
|
<view class="text-df text-black text-cut" bindtap="lookItem">{{item.shortName}}</view> |
|
|
<view class="text-df text-black text-cut" bindtap="lookItem">{{item.shortName}}</view> |
|
|
<!-- <view class="attention-bg" bindtap="onAttentionChange"> |
|
|
<!-- <view class="attention-bg" bindtap="onAttentionChange"> |
|
|
<text class="{{item.hasFollowed ? 'text-blue' : 'text-red'}}">{{item.hasFollowed ? '关注' : '已关注'}}</text> |
|
|
<text class="{{item.hasFollowed ? 'text-blue' : 'text-red'}}">{{item.hasFollowed ? '关注' : '已关注'}}</text> |
|
|
</view> --> |
|
|
</view> --> |
|
|
<wux-button outline type="{{item.hasFollowed ? 'positive' : 'stable'}}" loading="{{loading}}" size="attention" bind:click="attention">{{loading ? '' : item.hasFollowed ? '已关注' : '点击关注'}}</wux-button> |
|
|
<wux-button outline type="{{item.hasFollowed ? 'positive' : 'stable'}}" loading="{{loading}}" size="attention" bind:click="attention">{{loading ? '' : item.hasFollowed ? '已关注' : '点击关注'}}</wux-button> |
|
|
</view> |
|
|
</view> |
|
|
<view style="width: 35%;"> |
|
|
|
|
|
|
|
|
<view style="width: 40%;"> |
|
|
<view class="flex flex-center"> |
|
|
<view class="flex flex-center"> |
|
|
<text class="text-lg text-red">{{item.typicalFloatingQuotedPrice}}</text> |
|
|
|
|
|
<text class="cuIcon-refresharrow text-red" style="font-size:12px;margin-left: 4rpx;"></text> |
|
|
|
|
|
|
|
|
<text class="text-lg {{moment.colorText(item.typicalFloatingQuotedPrice)}}">{{item.typicalFloatingQuotedPrice || '- -'}}</text> |
|
|
|
|
|
<image style="height: 20rpx;width: 20rpx;margin-left: 4rpx" src="{{moment.floatImage(item.typicalFloatingQuotedPrice)}}" wx:if="{{item.typicalFloatingQuotedPrice !== 0}}"></image> |
|
|
</view> |
|
|
</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;text-align: center">更新时间:{{moment.formateText(item.latestQuoteTime, 10)}}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view style="flex: 1;">{{item.retainedReceivedQuantity || '- -'}}</view> |
|
|
|
|
|
<view style="flex: 1;">{{item.startDeductionPoints}}</view> |
|
|
|
|
|
|
|
|
<view class="text-black" style="flex: 1;text-align: center;">{{item.retainedReceivedQuantity || '- -'}}</view> |
|
|
|
|
|
<view style="flex: 1;text-align: center">{{item.startDeductionPoints || '- -'}}</view> |
|
|
<text class="cuIcon-triangle{{unflod ? 'upfill': 'downfill'}}" style="font-size:48rpx;padding-top: 4rpx;color: #ccc;" bindtap="onFlodTap"></text> |
|
|
<text class="cuIcon-triangle{{unflod ? 'upfill': 'downfill'}}" style="font-size:48rpx;padding-top: 4rpx;color: #ccc;" bindtap="onFlodTap"></text> |
|
|
</view> |
|
|
</view> |
|
|
<view style="display: {{ unflod ? 'block' : 'none'}};padding:16rpx 24rpx;"> |
|
|
<view style="display: {{ unflod ? 'block' : 'none'}};padding:16rpx 24rpx;"> |
|
|
@ -45,40 +45,12 @@ |
|
|
<view class="flex flex-center bg-white item-content" wx:for="{{itemList}}" wx:key="index"> |
|
|
<view class="flex flex-center bg-white item-content" wx:for="{{itemList}}" wx:key="index"> |
|
|
<view class="text-df text-black" style="width: 25%;">{{item.categoryName}}</view> |
|
|
<view class="text-df text-black" style="width: 25%;">{{item.categoryName}}</view> |
|
|
<view class="flex flex-center" style="width: 25%;"> |
|
|
<view class="flex flex-center" style="width: 25%;"> |
|
|
<text class="text-lg text-red">{{formate.formatePrice(item.quotedPrice, 1)}}</text> |
|
|
|
|
|
|
|
|
<text class="text-lg text-red">{{formate.formatePrice(item.quotedPrice, 0) || '- -'}}</text> |
|
|
<text class="cuIcon-refresharrow text-red" style="font-size:12px;margin-left: 4rpx;"></text> |
|
|
<text class="cuIcon-refresharrow text-red" style="font-size:12px;margin-left: 4rpx;"></text> |
|
|
</view> |
|
|
</view> |
|
|
<view class="text-df text-green" style="width: 20%;padding-left: 24rpx;">{{item.floatingQuotedPrice}}</view> |
|
|
|
|
|
|
|
|
<view class="text-df text-green" style="width: 20%;padding-left: 24rpx;">{{item.floatingQuotedPrice || '- -'}}</view> |
|
|
<view class="text-df text-green" style="width: 10%;">{{item.averageDeductionPoints || '- -'}}</view> |
|
|
<view class="text-df text-green" style="width: 10%;">{{item.averageDeductionPoints || '- -'}}</view> |
|
|
<wux-button outline round type="positive" size="cate" data-index="{{index}}" bind:click="agentOrder">代卖</wux-button> |
|
|
<wux-button outline round type="positive" size="cate" data-index="{{index}}" bind:click="agentOrder">代卖</wux-button> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<wxs module="formateTime"> |
|
|
|
|
|
function formateTime(lasttime) { |
|
|
|
|
|
if (index == 0) { |
|
|
|
|
|
if(tabIndex == index){ |
|
|
|
|
|
return '/assets/tabs/tab-host-blue.png' |
|
|
|
|
|
} |
|
|
|
|
|
return '/assets/tabs/tab-host-gray.png' |
|
|
|
|
|
} else if (index == 1) { |
|
|
|
|
|
if(tabIndex == index){ |
|
|
|
|
|
return '/assets/tabs/tab-infi-blue.png' |
|
|
|
|
|
} |
|
|
|
|
|
return '/assets/tabs/tab-infi-gray.png' |
|
|
|
|
|
} else if (index == 2) { |
|
|
|
|
|
if(tabIndex == index){ |
|
|
|
|
|
return '/assets/tabs/tab-trans-blue.png' |
|
|
|
|
|
} |
|
|
|
|
|
return '/assets/tabs/tab-trans-gray.png' |
|
|
|
|
|
} else if (index == 3) { |
|
|
|
|
|
if(tabIndex == index){ |
|
|
|
|
|
return '/assets/tabs/tab-self-blue.png' |
|
|
|
|
|
} |
|
|
|
|
|
return '/assets/tabs/tab-self-gray.png' |
|
|
|
|
|
} |
|
|
|
|
|
return '' |
|
|
|
|
|
} |
|
|
|
|
|
module.exports = formateTime |
|
|
|
|
|
</wxs> |
|
|
|
|
|
|
|
|
</view> |