<nav type="back" background-color="#46a9a4" title="订单列表" />
<block wx:for="{{list}}" wx:key="index">
    <view class="box" style="color: #382E2E;">
        <view class="order-number" bindtap="orderdeils" data-item="{{item}}">
            <view class="number">订单号：{{item.orderNum}}</view>
            <block wx:if="{{item.status==100}}">
                <view class="state">已付款</view>
            </block>
            <block wx:if="{{item.status==102}}">
                <view class="state">申请退房</view>
            </block>
            <block wx:if="{{item.status==103}}">
                <view class="state">退房成功</view>
            </block>
            <block wx:if="{{item.status==104}}">
                <view class="state">申请已驳回</view>
            </block>
            <block wx:if="{{item.status==200}}">
                <view class="state">已入住</view>
            </block>
            <!-- <block wx:if="{{item.status==200}}">
                <view class="state">续住</view>
            </block> -->
            <block wx:if="{{item.status==400}}">
                <view class="state">已退房</view>
            </block>
            <block wx:if="{{item.status==500}}">
                <view class="state">申请退款</view>
            </block>
            <block wx:if="{{item.status==601}}">
                <view class="state">退款审核通过</view>
            </block>
            <block wx:if="{{item.status==602}}">
                <view class="state">退款被驳回</view>
            </block>
            <block wx:if="{{item.status==00}}">
                <view class="state">退款成功</view>
            </block>
            <block wx:if="{{item.status==800}}">
                <view class="state">已完成</view>
            </block>
        </view>
        <view class="order-txt" bindtap="orderdeils" data-item="{{item}}">
            <image class="order-image" src="{{item.shopStore.cover}}" />
            <view class="order-name">
                <view class="name">{{item.room.name}}</view>
                <view class="order-price">￥{{item.room.price}}/晚</view>
                <view class="order-time">{{item.shopStore.address}}</view>
            </view>
        </view>
        <view class="order-number2" bindtap="orderdeils" data-item="{{item}}">
            <view class="order-title">联系电话:</view>
            <view class="order-txts">{{item.mobile}} </view>
        </view>
        <view class="order-times" bindtap="orderdeils" data-item="{{item}}">
            <view class="order-date">
                <view class="date">{{item.orderTime}}——{{item.Time}}</view>
                <view class="sky">{{item.day}}晚</view>
            </view>
            <view class="price">￥{{item.price}}</view>
        </view>
        <view class="submitbox" wx:if="{{item.status==100}}">
            <view class="submit" data-item="{{item}}" bindtap="ONShow">确认入住</view>
        </view>
        <!-- 确认弹窗 -->
        <van-dialog wx:if="{{showid==item.objectId}}" message='确定该用户已入住' data-item="{{item}}" show="{{ show }}" show-cancel-button bind:cancel="onClose" bind:confirm="getUserInfo">
        </van-dialog>
        <!-- 订单完成 -->
        <view class="submitbox" wx:if="{{item.status==200}}">
            <view class="submit" data-item="{{item}}" bindtap="ONShow2">订单完成</view>
        </view>

        <van-dialog wx:if="{{showid2==item.objectId}}" message='确定该订单也已完成' data-item="{{item}}" show="{{ show2 }}" show-cancel-button bind:cancel="onClose2" bind:confirm="ordercom">
        </van-dialog>
        <!--申请退房 -->
        <view class="submitbox" style="display: flex;" wx:if="{{item.status==102}}">
            <view class="submit"  data-item="{{item}}" bindtap="ONShow3">接受申请</view>
            <!-- <view class="submit" style="margin-left: 15rpx;" data-item="{{item}}" bindtap="ONShow4">拒绝申请</view> -->
        </view>
        <van-dialog wx:if="{{showid3==item.objectId}}" message='确定接受该订单退房' data-item="{{item}}" show="{{ show3 }}" show-cancel-button bind:cancel="onClose3" bind:confirm="jieshou">
        </van-dialog>
        <van-dialog wx:if="{{showid4==item.objectId}}" message='拒绝接受该订单退房' data-item="{{item}}" show="{{ show4 }}" show-cancel-button bind:cancel="onClose4" bind:confirm="jujue">
        </van-dialog>
        <!-- <view class="order-order">
                <view class="service">联系客服</view> 
                <view class="service"  >联系房东</view>
                <block wx:if="{{item.status==100}}">
                    <view class="service" data-index="{{index}}" catchtap="delOrder">取消定单</view>
                </block>
                <block wx:if="{{item.status==200}}">
                    <view class="service">申请退款</view>
                </block>
                <block wx:if="{{item.status==100}}">
                    <view class="pay" data-item="{{item}}" catchtap="storepackage">去支付</view>
                </block>
                <block wx:if="{{item.status==200}}">
                    <view class="pay">详情</view>
                </block>
                <block wx:if="{{item.status==400}}">
                    <view class="pay" data-item="{{item}}" catchtap="evaluation">去评价</view>
                </block>
            </view> -->
    </view>
</block>