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

82 lines
1.3 KiB

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