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

151 lines
2.6 KiB

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="topInfo">
  13. <view class="title">
  14. {{ item.title }}
  15. </view>
  16. </view>
  17. <view class="createBy">
  18. <view class="">
  19. 发布人{{ item.userId }}
  20. </view>
  21. <view class="">
  22. 发布时间{{ item.createTime }}
  23. </view>
  24. </view>
  25. <view class="controls">
  26. <contentControls/>
  27. </view>
  28. <view class="content">
  29. <uv-parse :content="item.content"></uv-parse>
  30. </view>
  31. <view class="works">
  32. <view class="item"
  33. v-for="(item, index) in 10"
  34. :key="index">
  35. <view class="item-title">
  36. 代表作品夏
  37. </view>
  38. <view class="item-image">
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. import contentControls from '@/components/content/contentControls.vue'
  47. export default {
  48. components : {
  49. contentControls
  50. },
  51. data() {
  52. return {
  53. item: {
  54. title: "这是一条动态",
  55. createTime: '2024-08-22 09:00:00',
  56. createBy: "小飞",
  57. content: '这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态这是一条动态',
  58. },
  59. }
  60. },
  61. onLoad(options) {
  62. // this.$route.query的参数
  63. console.log(options)
  64. // this.getData(options.id)
  65. },
  66. methods: {
  67. getData(id){
  68. this.$api('indexGetTrendsDetail', {
  69. id
  70. }, res => {
  71. if(res.code == 200){
  72. this.item = res.result
  73. }
  74. })
  75. },
  76. }
  77. }
  78. </script>
  79. <style lang="scss" scoped>
  80. .postDetail {
  81. .box {
  82. padding: 20rpx;
  83. .title {
  84. font-size: 30rpx;
  85. font-weight: 600;
  86. color: #000;
  87. }
  88. .createBy {
  89. display: flex;
  90. margin-top: auto;
  91. margin-bottom: 10rpx;
  92. font-size: 24rpx;
  93. margin-top: 20rpx;
  94. color: #555;
  95. &>view {
  96. display: flex;
  97. align-items: center;
  98. justify-content: center;
  99. padding-right: 20rpx;
  100. }
  101. }
  102. .controls {
  103. margin-top: 30rpx;
  104. }
  105. .content {
  106. margin-top: 30rpx;
  107. color: #777;
  108. }
  109. .works{
  110. display: flex;
  111. flex-wrap: wrap;
  112. margin-top: 20rpx;
  113. .item{
  114. width: 320rpx;
  115. margin: 15rpx;
  116. .item-title{
  117. padding-bottom: 10rpx;
  118. color: #000;
  119. }
  120. .item-image{
  121. background-color: #999;
  122. width: 100%;
  123. height: 250rpx;
  124. image{
  125. width: 100%;
  126. height: 100%;
  127. }
  128. }
  129. }
  130. }
  131. }
  132. }
  133. </style>