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

75 lines
1.2 KiB

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