You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

200 lines
4.5 KiB

8 months ago
  1. <template>
  2. <view class="distribution">
  3. <mNavbar title="分销代理" :leftClick="leftClick" />
  4. <view class="box">
  5. <view class="box1" />
  6. <view class="content">
  7. <view class="content-box">
  8. <view class="content-box1">
  9. <view>可用余额</view>
  10. <view>累计提现</view>
  11. <view>累积收益</view>
  12. </view>
  13. <view class="content-box2">
  14. <view>1200.00</view>
  15. <view>1200.00</view>
  16. <view>1200.00</view>
  17. </view>
  18. <view class="content-box3">
  19. <view @click="toNodes">
  20. <text>粉丝</text>
  21. </view>
  22. <view @click="toWallet">
  23. <text>提现</text>
  24. </view>
  25. <view>
  26. <text>二维码</text>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. <van-tabs>
  33. <van-tab title="费用明细">
  34. <view class="tab-box">
  35. <view class="tab-box1">
  36. <van-cell center border title="头部按摩放松" value="-199.00" label="2024-01-23 11:30:22" />
  37. <van-cell center border title="头部按摩放松" value="-199.00" label="2024-01-23 11:30:22" />
  38. <van-cell center border title="头部按摩放松" value="-199.00" label="2024-01-23 11:30:22" />
  39. <van-cell center border title="头部按摩放松" value="-199.00" label="2024-01-23 11:30:22" />
  40. <van-cell center border title="头部按摩放松" value="-199.00" label="2024-01-23 11:30:22" />
  41. <van-cell center border title="头部按摩放松" value="-199.00" label="2024-01-23 11:30:22" />
  42. <van-cell center border title="头部按摩放松" value="-199.00" label="2024-01-23 11:30:22" />
  43. <van-cell center border title="头部按摩放松" value="-199.00" label="2024-01-23 11:30:22" />
  44. <van-cell center border title="头部按摩放松" value="-199.00" label="2024-01-23 11:30:22" />
  45. <van-cell center border title="头部按摩放松" value="-199.00" label="2024-01-23 11:30:22" />
  46. <van-cell center border title="头部按摩放松" value="-199.00" label="2024-01-23 11:30:22" />
  47. </view>
  48. </view>
  49. </van-tab>
  50. <van-tab title="提现记录"></van-tab>
  51. <van-tab title="收益记录"></van-tab>
  52. </van-tabs>
  53. </view>
  54. </template>
  55. <script>
  56. import mNavbar from '@/components/base/m-navbar.vue'
  57. export default {
  58. components: {
  59. mNavbar,
  60. },
  61. data() {
  62. return {
  63. }
  64. },
  65. methods: {
  66. leftClick() { //返回个人中心
  67. uni.switchTab({
  68. url: '/pages/index/center'
  69. })
  70. },
  71. toNodes() {
  72. uni.navigateTo({
  73. url: '/pages/mine/nodes'
  74. })
  75. },
  76. toWallet(){
  77. uni.navigateTo({
  78. url: '/pages/mine/wallet'
  79. })
  80. }
  81. }
  82. }
  83. </script>
  84. <style scoped lang="scss">
  85. .distribution {
  86. background-color: #f3f3f3;
  87. min-height: 100vh;
  88. .box {
  89. position: relative;
  90. width: 100%;
  91. height: 175px;
  92. background-color: #fff;
  93. .box1 {
  94. height: 100px;
  95. background: linear-gradient(to right, #4899a6, #6fc6ad);
  96. }
  97. .content {
  98. position: absolute;
  99. display: flex;
  100. justify-content: space-around;
  101. width: 94%;
  102. height: 140px;
  103. background-color: #F5FDFB;
  104. top: 20px;
  105. left: 3%;
  106. z-index: 9;
  107. border-radius: 10px;
  108. box-shadow: 0px 1px 7px 1px #4899a6;
  109. .content-box {
  110. display: flex;
  111. width: 94%;
  112. height: 94%;
  113. flex-direction: column;
  114. align-items: self-end;
  115. .content-box1 {
  116. display: flex;
  117. width: 100%;
  118. height: 60px;
  119. justify-content: center;
  120. align-items: center;
  121. font-size: 13px;
  122. view {
  123. width: 200rpx;
  124. display: flex;
  125. justify-content: space-around;
  126. }
  127. }
  128. .content-box2 {
  129. display: flex;
  130. width: 100%;
  131. height: 60px;
  132. justify-content: center;
  133. align-items: center;
  134. view {
  135. width: 200rpx;
  136. display: flex;
  137. justify-content: space-around;
  138. color: #4C9FA6;
  139. font-size: 18px;
  140. }
  141. }
  142. .content-box3 {
  143. display: flex;
  144. width: 100%;
  145. height: 60px;
  146. justify-content: center;
  147. align-items: center;
  148. view {
  149. width: 200rpx;
  150. display: flex;
  151. justify-content: space-around;
  152. align-items: center;
  153. }
  154. text {
  155. display: inline-block;
  156. padding: 5px 20px;
  157. text-align: center;
  158. border: 1px solid #96C8CB;
  159. color: #76B7BA;
  160. border-radius: 5px;
  161. }
  162. }
  163. }
  164. }
  165. }
  166. .tab-box {
  167. width: 96%;
  168. margin-top: 10px;
  169. margin-left: 2%;
  170. background-color: #fff;
  171. border-radius: 10px;
  172. overflow: hidden;
  173. .tab-box1 {
  174. margin-top: 10px;
  175. }
  176. }
  177. }
  178. </style>