沙盘演示系统应用的微信小程序
zuoxiao
2024-10-25 917252ef3ea2b63c74d162cc67a6fbe103cb9b4d
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!-- pages/recharge/recharge.wxml -->
<view class="base-wrapper">
  <!-- 
  <view class="user-wrapper"> 
    <view> 
      <text>虚拟卡编号:</text> 
      <text>{{userCode}}</text> 
    </view> 
    <view> 
      <text>余额:</text> 
      <text>{{balance}}</text> 
    </view> 
  </view> 
  -->
 
  <view class="money-base-wrapper">
    <view class="row">
      <view class="item{{activeIndex === 0 ? 'active' : ''}}" bindtap="handleMoneyWrapperTap" data-index="0">
        <view class="money-wrapper">
          <text class="money-number">100</text>
          <text class="money-label">元</text>
        </view>
      </view>
      <view class="item{{activeIndex === 1 ? 'active' : ''}}" bindtap="handleMoneyWrapperTap" data-index="1">
        <view class="money-wrapper">
          <text class="money-number">200</text>
          <text class="money-label">元</text>
        </view>
      </view>
      <view class="item{{activeIndex === 2 ? 'active' : ''}}" bindtap="handleMoneyWrapperTap" data-index="2">
        <view class="money-wrapper">
          <text class="money-number">300</text>
          <text class="money-label">元</text>
        </view>
      </view>
    </view>
    <view class="row">
      <view class="item{{activeIndex === 3 ? 'active' : ''}}" bindtap="handleMoneyWrapperTap" data-index="3">
        <view class="money-wrapper">
          <text class="money-number">400</text>
          <text class="money-label">元</text>
        </view>
      </view>
      <view class="item{{activeIndex === 4 ? 'active' : ''}}" bindtap="handleMoneyWrapperTap" data-index="4">
        <view class="money-wrapper">
          <text class="money-number">500</text>
          <text class="money-label">元</text>
        </view>
      </view>
      <view class="item{{activeIndex === 5 ? 'active' : ''}}" bindtap="handleMoneyWrapperTap" data-index="5">
        <view class="money-wrapper">
          <text class="money-number">600</text>
          <text class="money-label">元</text>
        </view>
      </view>
    </view>
  </view>
 
  <view class="rechage-view">
    <view class="rechage{{activeIndex === -1 ? 'active' : ''}}" disabled="{{isClickable}}" bind:tap="creatOrder">
      <text class="rechage-text"  >充值</text>
    </view>
  </view>
 
  <view class="rechageList-view">
    <text class="rechageList-view-head">充值记录</text>
    <scroll-view class="list-container" scroll-y="true" scroll-x="false" refresher-enabled="true" refresher-threshold="50" 
    bindrefresherrefresh="onPullDownRefresh" refresher-triggered="{{isWXRefreshing}}"  bindscrolltolower="loadMore">
      <block wx:if="{{allRechargeList.length > 0}}" wx:for="{{allRechargeList}}" wx:key="index">
        <view class="itemList">
          <text class="item-card-text">{{item.rechargeTime}}</text>
          <text class="item-card-text">{{item.type}}</text>
          <text class="item-card-text">{{item.morny}}</text>
        </view>
      </block>
      <view wx:if="{{allRechargeList.length === 0}}" class="noMore-View">
        <image class="noMore-img" src="/images/no_more.svg" />
        <text class="noMore-text">没有数据</text>
      </view>
      <view wx:if="{{loading}}" class="loading">加载中...</view> <!-- 加载指示器 -->
    </scroll-view>
 
 
  </view>
 
</view>