expertServices.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <template>
  2. <view class="content">
  3. <!-- 我的服务顾问 -->
  4. <view class="ad-bg-box" v-if="users" :style="{background:'#'+themeColor}">
  5. <view class="ad-box">
  6. <view class="ad-sec-tit">
  7. 我的服务顾问
  8. </view>
  9. <view class="ad-con-box">
  10. <image :src="usersAvatarStr" mode="aspectFit" class="ad-icon-mine"></image>
  11. <view class="ad-list-r">
  12. <text class="ad-name">{{users.name}}</text>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. <!-- 全部服务顾问横栏 -->
  18. <view class="mid-box">
  19. <view class="mid-v-line" :style="{background:'#'+themeColor}"></view>
  20. <view class="mid-sec-tit">全部服务顾问</view>
  21. </view>
  22. <!-- 服务顾问list -->
  23. <view class="ad-list" v-for="(item,index) in queryManagerList" :key="item.id" @click="goDetail(item)">
  24. <image :src="item.avatar ? item.avatar : '../../static/timg/pic_def_ava@2x.png'" class="ad-list-img"></image>
  25. <view class="ad-list-r">
  26. <text class="ad-name">{{item.name}}</text>
  27. </view>
  28. <view class="address-arrow">
  29. <image src="../../static/img/little_rightArrow.png" mode="aspectFit"></image>
  30. </view>
  31. </view>
  32. <!-- 上拉 加载更多 -->
  33. <view class="noMore" v-if="noMoreShow && (queryManagerList.length!=0)">没有更多数据</view>
  34. <!-- 无数据空白页 -->
  35. <nodata v-if="queryManagerList.length==0"></nodata>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data() {
  41. return {
  42. queryManagerList: '',
  43. noMoreShow: false,
  44. users: '',
  45. themeColor:'',
  46. }
  47. },
  48. onLoad() {
  49. this.themeColor = uni.getStorageSync("themeColor");
  50. this.getQueryManagerList()
  51. },
  52. computed: {
  53. usersAvatarStr() {
  54. return this.users.avatar ? this.users.avatar : '../../static/timg/pic_def_ava@2x.png'
  55. }
  56. },
  57. methods: {
  58. getQueryManagerList() {
  59. uni.showLoading({
  60. title: '加载中'
  61. })
  62. this.$http('openmy/queryManager', {}, 'GET').then(res => {
  63. uni.hideLoading();
  64. this.queryManagerList = res.data.userlist
  65. this.users = res.data.users
  66. console.log('服务顾问列表===', res);
  67. })
  68. },
  69. goDetail(item) {
  70. uni.navigateTo({
  71. url: '../index/personalCard?adInfo=' + JSON.stringify(item)
  72. })
  73. }
  74. },
  75. // 下拉刷新
  76. onPullDownRefresh() {
  77. this.getQueryManagerList()
  78. setTimeout(function() {
  79. uni.stopPullDownRefresh();
  80. }, 1000);
  81. }
  82. }
  83. </script>
  84. <style scoped>
  85. .content {
  86. min-height: 100vh;
  87. background-color: #F4F5F7;
  88. padding-bottom: 60rpx;
  89. }
  90. .ad-bg-box {
  91. background-color: #FF0000;
  92. padding: 20rpx 24rpx;
  93. }
  94. .ad-box {
  95. background-color: #FFFFFF;
  96. border-radius: 10rpx;
  97. }
  98. .ad-con-box {
  99. display: flex;
  100. padding-bottom: 20rpx;
  101. margin-top: 30rpx;
  102. margin-left: 30rpx;
  103. }
  104. .ad-sec-tit {
  105. font-size: 24rpx;
  106. color: #666;
  107. padding-top: 30rpx;
  108. margin-left: 30rpx;
  109. }
  110. .ad-icon-mine {
  111. width: 100rpx;
  112. height: 100rpx;
  113. border-radius: 50rpx;
  114. }
  115. .ad-con-box-r {
  116. display: flex;
  117. flex-direction: column;
  118. justify-content: center;
  119. margin-left: 30rpx;
  120. }
  121. .ad-name {
  122. font-size: 30rpx;
  123. font-weight: bold;
  124. color: #333333;
  125. margin: auto 20rpx;
  126. }
  127. /* 全部服务顾问横栏 */
  128. .mid-v-line {
  129. background-color: #FF0000;
  130. width: 8rpx;
  131. height: 30rpx;
  132. border-radius: 4rpx;
  133. margin-left: 30rpx;
  134. }
  135. .mid-box {
  136. display: flex;
  137. height: 94rpx;
  138. align-items: center;
  139. background-color: #FFFFFF;
  140. margin-bottom: 20rpx;
  141. }
  142. .mid-sec-tit {
  143. margin-left: 16rpx;
  144. font-size: 30rpx;
  145. font-weight: 500;
  146. color: #333333;
  147. }
  148. /* 顾问list */
  149. .ad-list {
  150. margin: 0rpx 24rpx 20rpx;
  151. padding: 20rpx;
  152. background-color: #FFFFFF;
  153. border-radius: 10rpx;
  154. display: flex;
  155. }
  156. .ad-list-img {
  157. width: 84rpx;
  158. height: 84rpx;
  159. border-radius: 42rpx;
  160. }
  161. .address-arrow {
  162. width: 30rpx;
  163. }
  164. .address-arrow image {
  165. width: 30rpx;
  166. height: 100%;
  167. }
  168. .ad-list-r {
  169. display: flex;
  170. flex: 1;
  171. }
  172. .noMore {
  173. text-align: center;
  174. line-height: 50rpx;
  175. color: #999999;
  176. font-size: 28rpx;
  177. }
  178. /* .nodataImg {
  179. width: 400rpx;
  180. padding-top: 100rpx;
  181. }
  182. .noTxt {
  183. font-size: 36rpx;
  184. color: #999999;
  185. padding-top: 50rpx;
  186. }
  187. .nodataBox {
  188. text-align: center;
  189. } */
  190. </style>