balance _center2.wxml 3.4 KB
<!--pages/my/balance _center/balance _center.wxml-->
<view class='banner_box'>
        <view class='banner_top'>
                <view class='iconfont icon-fanhui' catchtap='get_my'></view>
                <view class='hello'>你好,{{bill.user_nickname}}
                </view> 
                <view class='charge_code' catchtap="get_exchange">兑换码充值</view>
        </view>
        <view class='banner_middle'>
                <view class='banner_img'>
                        <image src='http://hifresh.w.bronet.cn/assets/wxapp/coin@2x.png' mode='widthFix'></image>
                </view>
                <view class='my_balance'>
                        <view class='balance'>我的余额</view>
                        <view class='balance_num'>{{bill.balance}}
                                <text>元</text>
                        </view> 
                </view>
        </view>
        <view class='banner_bottom'>
                <view class='{{state===1?"bottom_btn1":"bottom_btn"}}' bindtap='changeState1'>
                        <view class='iconfont icon-chuxuyouli'></view>
                        <view class='btn_character'>储值有礼</view>
                </view>
                <view class='{{state===2?"bottom_btn1":"bottom_btn"}}' bindtap='changeState2'>
                        <view class='iconfont icon-zhangdanmingxi'></view>
                        <view class='btn_character'>账单明细</view>
                </view>
        </view>
</view>
<block wx:if='{{state===1}}'>
        <view class='content_item'>
                <view class='content_title'>
                        <view class='recharge_amount'>充值金额</view>
                        <view class='amount_hint'>(储值金额暂不支持提现功能)</view>
                </view>
                <view class='species_box'>
                        <view class='species1 {{flag==item.id?"active":""}}' bindtap='changeFlag1' wx:for='{{store}}' wx:key='{{item.id}}' data-id='{{item.id}}'>
                                <view class='species1view'>{{item.price}}
                                        <text>元</text>
                                </view>
                                <view class='species_content'>{{item.remark}}</view>
                        </view>
                </view>
        </view>
        <view class='bottom_btn2' bindtap='pay_pay_recharge'>使用微信充值</view>
        <view class='hint'>点击立即充值,表示您已经同意
                <text class='hint_font' bindtap='jump_agreement'>《充送活动协议》</text> </view>
</block>
<block wx:if='{{state===2}}'>
        <view class='content_item'>
                <view wx:if='{{balance.length>0}}'>
                        <view class='item_list' wx:for='{{balance}}' wx:key='{{item.id}}'>
                                <view class='list_information'>
                                        <view>{{item.description}}</view>
                                        <view>
                                                <view wx:if='{{item.change>0}}'>+{{item.change}}</view>
                                                <view wx:else>{{item.change}}</view>
                                        </view>
                                </view>
                                <view class='time'>{{item.create_time}}</view>
                        </view>
                </view>
                <view wx:else class='gogogo'>暂无消费记录</view>
        </view>
</block>