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

120 lines
2.1 KiB

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