瑶都万能墙
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.

147 lines
2.9 KiB

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
3 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
  1. <template>
  2. <view class="postDetail">
  3. <navbar leftClick @leftClick="$utils.navigateBack" title="详情" />
  4. <view class="works">
  5. <userHeadItem :item="detail"/>
  6. <!-- 活动 -->
  7. <activityInfo :item="detail"/>
  8. <daynamicInfo :item="detail"/>
  9. <view class="bottom">
  10. <view class="browse">
  11. {{ detail.isBrowse }}浏览
  12. </view>
  13. <view class="browse">
  14. {{ detail.isComment }}条评论
  15. </view>
  16. <!-- <view class="Leavingamessage"
  17. @click="openLocation(detail.latitude, detail.longitude)"
  18. v-if="detail.latitude && detail.longitude">
  19. <uv-icon size="40rpx" name="map"></uv-icon>
  20. 导航
  21. </view> -->
  22. <callPhone
  23. style="margin-left: auto;"
  24. :phone="detail.phone"
  25. :sexName="detail.sex"/>
  26. </view>
  27. </view>
  28. <commentList
  29. @getData="getData"
  30. :list="list"
  31. :params="params"
  32. />
  33. </view>
  34. </template>
  35. <script>
  36. import mixinsSex from '@/mixins/sex.js'
  37. import mixinsList from '@/mixins/list.js'
  38. import commentList from '../components/list/comment/commentList.vue'
  39. import userHeadItem from '@/components/list/dynamic/userHeadItem.vue'
  40. import daynamicInfo from '@/components/list/dynamic/daynamicInfo.vue'
  41. import activityInfo from '@/components/list/activity/activityInfo.vue'
  42. export default {
  43. mixins: [mixinsSex, mixinsList],
  44. components: {
  45. commentList,
  46. userHeadItem,
  47. daynamicInfo,
  48. activityInfo,
  49. },
  50. data() {
  51. return {
  52. detail: {},
  53. mixinsListApi : 'getCommentPage',
  54. params : {
  55. type : '5',
  56. orderId : '',
  57. name : '',
  58. },
  59. id : 0,
  60. }
  61. },
  62. onLoad(options) {
  63. // this.$route.query的参数
  64. console.log(options)
  65. this.id = options.id
  66. this.queryParams.type = this.params.type
  67. this.queryParams.orderId = options.id
  68. this.params.orderId = options.id
  69. },
  70. onShareAppMessage(res) {
  71. return {
  72. title: this.detail.title,
  73. path: '/pages_order/post/postDetail?id=' + this.id
  74. }
  75. },
  76. onPullDownRefresh() {
  77. this.getDetail()
  78. },
  79. onShow() {
  80. this.getDetail()
  81. },
  82. onShareAppMessage(res) {
  83. // return {
  84. // title: this.item.title,
  85. // desc: this.item.content && this.item.content.slice(0, 30),
  86. // path: '/pages/publish/postDetail?id=' + this.id
  87. // }
  88. },
  89. methods: {
  90. getDetail() {
  91. this.$api('getActivityDetail', {
  92. id: this.id
  93. }, res => {
  94. uni.stopPullDownRefresh()
  95. if (res.code == 200) {
  96. this.params.name = res.result.userName
  97. this.detail = res.result
  98. }
  99. })
  100. },
  101. }
  102. }
  103. </script>
  104. <style lang="scss" scoped>
  105. .postDetail {
  106. padding-bottom: env(safe-area-inset-bottom);
  107. .works {
  108. background-color: #fff;
  109. padding: 40rpx;
  110. border-radius: 20rpx;
  111. .bottom {
  112. display: flex;
  113. margin-top: 20rpx;
  114. font-size: 24rpx;
  115. .browse {
  116. margin: 0rpx 30rpx;
  117. color: rgb(132, 132, 132);
  118. }
  119. .Leavingamessage {
  120. margin-left: auto;
  121. display: flex;
  122. align-items: center;
  123. }
  124. }
  125. }
  126. }
  127. </style>