index.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <template>
  2. <view class="page" >
  3. <view class="backImage">
  4. <image class="backImage" src="/static/me/u655.png"></image>
  5. </view>
  6. <view class="content">
  7. <view class="userInfo flex-row">
  8. <view class="userPhoto">
  9. <image class="userPhoto" src="/static/logo.png"></image>
  10. </view>
  11. <view class="userTitle flex-col justify-center">
  12. <text class="nickName">HI,亲爱的{{ userInfo.ncikName }}</text>
  13. <view class="flex-row">
  14. <text class="xinxTitle">啊擦黄寺大街快乐崇拜哈少得可怜</text>
  15. <u-icon name="arrow-right" color="#333333" size="16"></u-icon>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="sudoku flex-col">
  20. <view class="balance-name">
  21. <text>我的资产</text>
  22. </view>
  23. <view class="balance flex-row justify-around">
  24. <view @click="goRecharge">
  25. <view class="icon flex-row justify-center">
  26. <u-icon name="/static/me/u701.png" color="red" size="30"></u-icon>
  27. </view>
  28. <view class="name">
  29. 余额
  30. </view>
  31. <view class="num">
  32. <text>¥{{userInfo.balance || 0}}</text>
  33. </view>
  34. </view>
  35. <view>
  36. <view class="icon flex-row justify-center">
  37. <u-icon name="/static/me/u680.png" color="red" size="30"></u-icon>
  38. </view>
  39. <view class="name">
  40. 积分
  41. </view>
  42. <view class="num">
  43. <text>{{userInfo.integral|| 0}}</text>
  44. </view>
  45. </view>
  46. <view @click="goCoupon">
  47. <view class="icon flex-row justify-center">
  48. <u-icon name="/static/me/u687.png" color="red" size="30"></u-icon>
  49. </view>
  50. <view class="name">
  51. 优惠券
  52. </view>
  53. <view class="num">
  54. <text>{{userInfo.coupon || 0}}</text>
  55. </view>
  56. </view>
  57. <view>
  58. <view class="icon flex-row justify-center">
  59. <u-icon name="/static/me/u694.png" color="red" size="30"></u-icon>
  60. </view>
  61. <view class="name">
  62. 电子币
  63. </view>
  64. <view class="num">
  65. <text>{{userInfo.electronicCurrency || 0}}</text>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="group">
  71. <uni-list>
  72. <uni-list-item :to="item.to" :title="item.title" showArrow :thumb="item.thumb" thumb-size="sm" :rightText="item.rightText" v-for="(item,index) in group1" :key="index" />
  73. </uni-list>
  74. </view>
  75. <view class="group">
  76. <uni-list>
  77. <uni-list-item :to="item.to" :title="item.title" showArrow :thumb="item.thumb" thumb-size="sm" v-for="(item,index) in group2" :key="index" />
  78. </uni-list>
  79. </view>
  80. <view class="tabBarLineHeight"></view>
  81. </view>
  82. <view class="tabBarView">
  83. <tab-bar :tabIndex="tabIndex"></tab-bar>
  84. </view>
  85. </view>
  86. </template>
  87. <script >
  88. import tabBar from "../../components/tabBar/tabBar";
  89. export default {
  90. components: {
  91. tabBar
  92. },
  93. data() {
  94. return {
  95. group1:[
  96. // {thumb:'/static/me/u1796.png',title:'贡献奖励记录',rightText:'',to:''},
  97. {thumb:'/static/me/u1803.png',title:'实名认证',rightText:'',to:'/myPages/realNameAuth/index'},
  98. // {thumb:'/static/me/u1812.png',title:'服务对象管理',rightText:'',to:'/myPages/ServiceObjectManagement/index'},
  99. {thumb:'/static/me/u3.png',title:'推广中心',rightText:'',to:'/myPages/promotionCenter/index'},
  100. // {thumb:'/static/me/u1833.png',title:'新老系统切换',rightText:'',to:'/myPages/systemSwitch/index'},
  101. {thumb:'/static/me/u826.png',title:'储值服务',rightText:'',to:'/myPages/recharge/index'}
  102. ],
  103. group2:[
  104. {thumb:'/static/me/u1829.png',title:'关于我们',rightText:'',to:'/myPages/aboutOur/index'},
  105. {thumb:'/static/me/u10.png',title:'个人信息',rightText:'',to:'/myPages/userInfo/index'},
  106. {thumb:'/static/me/u101.png',title:'设置',rightText:'',to:'/myPages/setting/index'}
  107. ],
  108. height:'',
  109. title: 'Hello',
  110. tabIndex: 4,
  111. userInfo: {}
  112. }
  113. },
  114. // 分享到朋友圈
  115. onShareTimeline() { },
  116. // 分享到用户
  117. onShareAppMessage(OBJECT) { },
  118. onLoad() {
  119. uni.hideTabBar({
  120. animation:false
  121. })
  122. let sysInfo = uni.getSystemInfoSync()
  123. this.height = sysInfo.screenHeight +'px'
  124. },
  125. onShow(){
  126. this.userInfo = uni.getStorageSync('userInfo')
  127. if (this.userInfo.isAttestation){
  128. this.group1[0].rightText = '已认证'
  129. }else {
  130. this.group1[0].rightText = '未实名认证,去认证'
  131. }
  132. },
  133. methods: {
  134. goRecharge(){
  135. uni.navigateTo({
  136. url:'/myPages/recharge/index'
  137. })
  138. },
  139. goCoupon(){
  140. uni.navigateTo({
  141. url:'/myPages/coupon/index'
  142. })
  143. }
  144. }
  145. }
  146. </script>
  147. <style>
  148. @import '/common/css/common.css';
  149. @import './index.rpx.css';
  150. </style>