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

121 lines
2.2 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 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. position: relative;
  70. }
  71. .box {
  72. display: flex;
  73. .image {
  74. width: 140rpx;
  75. height: 120rpx;
  76. border-radius: 10rpx;
  77. }
  78. .text {
  79. display: flex;
  80. flex-direction: column;
  81. padding: 16rpx;
  82. .title {
  83. font-size: 30rpx;
  84. color: #000;
  85. // margin-bottom: 10rpx;
  86. display: flex;
  87. justify-content: space-between;
  88. align-items: center;
  89. .len{
  90. font-size: 24rpx;
  91. }
  92. }
  93. .list{
  94. display: flex;
  95. .item-detail{
  96. display: flex;
  97. justify-content: center;
  98. align-items: center;
  99. flex-direction: column;
  100. flex-shrink: 0;
  101. width: 200rpx;
  102. margin: 8rpx;
  103. image{
  104. width: 200rpx;
  105. height: 200rpx;
  106. border-radius: 10rpx;
  107. }
  108. view{
  109. font-size: 26rpx;
  110. line-height: 50rpx;
  111. }
  112. }
  113. }
  114. }
  115. }
  116. </style>