index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <view class="content">
  3. <view class="selfInfo-box">
  4. <view class="self-auth">
  5. <image src="../../static/bed-bg.png" mode=""></image>
  6. <view>
  7. <text>棉花糖</text>
  8. <text style="margin-left: 30%;font-size: 28rpx;">156****3232</text>
  9. </view>
  10. </view>
  11. <view class="self-content">
  12. <view>
  13. <text>13982</text>
  14. <text style="font-size: 28rpx;">我的积分</text>
  15. </view>
  16. <view>
  17. <text>127.83元</text>
  18. <text style="font-size: 28rpx;">已提现</text>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="function-box">
  23. <view class="function-content">
  24. <image src="../../static/commend.png" mode=""></image>
  25. <text>推荐分销品</text>
  26. </view>
  27. <view class="function-content" style="background: #33b5fc;">
  28. <image src="../../static/award.svg" mode=""></image>
  29. <text>奖励记录</text>
  30. </view>
  31. <view class="function-content" style="background:#fcca2f;">
  32. <image src="../../static/cashout.svg" mode=""></image>
  33. <text>提现记录</text>
  34. </view>
  35. </view>
  36. <view class="list-box">
  37. <view class="list-content">
  38. <text class="margin-left5">分销资格</text>
  39. <view class="apply-box">
  40. <text style="color: #999;">点击申请</text>
  41. <image src="../../static/arrow-right2.png" mode=""></image>
  42. </view>
  43. </view>
  44. <view class="list-content" @click="goTeamDetail">
  45. <text class="margin-left5">分销团队</text>
  46. <view class="apply-box">
  47. <text style="color: #999;visibility: hidden;">点击申请</text>
  48. <image src="../../static/arrow-right2.png" mode=""></image>
  49. </view>
  50. </view>
  51. <view class="list-content" style="border-bottom: none;">
  52. <text class="margin-left5">帮助中心</text>
  53. <view class="apply-box">
  54. <text style="color: #999;visibility: hidden;">点击申请</text>
  55. <image src="../../static/arrow-right2.png" mode=""></image>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </template>
  61. <script>
  62. export default {
  63. data() {
  64. return {
  65. title: 'selfCenter'
  66. }
  67. },
  68. onLoad() {
  69. },
  70. methods: {
  71. goTeamDetail(){
  72. uni.navigateTo({
  73. url: '/pages/selfCenter/recommendTeam/index',
  74. success: res => {},
  75. fail: () => {},
  76. complete: () => {}
  77. });
  78. }
  79. }
  80. }
  81. </script>
  82. <style>
  83. .content {
  84. display: flex;
  85. flex-direction: column;
  86. align-items: center;
  87. justify-content: center;
  88. }
  89. .selfInfo-box {
  90. width: 100%;
  91. height: 330rpx;
  92. background: #1fa1fb;
  93. padding-top: 5%;
  94. color: #fff;
  95. }
  96. .self-auth {
  97. display: flex;
  98. align-items: center;
  99. }
  100. .self-auth image{
  101. margin-left: 5%;
  102. height:120rpx;
  103. width:120rpx;
  104. border-radius: 50%;
  105. }
  106. .self-auth view{
  107. display: flex;
  108. flex-direction: column;
  109. align-items: center;
  110. }
  111. .self-content {
  112. margin-top: 10%;
  113. display: flex;
  114. justify-content: space-around;
  115. align-items: center;
  116. }
  117. .self-content view{
  118. display: flex;
  119. flex-direction: column;
  120. align-items: center;
  121. }
  122. .function-box {
  123. display: flex;
  124. justify-content: space-around;
  125. align-items: center;
  126. background: #fff;
  127. width: 100%;
  128. height: 240rpx;
  129. }
  130. .function-content {
  131. display: flex;
  132. flex-direction: column;
  133. justify-content: space-around;
  134. align-items: center;
  135. background: #ff685a;
  136. width: 200rpx;
  137. height: 180rpx;
  138. border-radius: 10rpx;
  139. font-size: 30rpx;
  140. color: #fff;
  141. }
  142. .function-content image {
  143. width: 75rpx;
  144. height: 75rpx;
  145. margin-top: 5%;
  146. }
  147. .function-content text {
  148. margin-bottom: 5%;
  149. }
  150. .list-box {
  151. width: 100%;
  152. margin-top: 3%;
  153. font-size: 30rpx;
  154. }
  155. .list-content {
  156. background: #fff;
  157. display: flex;
  158. justify-content: space-between;
  159. align-items: center;
  160. height: 100rpx;
  161. border-bottom: 1px solid #dbdbdb;
  162. }
  163. .apply-box {
  164. display: flex;
  165. align-items: center;
  166. width: 180rpx;
  167. }
  168. .apply-box image {
  169. width: 50rpx;
  170. height: 50rpx;
  171. margin-right: 5%;
  172. }
  173. .margin-left5 {
  174. margin-left: 5%;
  175. }
  176. </style>