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.
 

47 lines
3.3 KiB

<!--pages/user/order/list.wxml-->
<title title="订单"></title>
<view class="fixed-top">
<view class="search-box">
<view class="iconfont icon-sousuo"></view>
<input bindinput="changeKeyword" type="text" placeholder="搜索我的订单"></input>
<view class="search-btn" bindtap="search">搜索</view>
</view>
<view class="types">
<view class="type-item{{type?'':' active'}}" bindtap="changeType" data-type="">全部</view>
<view class="type-item{{type=='WAIT_PAYMENT'?' active':''}}" bindtap="changeType" data-type="WAIT_PAYMENT">待付款</view>
<view class="type-item{{type=='WAIT_CONFIRM'?' active':''}}" bindtap="changeType" data-type="WAIT_CONFIRM">待确认</view>
<view class="type-item{{type=='WAIT_POST'?' active':''}}" bindtap="changeType" data-type="WAIT_POST">待发货</view>
<view class="type-item{{type=='WAIT_USE'?' active':''}}" bindtap="changeType" data-type="WAIT_USE">待出行</view>
<view class="type-item{{type=='WAIT_DELIVERY'?' active':''}}" bindtap="changeType" data-type="WAIT_DELIVERY">待收货</view>
<view class="type-item{{type=='WAIT_COMMENT'?' active':''}}" bindtap="changeType" data-type="WAIT_COMMENT">待评价</view>
<view class="type-item{{type=='NEED_REFUND'?' active':''}}" bindtap="changeType" data-type="NEED_REFUND">退款退货</view>
</view>
</view>
<view style="height:176rpx"></view>
<view class="order-item" bindtap="gotoDetail" data-item="{{item}}" wx:for="{{list}}">
<view class="order-top">
<text>订单号:{{item.order_id}}</text>
<text class="status">{{orderState[item.state]}}</text>
</view>
<view data-item="{{item}}" class="order-info" wx:for="{{item.order_product_list}}">
<image src="{{item.product_model=='movie'?item.product_img:item.sku_headimg}}" mode="aspectFill"></image>
<view class="sku-title textOver2">{{item.product_model=='movie'?item.product_title:(item.product_title+item.sku_name)}}</view>
<view class="sku-tips">
<view class="sku-price">¥{{item.product_price/100}}</view>
<view class="sku-number">x{{item.product_num}}</view>
</view>
</view>
<view class="total"><text>共{{item.orderNum}}件商品</text><text style="margin-left:20rpx">合计</text> <text class="all-price">¥{{item.total_money/100}}</text></view>
<view class="btns">
<view class="btn" catchtap="order" data-item="{{item}}">再次购买</view>
<view catchtap="gotoComment" data-id="{{item.order_id}}" class="btn" wx:if="{{item.state=='WAIT_COMMENT'}}">立即评价</view>
<view catchtap="cancel" data-index="{{index}}" class="btn" wx:if="{{item.state=='UNPAID'}}">取消预订</view>
<view catchtap="refund" data-index="{{index}}" class="btn" wx:if="{{item.state=='PAID'}}">取消预订</view>
<view catchtap="refundInfo" data-id="{{item.order_id}}" class="btn" wx:if="{{item.state=='WAIT_REFUND' || item.state=='REFUND' || item.state=='NEED_REFUND' || item.state=='REFUNDING'}}">退款详情</view>
<view catchtap="pay" data-id="{{item.order_id}}" class="btn active" wx:if="{{item.state=='UNPAID'}}">立即支付</view>
</view>
</view>
<view class="empty-box" wx:if="{{list.length==0}}">
<image src="https://fastadmin.oss-cn-shenzhen.aliyuncs.com/xcxImages/other/order-empty.png" mode="widthFix"></image>
<view>还没有订单,赶快去下单吧~</view>
</view>