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

132 lines
2.3 KiB

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
10 months ago
11 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 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 images">
  29. <image :src="t"
  30. @click.stop="previewImage(images, 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. computed : {
  55. images(){
  56. if(!this.item.image){
  57. return []
  58. }
  59. let arr = this.item.image.split(',')
  60. return arr
  61. }
  62. },
  63. methods: {
  64. }
  65. }
  66. </script>
  67. <style scoped lang="scss">
  68. .item{
  69. font-size: 24rpx;
  70. margin: 20rpx 0;
  71. padding: 20rpx;
  72. box-sizing: border-box;
  73. width: 100%;
  74. background-color: #fff;
  75. overflow: hidden;
  76. border-radius: 10rpx;
  77. color: #777;
  78. position: relative;
  79. }
  80. .box {
  81. display: flex;
  82. .image {
  83. width: 140rpx;
  84. height: 120rpx;
  85. border-radius: 10rpx;
  86. }
  87. .text {
  88. display: flex;
  89. flex-direction: column;
  90. padding: 16rpx;
  91. .title {
  92. font-size: 30rpx;
  93. color: #000;
  94. // margin-bottom: 10rpx;
  95. display: flex;
  96. justify-content: space-between;
  97. align-items: center;
  98. .len{
  99. font-size: 24rpx;
  100. }
  101. }
  102. .list{
  103. display: flex;
  104. .item-detail{
  105. display: flex;
  106. justify-content: center;
  107. align-items: center;
  108. flex-direction: column;
  109. flex-shrink: 0;
  110. width: 200rpx;
  111. margin: 8rpx;
  112. image{
  113. width: 200rpx;
  114. height: 200rpx;
  115. border-radius: 10rpx;
  116. }
  117. view{
  118. font-size: 26rpx;
  119. line-height: 50rpx;
  120. }
  121. }
  122. }
  123. }
  124. }
  125. </style>