<block wx:for="{{order_list}}" wx:for-index='key' wx:for-item='item'>
<view class="ordergoods-ul" wx:for="{{item.order}}" wx:for-index='keys' wx:for-item='item_info'>
<view class="xy_orderTit">
<view class="order_info_l">
<view class="order-date">订单编号:{{item_info.order_sn}}</view>
<view class="order-date">下单时间:{{item_info.add_time}}</view>
<view class="order-date">发货类型:{{item_info.add_time}}</view>
</view>
{{if item_info.order_status < 3 || item_info.order_status ==6}}
<view class="order_info_r">
<view class="order-but">{{item_info.order_status_name}}</view>
<view class="order-del">删除订单</view>
</view>
{{/if}}
</view>
<!--商品列表-->
<view class="order-gooods" wx:for="{{item_info.goods}}" wx:for-index='keys' wx:for-item='item_goods'>
<image class="goods_img" src="{{main_url}}/{{item_goods.img_url}}"></image>
<view class="order-text">
<view>{{item_goods.goods_name}}</view>
<view style="text-align: right;"><text>{{item_goods.goods_number}}</text>件X<text class="goods-price">¥{{item_goods.goods_price}}</text></view>
</view>
</view>
</view>
</block>
小程序的循环
最新推荐文章于 2024-03-21 16:56:55 发布