index.wxml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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: 10px;">
  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 : secret }}</text>
  10. <text style="color: #999;">资金账户</text>
  11. </view>
  12. <view class="userinfo-account">
  13. <text>{{ isOpenEye ? loginid : secret }}</text>
  14. <text>{{ isOpenEye ? ta.accountid : secret }}</text>
  15. </view>
  16. </view>
  17. <!-- 闭眼 -->
  18. <van-icon id="eye" name="{{ isOpenEye ? 'eye-o' : 'closed-eye'}}" size="25" bind:click="onEye"/>
  19. </view>
  20. <view class="taaccount-info">
  21. <view class="item">
  22. <text>余额</text>
  23. <text>{{ isOpenEye ? balance : secret }}</text>
  24. </view>
  25. <view class="item">
  26. <text>冻结</text>
  27. <text>{{ isOpenEye ? freezemargin : secret }}</text>
  28. </view>
  29. <view class="item">
  30. <text>可用</text>
  31. <text>{{ isOpenEye ? currentbalance : secret }}</text>
  32. </view>
  33. </view>
  34. <!-- 出金 入金 -->
  35. <view class="button-view">
  36. <van-button custom-class="into-gold" round block id="into-gold" color="#407DB8" bind:click="onButtonPressed">充值</van-button>
  37. <van-button custom-class="out-gold" round block id="out-gold" color="#F55656" bind:click="onButtonPressed">提现</van-button>
  38. </view>
  39. </view>
  40. <!-- 功能菜单项 -->
  41. <van-grid column-num="5" border="{{ false }}" clickable="{{ true }}" wx:if="{{ menulists.count != 0 }}">
  42. <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 }}">
  43. <van-image slot="icon" width="25" height="25" fit="cover" lazy-load src="{{ imgUrl+itm.img }}.png" />
  44. <text slot="text" style="font-size: 14px;">{{ itm.title }}</text>
  45. </van-grid-item>
  46. </van-grid>
  47. <view style="background-color: #f0f0f0; height: 10px;" />
  48. <!-- 列表菜单项 -->
  49. <van-cell-group>
  50. <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 }}">
  51. <van-image slot="icon" width="25" height="25" src="{{ imgUrl+itm.iconfont }}.png" />
  52. </van-cell>
  53. </van-cell-group>
  54. <!-- 登出按钮 -->
  55. <view class="loginOut-view" style="padding-bottom: 60px;">
  56. <van-button custom-class="loginOut" size="large" color="#407DB8" block round bind:click="onLoginOut">退出登录</van-button>
  57. </view>
  58. </view>
  59. <!-- 对话弹框 -->
  60. <van-dialog id="van-dialog" />
  61. <!-- toast -->
  62. <van-toast id="van-toast" />