index.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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" @click="applyPower">
  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;" @click="goHelpPage">
  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. <uni-popup ref="showtip" type="center" :mask-click="false" @change="change">
  60. <view class="uni-tip">
  61. <!-- <text class="uni-tip-title">警告</text> -->
  62. <text class="uni-tip-content">您的申请需要后台审核,确定后请耐心等待结果。</text>
  63. <view class="uni-tip-group-button">
  64. <text class="uni-tip-button" @click="cancel()">取消</text>
  65. <text class="uni-tip-button" @click="cancel()">确定</text>
  66. </view>
  67. </view>
  68. </uni-popup>
  69. </view>
  70. </template>
  71. <script>
  72. import uniPopup from '@/components/uni-popup/uni-popup.vue'
  73. export default {
  74. components: {
  75. uniPopup,
  76. },
  77. data() {
  78. return {
  79. title: 'selfCenter'
  80. }
  81. },
  82. onLoad() {
  83. },
  84. methods: {
  85. goTeamDetail(){
  86. uni.navigateTo({
  87. url: '/pages/selfCenter/recommendTeam/index',
  88. success: res => {},
  89. fail: () => {},
  90. complete: () => {}
  91. });
  92. },
  93. goRecommend(){
  94. uni.switchTab({
  95. url:'/pages/index/index'
  96. })
  97. },
  98. goAward(){
  99. uni.navigateTo({
  100. url: '/pages/selfCenter/awardPage/index',
  101. success: res => {},
  102. fail: () => {},
  103. complete: () => {}
  104. });
  105. },
  106. goCashOut(){
  107. uni.navigateTo({
  108. url: '/pages/selfCenter/cashoutPage/index',
  109. success: res => {},
  110. fail: () => {},
  111. complete: () => {}
  112. });
  113. },
  114. goHelpPage(){
  115. uni.navigateTo({
  116. url: '/pages/selfCenter/helpPage/index',
  117. success: res => {},
  118. fail: () => {},
  119. complete: () => {}
  120. });
  121. },
  122. applyPower(){
  123. this.$refs.showtip.open()
  124. },
  125. cancel(type) {
  126. this.$refs.showtip.close()
  127. },
  128. change(e) {
  129. console.log('是否打开:' + e.show)
  130. }
  131. }
  132. }
  133. </script>
  134. <style>
  135. .content {
  136. display: flex;
  137. flex-direction: column;
  138. align-items: center;
  139. justify-content: center;
  140. }
  141. .selfInfo-box {
  142. width: 100%;
  143. height: 320rpx;
  144. background: #1fa1fb;
  145. padding-top: 5%;
  146. color: #fff;
  147. }
  148. .self-auth {
  149. display: flex;
  150. align-items: center;
  151. }
  152. .self-auth image{
  153. margin-left: 5%;
  154. height:120rpx;
  155. width:120rpx;
  156. border-radius: 50%;
  157. }
  158. .self-auth view{
  159. display: flex;
  160. flex-direction: column;
  161. align-items: center;
  162. }
  163. .self-content {
  164. margin-top: 10%;
  165. display: flex;
  166. justify-content: space-around;
  167. align-items: center;
  168. }
  169. .self-content view{
  170. display: flex;
  171. flex-direction: column;
  172. align-items: center;
  173. }
  174. .function-box {
  175. display: flex;
  176. justify-content: space-around;
  177. align-items: center;
  178. background: #fff;
  179. width: 100%;
  180. height: 240rpx;
  181. }
  182. .function-content {
  183. display: flex;
  184. flex-direction: column;
  185. justify-content: space-around;
  186. align-items: center;
  187. background: #ff685a;
  188. width: 200rpx;
  189. height: 180rpx;
  190. border-radius: 10rpx;
  191. font-size: 30rpx;
  192. color: #fff;
  193. }
  194. .function-content image {
  195. width: 75rpx;
  196. height: 75rpx;
  197. margin-top: 5%;
  198. }
  199. .function-content text {
  200. margin-bottom: 5%;
  201. }
  202. .list-box {
  203. width: 100%;
  204. margin-top: 3%;
  205. font-size: 30rpx;
  206. }
  207. .list-content {
  208. background: #fff;
  209. display: flex;
  210. justify-content: space-between;
  211. align-items: center;
  212. height: 100rpx;
  213. border-bottom: 1px solid #dbdbdb;
  214. }
  215. .apply-box {
  216. display: flex;
  217. align-items: center;
  218. width: 180rpx;
  219. }
  220. .apply-box image {
  221. width: 50rpx;
  222. height: 50rpx;
  223. margin-right: 5%;
  224. }
  225. .margin-left5 {
  226. margin-left: 5%;
  227. }
  228. /* 提示窗口 */
  229. .uni-tip {
  230. padding: 15px;
  231. background: #fff;
  232. box-sizing: border-box;
  233. border-radius: 10px;
  234. }
  235. .uni-tip-title {
  236. text-align: center;
  237. /* font-weight: bold; */
  238. font-size: 28upx;
  239. color: #333;
  240. }
  241. .uni-tip-content {
  242. font-size: 14px;
  243. color: #666;
  244. }
  245. .uni-tip-group-button {
  246. margin-top: 10px;
  247. display: flex;
  248. }
  249. .uni-tip-button {
  250. width: 100%;
  251. text-align: center;
  252. font-size: 14px;
  253. color: #3b4144;
  254. }
  255. </style>