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

111 lines
2.0 KiB

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