balance _center2.wxml
3.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!--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>