<import src="order.skeleton.wxml" />
<template is="skeleton" wx:if="{{loading}}" />
<navigator url="#" class="row" wx:for="{{showroom}}" wx:key="lebel" bindtap="{{item.func||''}}">
    <view>
        <view class="lebel">{{item.label}}</view>
        <view class="text" style="color: {{item.color||'#333333'}};">{{item.value||' --'}}</view>
    </view>
</navigator>
<view class="title">
    付费订单列表
</view>
<block wx:if="{{sys_payincidence==1}}" wx:key="index">
    <view class="card" wx:for="{{list}}">
        <view class="label">账号名称：{{item.name}}</view>
        <view>账号：{{item.accountno}}</view>
        <view>单价（元）：
            <text class="price">{{item.price}}</text>
            <view class="tag">优惠抵扣</view>
        </view>
        <view>生效时间：{{item.begdate}}</view>
        <view>到期时间：{{item.enddate}}</view>
    </view>
</block>
<block wx:else>
    <view class="card" wx:for="{{list}}" wx:key="index">
        <view class="label">{{item.agentname}}</view>
        <view>单价（元）：<text class="price">{{item.price}} <view class="tag" wx:if="{{item.discount}}">优惠抵扣</view></text></view>
        <view>生效时间：{{item.begdate}}</view>
        <view>到期时间：{{item.enddate}}</view>
    </view>
</block>
<block wx:if="{{detail.ispaid!=1}}">
    <view style="height: 130rpx;" />
    <view class="footer">
        <view class="left">
            <view>
                总价：<text class="price">{{detail.showAmount}}</text>
            </view>
        </view>
        <view class="but-box">
            <van-button custom-class='but delete' bind:click="deleteOrder">删除订单</van-button>
            <van-button custom-class='but' wx:if="{{sys_payswitch && detail.ispaid==0}}" bind:click="payment">继续支付</van-button>
        </view>
    </view>
</block>
<inventory id='inventory' />