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.

51 lines
3.4 KiB

5 years ago
<!--pages/user/order/list.wxml-->
4 years ago
<title title="团体预约"></title>
5 years ago
<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==-1?' active':''}}" bindtap="changeType" data-type="-1">全部</view>
<view class="type-item{{type===0?' active':''}}" bindtap="changeType" data-type="0">组团中</view>
<view class="type-item{{type===1?' active':''}}" bindtap="changeType" data-type="1">等待确认</view>
<view class="type-item{{type===2?' active':''}}" bindtap="changeType" data-type="2">待出行</view>
<view class="type-item{{type===3?' active':''}}" bindtap="changeType" data-type="3">已完成</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.team_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 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> -->
5 years ago
<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://static.ticket.sz-trip.com/xcxImages/other/order-empty.png" mode="widthFix"></image>
<view>还没有订单,赶快去下单吧~</view>
</view>