my.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <template>
  2. <view class="page">
  3. <uni-nav-bar :fixed="true" background-color="#F7F7F7" :border="false" :statusBar="true" title="个人中心" />
  4. <view class="flex-row use">
  5. <view class="avatar" @click="goUserInfo">
  6. <image :src="userInfo.img || '/static/ud4.png'"></image>
  7. </view>
  8. <view class="flex-col justify-around useMsg">
  9. <view class="flex-row">
  10. <text class="name">{{userInfo.name}}</text>
  11. <view class="tag">{{userInfo.isManager === 1? '拓客经理':'拓客专员'}}</view>
  12. </view>
  13. <view>
  14. <text class="phone">电话:{{userInfo.phone}}</text>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="statistics flex-col">
  19. <view class="statisticsTitle">
  20. <text >拓客统计</text>
  21. </view>
  22. <view class="flex-row justify-start ">
  23. <view class="statisticsItem flex-col " v-if="userInfo.isManager === 1" @click="goSpecialists">
  24. <view class="flex-row justify-center">
  25. <u-icon name="/static/my/fuwuNmber.png" size="28"></u-icon>
  26. </view>
  27. <view class="flex-row justify-center statisticsKey">
  28. <text>我的专员(人)</text>
  29. </view>
  30. <view class="flex-row justify-center statisticsValue">
  31. <text>0</text>
  32. </view>
  33. </view>
  34. <view class="statisticsItem flex-col " v-if="userInfo.isManager !== 1" @click="">
  35. <view class="flex-row justify-center">
  36. <u-icon name="/static/my/fuwuNmber.png" size="28"></u-icon>
  37. </view>
  38. <view class="flex-row justify-center statisticsKey">
  39. <text>推广收益(元)</text>
  40. </view>
  41. <view class="flex-row justify-center statisticsValue">
  42. <text>85.22</text>
  43. </view>
  44. </view>
  45. <view class="statisticsItem statisticsItemBorder flex-col " v-if="userInfo.isManager !== 1">
  46. <view class="flex-row justify-center">
  47. <u-icon name="/static/my/jinriyeji.png" size="28"></u-icon>
  48. </view>
  49. <view class="flex-row justify-center statisticsKey">
  50. <text>我的直推(人)</text>
  51. </view>
  52. <view class="flex-row justify-center statisticsValue">
  53. <text>0</text>
  54. </view>
  55. </view>
  56. <view class="statisticsItem statisticsItemBorder flex-col " v-if="userInfo.isManager !== 1">
  57. <view class="flex-row justify-center">
  58. <u-icon name="/static/my/benyueyeji.png" size="28"></u-icon>
  59. </view>
  60. <view class="flex-row justify-center statisticsKey">
  61. <text>我的间推(人)</text>
  62. </view>
  63. <view class="flex-row justify-center statisticsValue">
  64. <text>0</text>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <view class="tuoke " v-if="userInfo.isManager !== 1">
  70. <view class="statisticsTitle ">
  71. <text >今日统计</text>
  72. </view>
  73. <view class="flex-row justify-center ">
  74. <view class="statisticsItem flex-col" :style="{'width':'50%'}">
  75. <view class="flex-row justify-center">
  76. <u-icon name="/static/my/jinrirenwu.png" size="28"></u-icon>
  77. </view>
  78. <view class="flex-row justify-center statisticsKey">
  79. <text>今日推广</text>
  80. </view>
  81. <view class="flex-row justify-center statisticsValue">
  82. <text>{{staticsData.todayTask || 0}}</text>
  83. </view>
  84. </view>
  85. <view class="statisticsItem statisticsItemBorder flex-col" :style="{'width':'50%'}">
  86. <view class="flex-row justify-center">
  87. <u-icon name="/static/my/benyuerenwu.png" size="28"></u-icon>
  88. </view>
  89. <view class="flex-row justify-center statisticsKey">
  90. <text>今日收益</text>
  91. </view>
  92. <view class="flex-row justify-center statisticsValue">
  93. <text>{{staticsData.finishTask || 0}}</text>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. </template>
  100. <script>
  101. export default {
  102. data() {
  103. return {
  104. staticsData:{},
  105. userInfo:{}
  106. }
  107. },
  108. onShow(){
  109. this.userInfo = uni.getStorageSync('spreadUserInfo')
  110. },
  111. methods: {
  112. goSpecialists(){
  113. uni.navigateTo({
  114. url: '/pages/specialistsList/specialistsList'
  115. })
  116. },
  117. goUserInfo(){
  118. uni.navigateTo({
  119. url: '/pages/userInfo/userInfo'
  120. })
  121. },
  122. }
  123. }
  124. </script>
  125. <style lang="scss" scoped>
  126. @import './index.rpx.css';
  127. </style>