51 lines
2.3 KiB
Plaintext
51 lines
2.3 KiB
Plaintext
<!--pages/mine/order/orderlist.wxml-->
|
|
<cu-custom isBack="{{true}}" isRelaunch="{{false}}">
|
|
<view slot="content">我的订单</view>
|
|
</cu-custom>
|
|
|
|
<view class="tab">
|
|
<van-tabs style="width: 100%;" active="{{ tab }}" bind:change="onChange" ellipsis="{{false}}" z-index="{{100}}"
|
|
color="#E6B980">
|
|
<block wx:for="{{tabList}}" wx:key="index">
|
|
<van-tab title="{{item.name}}">
|
|
|
|
</van-tab>
|
|
</block>
|
|
</van-tabs>
|
|
</view>
|
|
|
|
<scroll-view scroll-y="true" bindscrolltolower="doLoadMore" style="height:{{contentHeight}}px;margin-top:85rpx;">
|
|
<view class="cu-list menu-avatar" wx:if="{{orderList.length>0}}">
|
|
<view class="cu-item bg-white margin-top-xs" wx:for="{{orderList}}" wx:key="index" data-item="{{item}}"
|
|
bindtap="toDetail">
|
|
<view class="cu-avatar radius lg" style="background-image:url({{imgUrl+item.shopLogo}});"></view>
|
|
<view class="content">
|
|
<view class="text-pink">
|
|
<text class="text-cut">{{item.shopName}}</text>
|
|
</view>
|
|
<view class="text-gray text-sm flex flex-direction">
|
|
<text class="text-cut text-gray">下单时间:{{item.gmtCreate}}</text>
|
|
<view class="flex">
|
|
<text>订单金额:</text>
|
|
<text class="text-cut text-red">¥{{item.amountMoney}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<image wx:if="{{item.orderStatus==0}}" mode="scaleToFill" src="/images/ic_order_wait_pay.png"
|
|
style="width:90rpx;height:80rpx">
|
|
</image>
|
|
<image wx:elif="{{item.orderStatus==1}}" src="/images/ic_order_pay.png" mode="scaleToFill"
|
|
style="width:90rpx;height:80rpx">
|
|
</image>
|
|
<image wx:elif="{{item.orderStatus==2}}" src="/images/ic_order_close.png" mode="scaleToFill"
|
|
style="width:90rpx;height:80rpx">
|
|
</image>
|
|
<image wx:elif="{{item.orderStatus==3}}" src="/images/ic_order_finish.png" mode="scaleToFill"
|
|
style="width:90rpx;height:80rpx">
|
|
</image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<van-empty description="暂无订单" wx:else />
|
|
</scroll-view> |