index.wxml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!-- 我的视图 -->
  2. <!-- 导航栏 -->
  3. <nav-bar title="我的" left="{{false}}"></nav-bar>
  4. <view class="container">
  5. <!-- 我的顶部视图 -->
  6. <view class="minetop" style="background-image: url('../../images/mine-bg.png'); background-size: 100% 100%; width: 100%; ">
  7. <view class="user-info">
  8. <van-image src="{{avatarUrl}}" round width="50" height="50"></van-image>
  9. <view class="userinfo">
  10. <view class="userinfo-vip">
  11. <text>{{ isOpenEye ? nickName : '******' }}</text>
  12. <text>资金账户</text>
  13. </view>
  14. <view class="userinfo-account">
  15. <text>{{ isOpenEye ? loginid : '******' }}</text>
  16. <text>{{ isOpenEye ? ta.accountid : '******' }}</text>
  17. </view>
  18. </view>
  19. <!-- 闭眼 -->
  20. <van-icon id="eye" name="{{ isOpenEye ? 'eye-o' : 'closed-eye'}}" size="20" bind:click="onEye"/>
  21. </view>
  22. <view class="taaccount-info">
  23. <view class="item">
  24. <text>余额</text>
  25. <text>{{ isOpenEye ? ta.balance : '******'}}</text>
  26. </view>
  27. <view class="item">
  28. <text>冻结</text>
  29. <text>{{ isOpenEye ? ta.freezemargin : '******' }}</text>
  30. </view>
  31. <view class="item">
  32. <text>可用</text>
  33. <text>{{ isOpenEye ? ta.currentbalance : '******' }}</text>
  34. </view>
  35. </view>
  36. </view>
  37. <!-- 出金 入金 -->
  38. <view class="button-view">
  39. <van-button custom-class="into-gold" round id="into-gold" color="#F7A657" bind:click="onButtonPressed">充值</van-button>
  40. <van-button custom-class="out-gold" round id="out-gold" color="#226FD9" bind:click="onButtonPressed">提现</van-button>
  41. </view>
  42. <!-- 功能菜单项 -->
  43. <van-grid column-num="5" wx:if="{{menulists.count != 0}}">
  44. <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}}">
  45. <text slot="text" style="font-size: 13px;">{{itm.title}}</text>
  46. </van-grid-item>
  47. </van-grid>
  48. <!-- 列表菜单项 -->
  49. <van-cell-group>
  50. <van-cell clickable title-class="cell-title" center is-link border wx:for="{{tablelists}}" use-label-slot 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-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" />