team-list.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. <template>
  2. <view class="container club clearfix">
  3. <tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading="true"
  4. :loadingType="5" />
  5. <template v-else>
  6. <view class="club-main">
  7. <view v-if="isEmpty" class="empty-container">
  8. <image class="club-empty-image"
  9. src="https://img.caimei365.com/group1/M00/03/71/Cmis2F3wna6AY2ZjAABpmnBICH4247.png"
  10. mode="aspectFit"></image>
  11. <view class="txt">暂无数据~</view>
  12. </view>
  13. <view v-else class="club-list">
  14. <scroll-view scroll-y="true" class="club-list-main">
  15. <view class="list" v-for="(team, index) in teamList" :key="index">
  16. <view class="club-list-top">
  17. <view class="list-left">
  18. <view class="list-head">
  19. <image src="https://static.caimei365.com/app/img/icon/default-head-new.png" mode=""></image>
  20. </view>
  21. </view>
  22. <view class="list-item">
  23. <view class="list-title">
  24. <text class="list-name"> {{ team.name }} </text>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="club-list-bot">
  29. <view class="btn" @click.stop="handleClickOper(1, team)">
  30. 组员订单
  31. </view>
  32. <view class="btn" @click.stop="handleClickOper(2, team)">
  33. 组员机构
  34. </view>
  35. </view>
  36. </view>
  37. </scroll-view>
  38. </view>
  39. </view>
  40. </template>
  41. </view>
  42. </template>
  43. <script>
  44. export default {
  45. components: {},
  46. data() {
  47. return {
  48. skeletonShow:true,
  49. isShowClose: false,
  50. isEmpty: false,
  51. nomoreText: '上拉显示更多',
  52. hasNextPage: false,
  53. loadding: false,
  54. pullUpOn: true,
  55. pullFlag: true,
  56. scrollHeight: '',
  57. currPage: '', //当前页面
  58. prevPage: '', //上一个页面
  59. teamList: [],
  60. currentIndex: 0
  61. }
  62. },
  63. onLoad() {},
  64. methods: {
  65. async initGetStotage() {
  66. // 初始化
  67. const userInfo = await this.$api.getStorage()
  68. this.userSellerServiceTeam(userInfo.serviceProviderId)
  69. setTimeout(()=>{
  70. this.skeletonShow = false
  71. },1000)
  72. },
  73. searchClubList() {
  74. // 搜索
  75. this.userSellerServiceTeam()
  76. },
  77. async userSellerServiceTeam(spId) {
  78. //获取组员协销列表
  79. try{
  80. const res = await this.SellerService.userSellerServiceTeam({ spId: spId })
  81. this.teamList = res.data
  82. }catch(e){
  83. console.log('=========>获取组员协销列表异常')
  84. }
  85. },
  86. handleClickOper(type, team) {
  87. const pathMap = {
  88. 1: `/pages/seller/order/order-team-list?groupServiceId=${team.serviceProviderId}`,
  89. 2: '/pages/seller/order/order-team-list',
  90. }
  91. this.$api.navigateTo(pathMap[type])
  92. },
  93. handleShowBubble(club, index) {
  94. this.currentIndex = index
  95. club.bubble = !club.bubble
  96. }
  97. },
  98. onShow() {
  99. this.initGetStotage()
  100. }
  101. }
  102. </script>
  103. <style lang="scss">
  104. page {
  105. height: auto;
  106. }
  107. page,
  108. .container {
  109. /* padding-bottom: 120upx; */
  110. background: #f7f7f7;
  111. }
  112. .container {
  113. position: relative;
  114. }
  115. .club-main {
  116. padding-top: 0rpx;
  117. .club-list{
  118. width: 100%;
  119. padding: 20rpx 0;
  120. .club-list-main{
  121. width: 100%;
  122. box-sizing: border-box;
  123. padding: 0 24rpx;
  124. .list {
  125. align-items: center;
  126. width: 100%;
  127. height: auto;
  128. padding: 18rpx 20rpx;
  129. background: #ffffff;
  130. position: relative;
  131. float: left;
  132. margin-bottom: 20rpx;
  133. box-sizing: border-box;
  134. border-radius: 24rpx;
  135. .club-list-top {
  136. width: 100%;
  137. height: 100rpx;
  138. float: left;
  139. display: flex;
  140. align-items: center;
  141. .list-left {
  142. height: 100rpx;
  143. flex: 1;
  144. margin-right: 15rpx;
  145. .list-head {
  146. width: 100rpx;
  147. height: 100rpx;
  148. border-radius: 50%;
  149. image {
  150. width: 100rpx;
  151. height: 100rpx;
  152. border-radius: 50%;
  153. }
  154. }
  155. }
  156. .list-item {
  157. height: 100rpx;
  158. flex: 8;
  159. display: flex;
  160. flex-direction: column;
  161. .list-title {
  162. flex: 2;
  163. line-height: 100rpx;
  164. width: 100%;
  165. font-size: $font-size-28;
  166. color: $text-color;
  167. padding-left: 11rpx;
  168. flex-direction: row;
  169. justify-content: flex-start;
  170. .list-name {
  171. min-width: 100rpx;
  172. display: block;
  173. float: left;
  174. text-align: left;
  175. -o-text-overflow: ellipsis;
  176. text-overflow: ellipsis;
  177. display: -webkit-box;
  178. word-break: break-all;
  179. -webkit-box-orient: vertical;
  180. -webkit-line-clamp: 1;
  181. overflow: hidden;
  182. }
  183. .tags {
  184. display: inline-block;
  185. height: 36rpx;
  186. padding: 0 15rpx;
  187. border-radius: 8rpx;
  188. background: #f0cb72;
  189. font-size: $font-size-22;
  190. color: #4e4539;
  191. text-align: center;
  192. line-height: 36rpx;
  193. margin-left: 10rpx;
  194. margin-right: 10rpx;
  195. &.sv {
  196. background: #333333;
  197. color: #f0cb72;
  198. }
  199. }
  200. .list-hist {
  201. display: block;
  202. float: right;
  203. color: #999999;
  204. font-size: $font-size-24;
  205. text-align: right;
  206. padding-right: 30rpx;
  207. .icon-dingdanliebiao {
  208. font-size: $font-size-30;
  209. color: #999999;
  210. }
  211. }
  212. }
  213. .list-opea {
  214. width: 100%;
  215. display: flex;
  216. flex: 4;
  217. color: #166ce1;
  218. flex-direction: row;
  219. align-items: center;
  220. .tags {
  221. display: inline-block;
  222. height: 36rpx;
  223. padding: 0 15rpx;
  224. border-radius: 8rpx;
  225. background: #f0cb72;
  226. font-size: $font-size-22;
  227. color: #4e4539;
  228. text-align: center;
  229. line-height: 36rpx;
  230. margin-left: 10rpx;
  231. margin-right: 10rpx;
  232. &.sv {
  233. background: #333333;
  234. color: #f0cb72;
  235. }
  236. &.sm {
  237. display: inline-block;
  238. height: 36rpx;
  239. box-sizing: border-box;
  240. padding: 0 8rpx 0 15rpx;
  241. border-radius: 8rpx;
  242. background: #faede5;
  243. font-size: $font-size-22;
  244. color: $color-system;
  245. text-align: center;
  246. line-height: 36rpx;
  247. margin-right: 10rpx;
  248. .icon-xiayibu {
  249. font-size: 20rpx;
  250. margin-left: 10rpx;
  251. }
  252. }
  253. }
  254. }
  255. }
  256. }
  257. .club-list-bot {
  258. width: 100%;
  259. height: 60rpx;
  260. float: left;
  261. border-radius: 8rpx;
  262. .btn {
  263. height: 62rpx;
  264. box-sizing: border-box;
  265. line-height: 63rpx;
  266. padding: 0 30rpx;
  267. font-size: $font-size-24;
  268. background: #ffffff;
  269. color: #666666;
  270. text-align: center;
  271. float: right;
  272. position: relative;
  273. border-radius: 40rpx;
  274. margin: 0 10rpx;
  275. box-sizing: border-box;
  276. border: 1px solid #e1e1e1;
  277. &.buy{
  278. background:$btn-confirm;
  279. color: #FFFFFF;
  280. }
  281. }
  282. }
  283. }
  284. }
  285. }
  286. }
  287. </style>