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

120 lines
2.2 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. <template>
  2. <view class="item">
  3. <view class="box" @click="$emit('click')">
  4. <image class="image"
  5. @click.stop="previewImage([item.logoImage])"
  6. :src="item.logoImage" mode="aspectFill"></image>
  7. <view class="text">
  8. <view class="title">
  9. <view class="">
  10. {{ item.title }}
  11. </view>
  12. <!-- <view class="len">
  13. 30m
  14. </view> -->
  15. </view>
  16. <view class="workTime">
  17. 营业时间{{ item.workTime }}
  18. </view>
  19. <!-- <view class="address">
  20. 地址{{ item.address }}
  21. </view> -->
  22. <scroll-view
  23. scroll-x="true"
  24. style="width: 500rpx;">
  25. <view class="list">
  26. <view class="item-detail"
  27. :key="index"
  28. v-for="(t, index) in item.image">
  29. <image :src="t"
  30. @click.stop="previewImage(item.image, index)"
  31. mode="aspectFill"></image>
  32. <!-- <view class="text-ellipsis">
  33. {{ item.details[index] }}
  34. </view> -->
  35. </view>
  36. </view>
  37. </scroll-view>
  38. </view>
  39. </view>
  40. <addressSpot
  41. :address="item.address"
  42. :latitude="item.latitude"
  43. :longitude="item.longitude"
  44. />
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. props: ['item'],
  50. data() {
  51. return {
  52. }
  53. },
  54. methods: {
  55. }
  56. }
  57. </script>
  58. <style scoped lang="scss">
  59. .item{
  60. font-size: 24rpx;
  61. margin: 20rpx 0;
  62. padding: 20rpx;
  63. box-sizing: border-box;
  64. width: 100%;
  65. background-color: #fff;
  66. overflow: hidden;
  67. border-radius: 10rpx;
  68. color: #777;
  69. }
  70. .box {
  71. display: flex;
  72. .image {
  73. width: 140rpx;
  74. height: 120rpx;
  75. border-radius: 10rpx;
  76. }
  77. .text {
  78. display: flex;
  79. flex-direction: column;
  80. padding: 16rpx;
  81. .title {
  82. font-size: 30rpx;
  83. color: #000;
  84. // margin-bottom: 10rpx;
  85. display: flex;
  86. justify-content: space-between;
  87. align-items: center;
  88. .len{
  89. font-size: 24rpx;
  90. }
  91. }
  92. .list{
  93. display: flex;
  94. .item-detail{
  95. display: flex;
  96. justify-content: center;
  97. align-items: center;
  98. flex-direction: column;
  99. flex-shrink: 0;
  100. width: 200rpx;
  101. margin: 8rpx;
  102. image{
  103. width: 200rpx;
  104. height: 200rpx;
  105. border-radius: 10rpx;
  106. }
  107. view{
  108. font-size: 26rpx;
  109. line-height: 50rpx;
  110. }
  111. }
  112. }
  113. }
  114. }
  115. </style>