index.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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" @click="goRecommend">
  24. <image src="../../static/commend.png" mode=""></image>
  25. <text>推荐分销品</text>
  26. </view>
  27. <view class="function-content" style="background: #33b5fc;" @click="goAward">
  28. <image src="../../static/award.svg" mode=""></image>
  29. <text>奖励记录</text>
  30. </view>
  31. <view class="function-content" style="background:#fcca2f;" @click="goCashOut">
  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. goRecommend(){
  80. uni.switchTab({
  81. url:'/pages/index/index'
  82. })
  83. },
  84. goAward(){
  85. uni.navigateTo({
  86. url: '/pages/selfCenter/awardPage/index',
  87. success: res => {},
  88. fail: () => {},
  89. complete: () => {}
  90. });
  91. },
  92. goCashOut(){
  93. uni.navigateTo({
  94. url: '/pages/selfCenter/cashoutPage/index',
  95. success: res => {},
  96. fail: () => {},
  97. complete: () => {}
  98. });
  99. },
  100. }
  101. }
  102. </script>
  103. <style>
  104. .content {
  105. display: flex;
  106. flex-direction: column;
  107. align-items: center;
  108. justify-content: center;
  109. }
  110. .selfInfo-box {
  111. width: 100%;
  112. height: 320rpx;
  113. background: #1fa1fb;
  114. padding-top: 5%;
  115. color: #fff;
  116. }
  117. .self-auth {
  118. display: flex;
  119. align-items: center;
  120. }
  121. .self-auth image{
  122. margin-left: 5%;
  123. height:120rpx;
  124. width:120rpx;
  125. border-radius: 50%;
  126. }
  127. .self-auth view{
  128. display: flex;
  129. flex-direction: column;
  130. align-items: center;
  131. }
  132. .self-content {
  133. margin-top: 10%;
  134. display: flex;
  135. justify-content: space-around;
  136. align-items: center;
  137. }
  138. .self-content view{
  139. display: flex;
  140. flex-direction: column;
  141. align-items: center;
  142. }
  143. .function-box {
  144. display: flex;
  145. justify-content: space-around;
  146. align-items: center;
  147. background: #fff;
  148. width: 100%;
  149. height: 240rpx;
  150. }
  151. .function-content {
  152. display: flex;
  153. flex-direction: column;
  154. justify-content: space-around;
  155. align-items: center;
  156. background: #ff685a;
  157. width: 200rpx;
  158. height: 180rpx;
  159. border-radius: 10rpx;
  160. font-size: 30rpx;
  161. color: #fff;
  162. }
  163. .function-content image {
  164. width: 75rpx;
  165. height: 75rpx;
  166. margin-top: 5%;
  167. }
  168. .function-content text {
  169. margin-bottom: 5%;
  170. }
  171. .list-box {
  172. width: 100%;
  173. margin-top: 3%;
  174. font-size: 30rpx;
  175. }
  176. .list-content {
  177. background: #fff;
  178. display: flex;
  179. justify-content: space-between;
  180. align-items: center;
  181. height: 100rpx;
  182. border-bottom: 1px solid #dbdbdb;
  183. }
  184. .apply-box {
  185. display: flex;
  186. align-items: center;
  187. width: 180rpx;
  188. }
  189. .apply-box image {
  190. width: 50rpx;
  191. height: 50rpx;
  192. margin-right: 5%;
  193. }
  194. .margin-left5 {
  195. margin-left: 5%;
  196. }
  197. </style>