瑶都万能墙
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

159 lines
2.7 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. <template>
  2. <view class="postDetail">
  3. <navbar leftClick @leftClick="$utils.navigateBack" title="详情" />
  4. <view class="swipe">
  5. <uv-swiper
  6. :list="[detail.imageTitle]"
  7. indicator
  8. height="420rpx"></uv-swiper>
  9. </view>
  10. <view class="box">
  11. <view class="title">
  12. {{ detail.title }}
  13. </view>
  14. <view class="createBy">
  15. {{ detail.num }}余座
  16. {{ detail.startTime }}出发
  17. </view>
  18. <view class="createBy">
  19. {{ detail.startAddress }}
  20. {{ detail.endAddress }}
  21. </view>
  22. <view class="createBy">
  23. <view class="">
  24. {{ $dayjs(detail.createTime).format('YYYY-MM-DD') }}
  25. </view>
  26. <callPhone
  27. style="margin-left: auto;"
  28. :phone="detail.phone"
  29. title="司机"/>
  30. </view>
  31. </view>
  32. <commentList
  33. @getData="getData"
  34. :list="list"
  35. :params="params"
  36. />
  37. </view>
  38. </template>
  39. <script>
  40. import mixinsList from '@/mixins/list.js'
  41. import commentList from '../components/list/comment/commentList.vue'
  42. export default {
  43. mixins: [mixinsList],
  44. components: {
  45. commentList
  46. },
  47. data() {
  48. return {
  49. detail: {},
  50. mixinsListApi : 'getCommentPage',
  51. params : {
  52. type : '7',
  53. orderId : '',
  54. name : '',
  55. },
  56. id : 0,
  57. }
  58. },
  59. onLoad(options) {
  60. // this.$route.query的参数
  61. console.log(options)
  62. this.id = options.id
  63. this.queryParams.type = this.params.type
  64. this.queryParams.orderId = options.id
  65. this.params.orderId = options.id
  66. },
  67. onPullDownRefresh(){
  68. this.getDetail()
  69. },
  70. onShow() {
  71. this.getDetail()
  72. },
  73. onShareAppMessage(res) {
  74. return {
  75. title: this.detail.title,
  76. path: '/pages_order/scenicSpot/scenicSpotDetail?id=' + this.id
  77. }
  78. },
  79. methods: {
  80. getDetail() {
  81. this.$api('getCatDetail', {
  82. id : this.id
  83. }, res => {
  84. uni.stopPullDownRefresh()
  85. if (res.code == 200) {
  86. this.params.title = res.result.title
  87. this.detail = res.result
  88. }
  89. })
  90. },
  91. }
  92. }
  93. </script>
  94. <style lang="scss" scoped>
  95. .postDetail {
  96. .box {
  97. padding: 20rpx;
  98. width: 100vw;
  99. background-color: #fff;
  100. box-sizing: border-box;
  101. .title {
  102. font-size: 34rpx;
  103. font-weight: 600;
  104. color: #000;
  105. }
  106. .createBy {
  107. display: flex;
  108. margin-top: auto;
  109. margin-bottom: 10rpx;
  110. font-size: 24rpx;
  111. margin-top: 20rpx;
  112. color: #555;
  113. &>view {
  114. display: flex;
  115. align-items: center;
  116. justify-content: center;
  117. padding-right: 20rpx;
  118. }
  119. }
  120. .controls {
  121. margin-top: 30rpx;
  122. }
  123. .content {
  124. margin-top: 30rpx;
  125. font-size: 28rpx;
  126. }
  127. }
  128. }
  129. .phone{
  130. background-color: rgba($uni-color, 0.2);
  131. color: $uni-color;
  132. padding: 8rpx 16rpx;
  133. border-radius: 10rpx;
  134. margin-left: auto;
  135. image{
  136. width: 20rpx;
  137. height: 20rpx;
  138. }
  139. }
  140. </style>