Browse Source

no message

featrue/v4.5
xpz2018 4 years ago
parent
commit
432db5b0e9
1 changed files with 15 additions and 9 deletions
  1. 24
      pages/moment/moment-item/index.wxml

24
pages/moment/moment-item/index.wxml

@ -41,16 +41,16 @@
<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: 25%;">{{item.categoryName}}</view>
<view class="flex flex-center bg-white item-content" wx:for="{{itemList}}" wx:for-item="element" wx:key="index">
<view class="text-df text-black" style="width: 25%;">{{element.categoryName}}</view>
<view class="flex flex-center" style="width: 25%;justify-content: flex-start">
<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>
<text class="text-lg {{moment.colorText(element.floatingQuotedPrice)}}">{{formate.formatePrice(element.quotedPrice, 0)}}</text>
<image class="float-image" src="{{moment.floatImage(element.floatingQuotedPrice)}}" wx:if="{{moment.checkPrice(element.floatingQuotedPrice)}}"></image>
</view>
<view class="text-df {{moment.colorText(item.floatingQuotedPrice)}}" style="width:15%;">{{stringUtil.roundPrice(item.floatingQuotedPrice)}}</view>
<view class="text-df text-black" style="width: 15%;">{{stringUtil.precent(item.averageDeductionPoints)}}</view>
<view class="text-df {{moment.colorText(element.floatingQuotedPrice)}}" style="width:15%;">{{stringUtil.roundPrice(element.floatingQuotedPrice)}}</view>
<view class="text-df text-black" style="width: 15%;">{{stringUtil.precent(element.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>
<wux-button outline round type="positive" size="cate" disabled="{{!item.isOperations}}" data-index="{{index}}" bind:click="agentOrder">代卖</wux-button>
</view>
</view>
</view>
@ -58,13 +58,19 @@
<wxs module="stringUtil">
var queue = function(val) {
if(val > 0){
if(val === null){
return '- -'
}
if(val >= 0){
return val + '辆'
}
return '- -'
}
var precent = function(val) {
if(val > 0){
if(val === null){
return '- -'
}
if(val >= 0){
return val + '%'
}
return '- -'

Loading…
Cancel
Save