index.wxml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!-- 导航栏 -->
  2. <nav-bar title="我的" left="{{false}}"></nav-bar>
  3. <view class="container">
  4. <!-- 我的顶部视图 -->
  5. <view class="minetop" style="background-image: url('../../images/mine-bg.png'); background-size: 100% 100%; width: 100%; ">
  6. <view class="user-info">
  7. <van-image src="{{avatarUrl}}" round width="50" height="50"></van-image>
  8. <view class="userinfo">
  9. <view class="userinfo-vip">
  10. <text>{{ isOpenEye ? nickName : '******' }}</text>
  11. <text>资金账户</text>
  12. </view>
  13. <view class="userinfo-account">
  14. <text>{{ isOpenEye ? loginid : '******' }}</text>
  15. <text>{{ isOpenEye ? ta.accountid : '******' }}</text>
  16. </view>
  17. </view>
  18. <!-- 闭眼 -->
  19. <van-icon id="eye" name="{{ isOpenEye ? 'eye-o' : 'closed-eye'}}" size="20" bind:click="onEye"/>
  20. </view>
  21. <view class="taaccount-info">
  22. <view class="item">
  23. <text>余额</text>
  24. <text>{{ isOpenEye ? ta.balance : '******'}}</text>
  25. </view>
  26. <view class="item">
  27. <text>冻结</text>
  28. <text>{{ isOpenEye ? ta.freezemargin : '******' }}</text>
  29. </view>
  30. <view class="item">
  31. <text>可用</text>
  32. <text>{{ isOpenEye ? ta.currentbalance : '******' }}</text>
  33. </view>
  34. </view>
  35. <!-- 出金 入金 -->
  36. <view class="button-view">
  37. <van-button custom-class="into-gold" round id="into-gold" color="#F7A657" bind:click="onButtonPressed">充值</van-button>
  38. <van-button custom-class="out-gold" round id="out-gold" color="#226FD9" bind:click="onButtonPressed">提现</van-button>
  39. </view>
  40. </view>
  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. <image slot="icon" style="width: 25px; height: 25px;" src="../../images/{{ itm.img }}.png"></image>
  45. <text slot="text" style="font-size: 14px;">{{ itm.title }}</text>
  46. </van-grid-item>
  47. </van-grid>
  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. <image slot="icon" style="width: 25px; height: 25px;" src="../../images/{{ itm.iconfont }}.png"></image>
  52. </van-cell>
  53. </van-cell-group>
  54. <!-- 登出按钮 -->
  55. <view class="loginOut-view">
  56. <van-button custom-class="loginOut" round bindtap="onLoginOut">退出登录</van-button>
  57. </view>
  58. </view>
  59. <!-- 对话弹框 -->
  60. <van-dialog id="van-dialog" />
  61. <!-- toast -->
  62. <van-toast id="van-toast" />