fleetSee.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <template>
  2. <view class="center">
  3. <view class="fleet_info">
  4. <view class="fleet_img">
  5. <u-swiper :list="imgList" height="200" indicator></u-swiper>
  6. </view>
  7. <view>{{fleetInfo.fleetName}}</view>
  8. <view>{{fleetInfo.province}}{{fleetInfo.city}}{{fleetInfo.area}}</view>
  9. <view>车队简介</view>
  10. <u--textarea v-model="fleetInfo.notice" placeholder="输入公告文字,0-500字" disabled autoHeight >
  11. </u--textarea>
  12. <view>车队简介</view>
  13. <u--textarea v-model="fleetInfo.fleetProfile" placeholder="输入公告文字,0-500字" disabled maxlength="500" autoHeight count>
  14. </u--textarea>
  15. <view>车队成员({{fleetInfo.fleetMemberNum}})</view>
  16. <view class="flex">
  17. <view margin v-for="(item,index) in fleetInfo.fleetMemberInfoList" >
  18. <u--image class="flex-end" :showLoading="true" :src="item.driverPortrait" width="50px" height="50px"
  19. shape='circle'>
  20. </u--image>
  21. </view>
  22. </view>
  23. </view>
  24. <chunLei-popups v-model="value" :popData="dataList" @tapPopup="tapPopup" :x="344" :y="20" placement="top-end">
  25. </chunLei-popups>
  26. </view>
  27. </template>
  28. <script>
  29. import chunLeiPopups from "@/components/chunLei-popups/chunLei-popups.vue";
  30. export default {
  31. components: {
  32. chunLeiPopups
  33. },
  34. data() {
  35. return {
  36. value: false,
  37. imgList:[],
  38. type:"",
  39. dataList: [{
  40. title: '设置',
  41. icon: '../../static/chuangjianqunliao-lan.png',
  42. src: '/pages/riders/addFleet',
  43. // disabled: true
  44. show: true
  45. },
  46. {
  47. title: '发公告',
  48. icon: '../../static/tianjiahaoyou.png',
  49. src: '/pages/riders/notice',
  50. show: true
  51. },
  52. {
  53. title: '删除成员',
  54. icon: '../../static/scan_icon.png',
  55. show: true
  56. },
  57. {
  58. title: '转移队长',
  59. icon: '../../static/zhifeiji.png',
  60. show: true
  61. },
  62. {
  63. title: '退出车队',
  64. icon: '../../static/shoufukuan.png',
  65. show:true
  66. },
  67. {
  68. title: '举报',
  69. icon: '../../static/shoufukuan.png',
  70. src: "/pages/riders/report",
  71. show:true,
  72. }
  73. ],
  74. id: "",
  75. fleetInfo: {},
  76. more: false,
  77. }
  78. },
  79. onShow() {
  80. this.getList()
  81. },
  82. onLoad(options) {
  83. this.id = options.id
  84. this.type = options.type
  85. if(!this.type){
  86. for(let i = 0 ; i < this.dataList.length - 2 ; i++){
  87. this.dataList[i].show = false
  88. }
  89. }
  90. this.getList()
  91. },
  92. onNavigationBarButtonTap(e) {
  93. this.value = true
  94. },
  95. methods: {
  96. clickRightIcon() {
  97. this.value = true
  98. },
  99. tapPopup(e) {
  100. this.$u.route(e.src, {
  101. id: this.id
  102. })
  103. // uni.showToast({
  104. // title:e.title,
  105. // icon:'none'
  106. // })
  107. },
  108. returnPage() {
  109. this.$u.route("/pages/riders/myTeam")
  110. },
  111. getList() {
  112. this.$request.baseRequest('get', '/fleetInfo/getFleetInfo', {
  113. id: this.id
  114. }).then(res => {
  115. this.fleetInfo = res.data
  116. if(this.fleetInfo.fleetUrl){
  117. this.imgList = this.fleetInfo.fleetUrl.split(",")
  118. }else{
  119. this.imgList = this.fleetInfo.coverUrl.split(",")
  120. }
  121. })
  122. .catch(res => {
  123. uni.$u.toast(res.message);
  124. });
  125. }
  126. }
  127. }
  128. </script>
  129. <style lang="scss" scoped>
  130. .center {
  131. .top {
  132. margin-top: 20rpx;
  133. width: 100%;
  134. .top_left {
  135. width: 50%;
  136. }
  137. .top_right {
  138. width: 50%;
  139. text-align: right;
  140. margin-right: 20rpx;
  141. }
  142. }
  143. }
  144. .fleet_info {
  145. .fleet_img {
  146. width: 100%;
  147. }
  148. }
  149. </style>