<!--pages/my/cashier/cashier.wxml-->
<wxs module="tofix" src="../../../components/tool/decimal.wxs"></wxs>
<van-icon name="arrow-left"  size="25px" custom-class="back" bind:click="back"/>
<view class="topBox flex ju-c m-bottom-25">
    <view class="num">¥{{pageinfo.price}}</view>
    <!-- <view class="tips m-top-30">充{{price}}元赠{{give_price}}元，相当于此单收费0.6元</view> -->
</view>

<view class="centerBox">
    <view class="tit">支付方式</view>
    <view class="message flex ju-b">
        <view class="le flex">
            <image class="icon m-right-15" src="/image/icon/bag.png"></image>
            <text>余额{{pageinfo.total_money}}元{{pageinfo.total_money-pageinfo.price>0?'':'(不足支付)'}}</text>
        </view>
        <image class="active" src="/image/home/check.png"></image>
    </view>
    <block wx:if="{{is_online==1}}">
    <view class="tit">推荐充值</view>
    <view class="content flex">
        <view class="items flex ju-c" wx:for="{{pageinfo.recharge}}" wx:key="index" bindtap="click" data-gparice="{{item.give_price}}" data-price="{{item.price}}">
            <view class="name">充{{item.price}}元</view>
            <view class="val">赠送{{item.give_price}}元</view>

            <image src="/image/my/hot.png" class="icon"></image>
        </view>

    </view>
</block>
</view>

<view class="footerNav ju-c flex">
    <view class="btn btn-sky" bindtap="pay">支付{{price>0?tofix.toFix(price):tofix.toFix(pageinfo.price)}}元</view>
</view>