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

84 lines
1.5 KiB

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
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/activity/activityDetail?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.userName }}
  16. </view>
  17. <view class="">
  18. <!-- <uv-icon
  19. size="26rpx"
  20. name="thumb-up"></uv-icon> -->
  21. 浏览
  22. {{ item.browseNum }}
  23. </view>
  24. </view>
  25. <view class="createTime">
  26. {{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. name:"postList",
  35. props : ['list'],
  36. data() {
  37. return {
  38. };
  39. }
  40. }
  41. </script>
  42. <style lang="scss" scoped>
  43. .postList{
  44. .item{
  45. height: 200rpx;
  46. width: 100%;
  47. background-color: #fff;
  48. overflow: hidden;
  49. border-radius: 10rpx;
  50. color: #777;
  51. display: flex;
  52. font-size: 24rpx;
  53. margin: 30rpx 0;
  54. image{
  55. width: 50%;
  56. height: 100%;
  57. }
  58. .text{
  59. display: flex;
  60. flex-direction: column;
  61. padding: 16rpx;
  62. width: 50%;
  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. justify-content: space-between;
  73. &>view{
  74. display: flex;
  75. align-items: center;
  76. justify-content: center;
  77. }
  78. }
  79. }
  80. }
  81. }
  82. </style>