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

76 lines
1.2 KiB

7 months ago
  1. <template>
  2. <view class="item">
  3. <image :src="item.titleImage" mode="aspectFill"></image>
  4. <view class="text">
  5. <view class="title">
  6. {{ item.name }}
  7. </view>
  8. <view>
  9. </view>
  10. <view class="createBy">
  11. {{ item.address }}
  12. </view>
  13. <view class="createBy">
  14. 距离30m
  15. </view>
  16. <view class="createTime">
  17. {{ $dayjs(item.createTime).format('YYYY-MM-DD') }}
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. props: ['item'],
  25. data() {
  26. return {
  27. };
  28. }
  29. }
  30. </script>
  31. <style lang="scss" scoped>
  32. .item {
  33. height: 220rpx;
  34. width: 100%;
  35. background-color: #fff;
  36. overflow: hidden;
  37. border-radius: 10rpx;
  38. color: #777;
  39. display: flex;
  40. font-size: 24rpx;
  41. margin: 30rpx 0;
  42. image {
  43. width: 50%;
  44. height: 100%;
  45. }
  46. .text {
  47. display: flex;
  48. flex-direction: column;
  49. padding: 16rpx;
  50. width: 50%;
  51. .title {
  52. font-size: 30rpx;
  53. font-weight: 600;
  54. color: #000;
  55. }
  56. .createBy {
  57. display: flex;
  58. margin-top: auto;
  59. margin-bottom: 10rpx;
  60. justify-content: space-between;
  61. &>view {
  62. display: flex;
  63. align-items: center;
  64. justify-content: center;
  65. }
  66. }
  67. }
  68. }
  69. </style>