myGroup.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <template>
  2. <view class="main">
  3. <view class="head">
  4. <navbar :config="config" backColor="#666"></navbar>
  5. <view class="mydata">
  6. <view class="mydata_l">
  7. <image :src="userInfo.head_photo" mode="" v-if="userInfo.head_photo"></image>
  8. <image :src="$mConfig.staticUrl+'/head-on.png'" mode="" v-else></image>
  9. <view>
  10. <view>{{userInfo.real_name}}</view>
  11. <view>
  12. <text v-if="userInfo.service_system_province==2">爱心小屋</text>
  13. <text v-if="userInfo.service_system_province==3">服务驿站</text>
  14. <text v-if="userInfo.service_system_province==4">服务中心</text>
  15. <text v-if="userInfo.service_system_province==5">市级</text>
  16. <text v-if="userInfo.service_system_province==6">省级公司</text>
  17. <text v-if="userInfo.service_system_province==7">大区公司</text>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="mydata_r">合计:<text>{{num}}</text>人</view>
  22. </view>
  23. <view class="head_shade"></view>
  24. </view>
  25. <view class="listBox">
  26. <view class="item" v-for="(v,i) in list" :key="i">
  27. <view class="item_l">
  28. <image :src="v.head_photo" mode="" v-if="v.head_photo"></image>
  29. <image :src="$mConfig.staticUrl+'/head-on.png'" mode="" v-else></image>
  30. <view>
  31. <view class="item_l_name">{{v.real_name||'无'}}</view>
  32. <view class="item_l_tel">{{v.mobile}}</view>
  33. <view class="item_l_time">入驻时间:{{v.register_time}}</view>
  34. </view>
  35. </view>
  36. <view class="item_r">
  37. <text v-if="v.service_system_province==0">普通会员</text>
  38. <text v-if="v.service_system_province==1">创客</text>
  39. <text v-if="v.service_system_province==2">爱心小屋</text>
  40. <text v-if="v.service_system_province==3">服务驿站</text>
  41. <text v-if="v.service_system_province==4">服务中心</text>
  42. <text v-if="v.service_system_province==5">市级</text>
  43. <text v-if="v.service_system_province==6">省级公司</text>
  44. <text v-if="v.service_system_province==7">大区公司</text>
  45. </view>
  46. </view>
  47. <view>
  48. <noData v-if="list<=0"></noData>
  49. </view>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. import noData from "@/components/noData/nodata.vue"
  55. export default {
  56. components: {
  57. noData
  58. },
  59. data() {
  60. return {
  61. config: {
  62. back: true,
  63. title: '我的团队',
  64. color: '#1a1a1a',
  65. backgroundColor: [1, "#fff"],
  66. statusBarFontColor: 'black',
  67. // backgroundImg: "/static/operationCenter/headBg.png"
  68. },
  69. list: [],
  70. num: 0,
  71. userInfo: {}
  72. }
  73. },
  74. onLoad(options) {
  75. this.userInfo = JSON.parse(options.userInfo)
  76. this.getList()
  77. },
  78. methods: {
  79. // 获取列表
  80. getList() {
  81. let serviceSystem = 0
  82. this.$http.get(`/account/selectUserByServiceSystem`).then(res => {
  83. if (res && res.code == 200) {
  84. this.list = res.data;
  85. this.num = this.list.length
  86. }
  87. })
  88. },
  89. }
  90. }
  91. </script>
  92. <style lang="scss" scoped>
  93. .main {
  94. .head {
  95. // background: linear-gradient(180deg, #2bba26 0%, #047753 100%);
  96. background: url('/static/convenienceService/detailsBg.png')0 0 no-repeat;
  97. background-size: 752rpx 510rpx;
  98. position: relative;
  99. /deep/ .hx-navbar__fixed {
  100. background: url('/static/convenienceService/detailsBg.png')0 0 no-repeat;
  101. background-size: 752rpx 510rpx;
  102. }
  103. .mydata {
  104. display: flex;
  105. justify-content: space-between;
  106. align-items: center;
  107. padding: 30rpx 30rpx 80rpx 30rpx;
  108. .mydata_l {
  109. display: flex;
  110. align-items: center;
  111. image {
  112. width: 115rpx;
  113. height: 115rpx;
  114. border-radius: 50%;
  115. margin-right: 20rpx;
  116. }
  117. view {
  118. font-size: 32rpx;
  119. color: #FFFFFF;
  120. }
  121. }
  122. .mydata_r {
  123. font-size: 28rpx;
  124. color: #FFFFFF;
  125. text {
  126. font-size: 36rpx;
  127. }
  128. }
  129. }
  130. .head_shade {
  131. width: 100%;
  132. height: 40rpx;
  133. position: absolute;
  134. bottom: 0;
  135. left: 0;
  136. background: #FFFFFF;
  137. border-radius: 40rpx 40rpx 0 0;
  138. }
  139. }
  140. .listBox {
  141. padding: 0 30rpx;
  142. .item {
  143. display: flex;
  144. justify-content: space-between;
  145. padding: 30rpx 0;
  146. border-bottom: 1rpx solid #E6E6E6;
  147. .item_l {
  148. display: flex;
  149. image {
  150. width: 106rpx;
  151. height: 106rpx;
  152. border-radius: 50%;
  153. margin-right: 50rpx;
  154. }
  155. >view {
  156. line-height: 34rpx;
  157. }
  158. .item_l_name {
  159. font-size: 28rpx;
  160. color: #1A1A1A;
  161. }
  162. .item_l_tel,
  163. .item_l_time {
  164. font-size: 24rpx;
  165. color: #999999;
  166. }
  167. }
  168. .item_r {
  169. text {
  170. font-size: 24rpx;
  171. color: #22A834;
  172. }
  173. }
  174. }
  175. }
  176. }
  177. </style>