myteam.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <view>
  3. <view class="u-p-t-12 u-p-b-20 u-p-l-20 u-p-r-10" style="background: #FFFFFF;">
  4. <cSearch @serbtn="setbtn" />
  5. </view>
  6. <scroll-view class="scheight" :scroll-y="true">
  7. <view v-for="(item,itemkey) in xobj" :key="itemkey">
  8. <view style="background: #FFFFFF;" class="u-p-t-20 u-p-b-20 u-p-l-46 u-p-r-60 u-flex u-row-between">
  9. <view class="u-flex">
  10. <view class="left-ku"></view>
  11. <view>{{item.name}}</view>
  12. </view>
  13. <view>
  14. <!-- <u-icon name="arrow-right"></u-icon> -->
  15. </view>
  16. </view>
  17. <view v-for="(staff,index) in item.users"
  18. class="tam-item u-flex u-row-between u-m-l-30 u-p-b-30 u-p-t-30" :key="index">
  19. <view class="u-flex">
  20. <u-avatar size="90" mode="circle"></u-avatar>
  21. <view class="u-m-l-26 u-font-28">
  22. <view>{{staff.username}}</view>
  23. <view class="u-m-t-18">{{staff.telephone}}</view>
  24. </view>
  25. </view>
  26. <navigator hover-class="none"
  27. :url="`../evaluate/evaluate?userId=${staff.id}&username=${staff.username}`" class="pj-btn">去评价
  28. </navigator>
  29. </view>
  30. </view>
  31. </scroll-view>
  32. </view>
  33. </template>
  34. <script>
  35. import cSearch from '@/components/c-search/index'
  36. import {
  37. syslist
  38. } from '@/api/index.js'
  39. export default {
  40. name: "myteam",
  41. components: {
  42. cSearch
  43. },
  44. data() {
  45. return {
  46. username: "", //搜索关键字
  47. xobj: [] //数据列表
  48. }
  49. },
  50. onLoad(option) {
  51. this.crelist()
  52. },
  53. methods: {
  54. setbtn({
  55. text
  56. }) {
  57. if (text == 10000000000) {
  58. this.username = ""
  59. this.$nextTick(() => {
  60. this.crelist()
  61. })
  62. } else {
  63. this.username = text
  64. this.$nextTick(() => {
  65. this.crelist()
  66. })
  67. }
  68. },
  69. async crelist() {
  70. let {
  71. data
  72. } = await syslist({
  73. username: this.username
  74. })
  75. this.xobj = data
  76. }
  77. }
  78. }
  79. </script>
  80. <style>
  81. page {
  82. width: 100%;
  83. height: 100%;
  84. background: rgba(242, 242, 242, 1);
  85. }
  86. .scheight {
  87. height: calc(100vh - 100rpx);
  88. background: #FFFFFF;
  89. }
  90. .tam-item {
  91. width: 690rpx;
  92. background: #FFFFFF;
  93. border-bottom: 1px solid #e6e6e6;
  94. }
  95. .pj-btn {
  96. width: 120rpx;
  97. height: 60rpx;
  98. background: #4A8BFF;
  99. border-radius: 4rpx;
  100. line-height: 60rpx;
  101. text-align: center;
  102. font-size: 28rpx;
  103. font-family: Microsoft YaHei-3970(82674968);
  104. font-weight: 400;
  105. color: #FFFFFF;
  106. }
  107. .left-ku {
  108. width: 10rpx;
  109. height: 38rpx;
  110. background: #4A8BFF;
  111. margin-right: 19rpx;
  112. }
  113. </style>