index.wxml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <view class="container">
  2. <!-- 我的顶部视图 -->
  3. <view class="minetop" style="background-image: url('{{ imgUrl }}mine-bg.png'); background-size: 100% 100%; width: 100%; ">
  4. <text style="color: #000; font-size: 36rpx; height: {{ navHeight }}px; padding-top: {{ statusBarHeight }}px; align-content: center; align-items: center; display: flex; flex-direction: row;">我的</text>
  5. <view class="user-info" style="padding-top: 30px;">
  6. <van-image src="{{ avatarUrl }}" use-loading-slot round width="50" height="50" bind:click="getUserInfo" />
  7. <view class="userinfo">
  8. <view class="userinfo-vip">
  9. <text>{{ isOpenEye ? nickName : '******' }}</text>
  10. <text style="color: #AAAAAA;">资金账户</text>
  11. </view>
  12. <view class="userinfo-account">
  13. <text>{{ isOpenEye ? loginid : '******' }}</text>
  14. <text>{{ isOpenEye ? ta.accountid : '******' }}</text>
  15. </view>
  16. </view>
  17. <!-- 闭眼 -->
  18. <van-icon id="eye" name="{{ isOpenEye ? 'eye-o' : 'closed-eye'}}" size="20" bind:click="onEye"/>
  19. </view>
  20. <view class="taaccount-info">
  21. <view class="item">
  22. <text>余额</text>
  23. <text>{{ isOpenEye ? balance : '******'}}</text>
  24. </view>
  25. <view class="item">
  26. <text>冻结</text>
  27. <text>{{ isOpenEye ? freezemargin : '******' }}</text>
  28. </view>
  29. <view class="item">
  30. <text>可用</text>
  31. <text>{{ isOpenEye ? currentbalance : '******' }}</text>
  32. </view>
  33. </view>
  34. <!-- 出金 入金 -->
  35. <view class="button-view">
  36. <van-button custom-class="into-gold" round id="into-gold" color="#407DB8" bind:click="onButtonPressed">充值</van-button>
  37. <van-button custom-class="out-gold" round id="out-gold" color="#F55656" bind:click="onButtonPressed">提现</van-button>
  38. </view>
  39. </view>
  40. <view style="background-color: #f0f0f0; height: 10px;" />
  41. <!-- 功能菜单项 -->
  42. <van-grid column-num="5" wx:if="{{ menulists.count != 0 }}">
  43. <van-grid-item wx:for="{{ menulists }}" wx:key="id" wx:for-index="idx" wx:for-item="itm" id="{{ itm.id }}" link-type="navigateTo" url="{{ itm.path }}">
  44. <van-image slot="icon" width="25" height="25" fit="cover" lazy-load src="{{ imgUrl+itm.img }}.png" />
  45. <text slot="text" style="font-size: 14px;">{{ itm.title }}</text>
  46. </van-grid-item>
  47. </van-grid>
  48. <view style="background-color: #f0f0f0; height: 10px;" />
  49. <!-- 列表菜单项 -->
  50. <van-cell-group>
  51. <van-cell clickable title-class="cell-title" size="large" center is-link border wx:for="{{ tablelists }}" clickable wx:key="id" wx:for-index="idx" wx:for-item="itm" id="{{ itm.id }}" title="{{ itm.title }}" link-type="navigateTo" url="{{ itm.path }}">
  52. <van-image slot="icon" width="25" height="25" src="{{ imgUrl+itm.iconfont }}.png" />
  53. </van-cell>
  54. </van-cell-group>
  55. <!-- 登出按钮 -->
  56. <view class="loginOut-view" style="padding-bottom: 60px;">
  57. <van-button custom-class="loginOut" size="large" round bindtap="onLoginOut">退出登录</van-button>
  58. </view>
  59. </view>
  60. <!-- 对话弹框 -->
  61. <van-dialog id="van-dialog" />
  62. <!-- toast -->
  63. <van-toast id="van-toast" />