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

81 lines
1.4 KiB

11 months ago
11 months ago
  1. <template>
  2. <view class="postList">
  3. <view class="item" v-for="(item, index) in list"
  4. @click="$utils.navigateTo('/publish/postDetail?id=' + item.id)"
  5. :key="index">
  6. <image :src="item.image" mode="aspectFill"></image>
  7. <view class="text">
  8. <view class="title">
  9. {{ item.title }}
  10. </view>
  11. <view class="createBy">
  12. <view class="">
  13. 发布人{{ item.userId }}
  14. </view>
  15. <view class="">
  16. <uv-icon
  17. size="26rpx"
  18. name="thumb-up"></uv-icon>
  19. {{ item.dropNum }}
  20. </view>
  21. </view>
  22. <view class="createTime">
  23. {{ item.createTime }}
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. name:"postList",
  32. props : ['list'],
  33. data() {
  34. return {
  35. };
  36. }
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .postList{
  41. .item{
  42. height: 200rpx;
  43. width: 100%;
  44. background-color: #fff;
  45. overflow: hidden;
  46. border-radius: 10rpx;
  47. color: #777;
  48. display: flex;
  49. font-size: 24rpx;
  50. margin: 30rpx 0;
  51. image{
  52. width: 50%;
  53. height: 100%;
  54. }
  55. .text{
  56. display: flex;
  57. flex-direction: column;
  58. padding: 16rpx;
  59. width: 50%;
  60. .title{
  61. font-size: 30rpx;
  62. font-weight: 600;
  63. color: #000;
  64. }
  65. .createBy{
  66. display: flex;
  67. margin-top: auto;
  68. margin-bottom: 10rpx;
  69. justify-content: space-between;
  70. &>view{
  71. display: flex;
  72. align-items: center;
  73. justify-content: center;
  74. }
  75. }
  76. }
  77. }
  78. }
  79. </style>