坑爹小程序之 if for

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/liu709127859/article/details/81095835

<!--订单列表 -->

<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>

展开阅读全文

没有更多推荐了,返回首页