fleetSee.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <template>
  2. <view class="center">
  3. <uni-fab :content="content" :horizontal="horizontal" :vertical="vertical" :direction="direction"
  4. @trigger="trigger" @fabClick="poinIn"></uni-fab>
  5. <view class="top ">
  6. <!-- <view class="top_left flex"><view @click="returnPage"><</view> 车队详情</view>
  7. <view class="top_right" >•••</view> -->
  8. <u-navbar leftText="返回" title="车队详情" :safeAreaInsetTop="false">
  9. <view class="u-nav-slot" slot="left">
  10. <u-icon name="arrow-left" size="19" @click="returnPage"></u-icon>
  11. <!-- <u-line direction="column" :hairline="false" length="16" margin="0 8px"></u-line> -->
  12. <!-- <u-icon name="home" size="20"></u-icon> -->
  13. </view>
  14. <view class="u-nav-slot" slot="right">
  15. <u-icon name="more-dot-fill" size="20"></u-icon>
  16. <!-- <uni-data-select v-model="more" :localdata="range" ></uni-data-select> -->
  17. </view>
  18. </u-navbar>
  19. </view>
  20. <view class="fleet_info">
  21. <view class="fleet_img">
  22. <image src="https://taohaoliang.oss-cn-beijing.aliyuncs.com/appData/165326622931949.png"
  23. style="width: 100%;"></image>
  24. </view>
  25. <view>{{fleetInfo.fleetName}}</view>
  26. <view>{{fleetInfo.province}}{{fleetInfo.city}}{{fleetInfo.area}}</view>
  27. <view>车队简介</view>
  28. <view style="width: 100%; height: 100px; border: 1px solid #000000;"></view>
  29. <view>车队成员({{fleetInfo.fleetMemberNum}})</view>
  30. <view v-for="(item,index) in fleetInfo.fleetMemberInfoList">
  31. <view style="width: 25%;">
  32. <u--image class="flex-end" :showLoading="true" :src="item.driverPortrait" width="50px" height="50px"
  33. shape='circle'>
  34. </u--image>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. id: "",
  45. fleetInfo: {},
  46. more: false,
  47. horizontal: "left",
  48. direction: "vertical",
  49. content: [{
  50. iconPath: '/static/image.png',
  51. selectedIconPath: '/static/image-active.png',
  52. text: '相册',
  53. active: false
  54. }, ],
  55. vertical: 'top'
  56. }
  57. },
  58. onShow() {
  59. },
  60. onLoad(options) {
  61. this.id = options.id
  62. this.getList()
  63. },
  64. methods: {
  65. trigger(){
  66. },
  67. poinIn(e){
  68. console.log(e)
  69. },
  70. okSubjecthander() {
  71. },
  72. returnPage() {
  73. this.$u.route("/pages/riders/myTeam")
  74. },
  75. getList() {
  76. this.$request.baseRequest('get', '/fleetInfo/getFleetInfo', {
  77. id: this.id
  78. }).then(res => {
  79. // if (res.code == 200) {
  80. // this.$refs.uToast.show({
  81. // type: 'success',
  82. // message: "车队添加成功!",
  83. // complete() {
  84. // uni.$u.route("pages/riders/myTeam")
  85. // }
  86. // })
  87. // }
  88. this.fleetInfo = res.data
  89. })
  90. .catch(res => {
  91. uni.$u.toast(res.message);
  92. });
  93. }
  94. }
  95. }
  96. </script>
  97. <style lang="scss" scoped>
  98. .center {
  99. .top {
  100. margin-top: 20rpx;
  101. width: 100%;
  102. .top_left {
  103. width: 50%;
  104. }
  105. .top_right {
  106. width: 50%;
  107. text-align: right;
  108. margin-right: 20rpx;
  109. }
  110. }
  111. }
  112. .fleet_info {
  113. .fleet_img {
  114. width: 100%;
  115. }
  116. }
  117. </style>