index.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <view class="myWallet">
  3. <view class="wallet-bg">
  4. <u--image src="/static/pageMine/wallet-bj.png" width="100%" height="550rpx"></u--image>
  5. </view>
  6. <page-navbar :hasBack="true" bgColor="transparent" title="我的钱包"></page-navbar>
  7. <view class="wallet-main">
  8. <view class="wallet-card">
  9. <view class="fl-flex-item wallet-secure">
  10. <view class="fl-text-title">*烊的钱包</view>
  11. <view class="fl-flex">
  12. <u--image src="/static/pageMine/secure.png" width="32rpx" height="32rpx"></u--image>
  13. <view class="f-s-24 text-33 u-m-l-4">安全保障中</view>
  14. </view>
  15. </view>
  16. <view class="u-m-b-40">
  17. <view class="f-s-28 text-66 u-m-b-16"> 我的资产(元)</view>
  18. <view class="f-s-56 color-primary text-bold"> 3453.2</view>
  19. </view>
  20. <view class="fl-flex immediately">
  21. <view>立即提现</view>
  22. <u-icon name="arrow-right" color="#fff" size="16" top="2" />
  23. </view>
  24. <view class="fl-flex-item">
  25. <view class="fl-flex" v-for="(item, index) in 4" :key="index">
  26. <view class="direction">
  27. <view class="f-s-24 text-666 u-m-b-4">总收益</view>
  28. <view class="f-s-28 text-333">7794.0</view>
  29. </view>
  30. <view v-if="index !== 3" class="wallet-card-line"></view>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="fl-flex-item u-m-t-26 u-m-b-26">
  35. <view class="f-s-32 text-primary text-bold">余额明细</view>
  36. <view class="fl-flex" @tap="$Router.push('/PageMine/myWallet/walletDetail')">
  37. <view class="f-s-24 text-999 u-m-r-8">查看全部</view>
  38. <u-icon name="arrow-right" color="#999" size="12" />
  39. </view>
  40. </view>
  41. <wallet-item></wallet-item>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. import WalletItem from './walletItem.vue';
  47. export default {
  48. name: 'myWallet',
  49. components: { WalletItem },
  50. };
  51. </script>
  52. <style lang="scss" scoped>
  53. .myWallet {
  54. height: 100%;
  55. position: relative;
  56. .wallet-bg {
  57. position: absolute;
  58. left: 0;
  59. bottom: 0;
  60. right: 0;
  61. top: 0;
  62. z-index: -99;
  63. }
  64. .wallet-main {
  65. padding: 20rpx 32rpx;
  66. .wallet-card {
  67. height: 400rpx;
  68. padding: 32rpx;
  69. background-color: #fff;
  70. box-sizing: border-box;
  71. border-radius: 16rpx;
  72. position: relative;
  73. .wallet-secure {
  74. padding-bottom: 32rpx;
  75. border-bottom: 1px solid #eaebeb;
  76. margin-bottom: 32rpx;
  77. }
  78. .immediately {
  79. width: 194rpx;
  80. height: 66rpx;
  81. color: #fff;
  82. background: #215ebe;
  83. border-radius: 524rpx 0rpx 0rpx 524rpx;
  84. align-items: center;
  85. justify-content: center;
  86. font-size: 28rpx;
  87. position: absolute;
  88. right: 0;
  89. top: 160rpx;
  90. box-sizing: border-box;
  91. padding-left: 30rpx;
  92. }
  93. .wallet-card-line {
  94. height: 60rpx;
  95. width: 2rpx;
  96. background-color: #ebebeb;
  97. margin-left: 50rpx;
  98. }
  99. }
  100. }
  101. }
  102. </style>