groupAb.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <view>
  3. <view class="qu" v-for="qu in data">
  4. <view class="tip">
  5. <text>{{qu.title}}</text>
  6. </view>
  7. <view class="row uni-flex uni-row" v-for="friend in qu.children">
  8. <view class="row_logo">
  9. <image :src="BaseUrl+friend.imgSrc"></image>
  10. </view>
  11. <view class="flex-item">
  12. <u-text :text="friend.name" size="18" bold></u-text>
  13. <u-text mode="phone" :text="friend.phone" size="15" call="true"></u-text>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. export default {
  21. data() {
  22. return {
  23. data: []
  24. }
  25. },
  26. onLoad() {
  27. this.getabData()
  28. },
  29. onShow() {
  30. this.getabData()
  31. },
  32. methods: {
  33. async getabData() {
  34. const {
  35. data: res
  36. } = await this.$httpRequest({
  37. url: '/api/ci/gab?data=' + uni.getStorageSync("groupUserCode"),
  38. method: 'get',
  39. })
  40. if (res.code == 200) {
  41. this.data = res.data
  42. } else {
  43. this.data = []
  44. uni.showToast({
  45. icon: 'none',
  46. title: res.msg
  47. })
  48. }
  49. },
  50. }
  51. }
  52. </script>
  53. <style lang="scss">
  54. page {
  55. background: #EEEEEE;
  56. }
  57. .row {
  58. background: white;
  59. display: flex;
  60. width: 100%;
  61. height: 60px;
  62. .row_logo {
  63. width: 20%;
  64. display: flex;
  65. align-items: center;
  66. image {
  67. width: 50px;
  68. height: 50px;
  69. margin: auto;
  70. border-radius: 5px;
  71. }
  72. }
  73. .row_left {
  74. height: 100%;
  75. width: 40%;
  76. display: flex;
  77. align-items: center;
  78. border: {
  79. bottom: 1px solid #DDDDDD;
  80. }
  81. text {
  82. font-size: 16px;
  83. font-family: 'syht';
  84. display: block;
  85. }
  86. }
  87. .row_right {
  88. height: 100%;
  89. width: 40%;
  90. display: flex;
  91. align-items: center;
  92. border: {
  93. bottom: 1px solid #DDDDDD;
  94. }
  95. text {
  96. font-size: 16px;
  97. font-family: 'syht';
  98. display: block;
  99. }
  100. }
  101. }
  102. .row:last-child {
  103. .row_right {
  104. border: 0;
  105. }
  106. }
  107. .qu {
  108. .tip {
  109. margin: 3px 0;
  110. font-size: 14px;
  111. font-family: 'syht';
  112. text {
  113. margin-left: 13px;
  114. }
  115. }
  116. }
  117. </style>