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

107 lines
1.9 KiB

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