You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
3.6 KiB
62 lines
3.6 KiB
<!--pages/order/order.wxml-->
|
|
<view class="container">
|
|
|
|
<view class="tab-view">
|
|
<view class="tab-item{{currentIndex==idx?'Active':''}}" wx:key="key" wx:for="{{navTab}}" wx:for-index="idx" wx:for-item="item" data-idx='{{idx}}' data-item='{{item}}' bindtap="switchTab">{{item.type}}
|
|
<view class="tab-line{{currentIndex==idx?'Active':''}}"></view>
|
|
<text class="tab-badge" hidden="{{item.num == 0}}">{{item.num}}</text>
|
|
</view>
|
|
</view>
|
|
|
|
<scroll-view class="scrollView" scroll-y="true" bindscrolltoupper="reloadData" bindscrolltolower="loadMoreData" scroll-top="{{scrollTop}}" style="height:{{scrollHeight}}px">
|
|
<view class='list-container' hidden="{{listArray.length<=0&& (loading || complete)}}">
|
|
<view class='list-cell' wx:for="{{listArray}}" wx:key="index" wx:for-index="idx" wx:for-item="item" data-id="{{item.id}}" bindtap="lookDetail">
|
|
<view class="shopView">
|
|
<image src="{{item.shop_logo}}" mode="aspectFill"></image>
|
|
<text class="left">{{item.shop_name}}</text>
|
|
<image class="jiantou-img" src="/images/x_right.png" mode="aspectFill"></image>
|
|
<view class="statusLabel" wx:if="{{item.status == 0}}">待收货</view>
|
|
<view class="statusLabel" wx:if="{{item.status == 1}}">待发货</view>
|
|
<view class="statusLabel" wx:if="{{item.status == 2}}">待收货</view>
|
|
<view class="statusLabel" wx:if="{{item.status == 5}}">交易成功</view>
|
|
</view>
|
|
<view class='list-cell' wx:for="{{item.list}}" wx:key="index">
|
|
<view class="goodsView">
|
|
<image class="goodsImg" src="{{item.imgurl}}" mode="aspectFill"></image>
|
|
<view class="content">
|
|
<view class="title">{{item.p_name}}</view>
|
|
<view class="spec">{{item.size}}</view>
|
|
<view class="priceView">
|
|
<view class="price">¥{{item.p_price}}</view>
|
|
<view class="quantity">共 {{item.num}} {{item.unit}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="bottomView">
|
|
<block wx:if="{{item.status == 0}}">
|
|
<view class="normalBtn" catchtap="removeOrder" data-info="{{item}}">取消订单</view>
|
|
<view class="confirmBtn" catchtap="payNow" data-info="{{item}}">立即付款</view>
|
|
</block>
|
|
<block wx:elif="{{item.status == 1}}">
|
|
<view class="confirmBtn" wx:if="{{item.delivery_status == 1}}" style="background-color:#ccc;color:white;border:0px;">提醒发货</view>
|
|
<view class="confirmBtn" wx:else catchtap="orderRemind" data-info="{{item}}">提醒发货</view>
|
|
</block>
|
|
<block wx:elif="{{item.status == 2}}">
|
|
<view class="normalBtn" catchtap="orderLogistics" data-info="{{item}}">查看物流</view>
|
|
<view class="confirmBtn" catchtap="confirmOrder" data-info="{{item}}">确认收货</view>
|
|
</block>
|
|
<block wx:elif="{{item.status == 5}}">
|
|
<view class="deleteBtn" catchtap="deleteOrder" data-info="{{item}}">删除订单</view>
|
|
<view class="normalBtn" catchtap="orderLogistics" data-info="{{item}}">查看物流</view>
|
|
<view class="confirmBtn" catchtap="evaluateOrder" data-info="{{item}}">立即评价</view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
<view class="loading" hidden="{{!loading}}">正在载入更多...</view>
|
|
<view class="complete" hidden="{{!complete}}">暂无更多数据</view>
|
|
</view>
|
|
<view class="noMoreData" wx:if='{{listArray.length<=0&& (loading || complete)}}'>暂无数据</view>
|
|
</scroll-view>
|
|
|
|
</view>
|