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

130 lines
2.6 KiB

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