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.
 

58 lines
4.2 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=='RESERVATION'?' active':''}}" bindtap="changeType" data-type="RESERVATION">抢票中</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">{{item.state_text}}</text>
</view>
<view data-item="{{order}}" wx:for="{{item.order_product_list}}" wx:for-item="order">
<view class="order-info" wx:if="{{!order.is_bind_agent}}">
<image lazy-load src="{{order.product_model=='movie'?order.product_img:order.sku_headimg}}" mode="aspectFill"></image>
<view class="sku-title textOver2">{{order.product_model=='movie'?order.product_title:(order.product_title+order.sku_name)}}</view>
<view class="sku-tips">
<view class="sku-price">¥{{order.paid_money/100}}</view>
<view class="sku-number">共{{order.product_num}}件</view>
</view>
</view>
</view>
<view style="text-align:right;font-size:28rpx;margin-right:30rpx;color:#333">
<text>共{{item.orderNum}}件商品</text>
</view>
<view style="text-align:right;font-size:28rpx;margin:20rpx 30rpx;margin-bottom:0rpx;color:#333">
<text class="all-price" style="color:#999">总价 ¥{{item.total_money/100}}</text><text class="all-price" style="margin-left:30rpx">需付款 ¥{{item.paid_money/100}}</text>
</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 wx:if="{{item.guihuaUrl}}" catchtap="gotoWeb" data-web="{{item.guihuaUrl}}" class="btn" data-item="{{item}}">行程规划</view> -->
<view class="btn" wx:if="{{item.order_product_list.length==1}}" 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' && item.order_product_list[0].product_model!='movie'}}">取消预订</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 lazy-load src="https://static.ticket.sz-trip.com/xcxImages/other/order-empty.png" mode="widthFix"></image>
<view>还没有订单,赶快去下单吧~</view>
</view>