index.wxml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. </view>
  36. <!-- 出金 入金 -->
  37. <view class="button-view">
  38. <van-button custom-class="into-gold" round id="into-gold" color="#F7A657" bind:click="onButtonPressed">充值</van-button>
  39. <van-button custom-class="out-gold" round id="out-gold" color="#226FD9" bind:click="onButtonPressed">提现</van-button>
  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}}" icon="{{itm.img}}" icon-color="red" dot link-type="navigateTo" url="{{itm.path}}">
  44. <text slot="text" style="font-size: 13px;">{{itm.title}}</text>
  45. </van-grid-item>
  46. </van-grid>
  47. <!-- 列表菜单项 -->
  48. <van-cell-group>
  49. <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}}">
  50. <van-icon slot="icon" size="25" name="{{ itm.iconfont }}"></van-icon>
  51. </van-cell>
  52. </van-cell-group>
  53. <!-- 登出按钮 -->
  54. <view class="loginOut-view"><van-button custom-class="loginOut" round bindtap="onLoginOut">退出登录</van-button></view>
  55. </view>
  56. <!-- 对话弹框 -->
  57. <van-dialog id="van-dialog" />
  58. <!-- toast -->
  59. <van-toast id="van-toast" />