坑爹小程序之 if for

<!--订单列表 -->

<block wx:for="{{allorder}}" wx:for-item="order">

<navigator url='../details/pintuan_details' class='order-group'>

<view class='order_number'>

<text>开团时间:{{order.order_add_time}}</text>

<!-- <view wx:if="{{order.group_status = 1}}"> </view> -->

<text class='color-red'>{{order.group_status}}</text>

<block wx:if="{{order.group_status==1}}">

<text class='color-red'>拼团成功</text>

</block>

<block wx:elif="{{order.group_status==0}}">

<text class='color-red'>拼团中</text>

</block>

<block wx:else>

<text class='color-red'>拼团失败</text>

</block>

</view>

<view class='order_info'>

<view class='imgBox'><image class='img' src="../../../../../static/images/commodity-img.jpg"></image></view>

<view class='goodinfo'>

<view class='title'>{{order.goods_name}}</view>

<view class='group'>

<view>

<text class='price color-red'>¥{{goodsprice}}</text>

</view>

<text class='store color-gray font12'>×{{goodscount}}</text>

</view>

</view>

</view>

<view class='info'>

<view class="pt_style">{{grouppeoplecount}}人团</view>

<text class="true">拼团进度 <text class='color-red'>{{groupstep}}</text>/3</text>

</view>

</navigator>

</block>

猜你喜欢

转载自blog.csdn.net/liu709127859/article/details/81095835
今日推荐