瑶都万能墙
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.

83 lines
1.5 KiB

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