帧视界壹通告,付费看视频的微信小程序
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.

112 lines
1.8 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="postDetail">
  3. <navbar leftClick @leftClick="$utils.navigateBack" title="动态详情" />
  4. <view class="swipe">
  5. <uv-swiper :list="item.image &&
  6. item.image.split(',')" indicator height="320rpx"></uv-swiper>
  7. </view>
  8. <view class="box">
  9. <view class="title">
  10. {{ item.title }}
  11. </view>
  12. <view class="createBy">
  13. <view class="">
  14. 发布人{{ item.userId }}
  15. </view>
  16. <view class="">
  17. 发布时间{{ item.createTime }}
  18. </view>
  19. </view>
  20. <view class="controls">
  21. <contentControls />
  22. </view>
  23. <view class="content">
  24. <uv-parse :content="item.content"></uv-parse>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. import contentControls from '@/components/content/contentControls.vue'
  31. export default {
  32. components: {
  33. contentControls
  34. },
  35. data() {
  36. return {
  37. list: [
  38. ],
  39. item: {},
  40. }
  41. },
  42. mounted() {
  43. console.log("===")
  44. this.getData(options.id)
  45. },
  46. onLoad(options) {
  47. // this.$route.query的参数
  48. console.log(options)
  49. this.getData(options.id)
  50. },
  51. methods: {
  52. getData(id) {
  53. this.$api('indexGetTrendsDetail', {
  54. id
  55. }, res => {
  56. if (res.code == 200) {
  57. this.item = res.result
  58. }
  59. })
  60. },
  61. }
  62. }
  63. </script>
  64. <style lang="scss" scoped>
  65. .postDetail {
  66. .box {
  67. padding: 20rpx;
  68. width: 100vw;
  69. .title {
  70. font-size: 30rpx;
  71. font-weight: 600;
  72. color: #000;
  73. }
  74. .createBy {
  75. display: flex;
  76. margin-top: auto;
  77. margin-bottom: 10rpx;
  78. font-size: 24rpx;
  79. margin-top: 20rpx;
  80. color: #555;
  81. &>view {
  82. display: flex;
  83. align-items: center;
  84. justify-content: center;
  85. padding-right: 20rpx;
  86. }
  87. }
  88. .controls {
  89. margin-top: 30rpx;
  90. }
  91. .content {
  92. margin-top: 30rpx;
  93. color: #777;
  94. }
  95. }
  96. }
  97. </style>