index.wxml 3.3 KB

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