<template>
|
|
<view class="item">
|
|
<view class="box" @click="$emit('click')">
|
|
<image class="image"
|
|
@click.stop="previewImage([item.logoImage])"
|
|
:src="item.logoImage" mode="aspectFill"></image>
|
|
<view class="text">
|
|
<view class="title">
|
|
<view class="">
|
|
{{ item.title }}
|
|
</view>
|
|
<!-- <view class="len">
|
|
30m
|
|
</view> -->
|
|
</view>
|
|
<view class="workTime">
|
|
营业时间:{{ item.workTime }}
|
|
</view>
|
|
<!-- <view class="address">
|
|
地址:{{ item.address }}
|
|
</view> -->
|
|
<scroll-view
|
|
scroll-x="true"
|
|
style="width: 500rpx;">
|
|
<view class="list">
|
|
<view class="item-detail"
|
|
:key="index"
|
|
v-for="(t, index) in item.image">
|
|
<image :src="t"
|
|
@click.stop="previewImage(item.image, index)"
|
|
mode="aspectFill"></image>
|
|
<!-- <view class="text-ellipsis">
|
|
{{ item.details[index] }}
|
|
</view> -->
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
<addressSpot
|
|
:address="item.address"
|
|
:latitude="item.latitude"
|
|
:longitude="item.longitude"
|
|
/>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: ['item'],
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
methods: {
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.item{
|
|
font-size: 24rpx;
|
|
margin: 20rpx 0;
|
|
padding: 20rpx;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
background-color: #fff;
|
|
overflow: hidden;
|
|
border-radius: 10rpx;
|
|
color: #777;
|
|
position: relative;
|
|
}
|
|
.box {
|
|
display: flex;
|
|
|
|
.image {
|
|
width: 140rpx;
|
|
height: 120rpx;
|
|
border-radius: 10rpx;
|
|
}
|
|
|
|
.text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 16rpx;
|
|
|
|
.title {
|
|
font-size: 30rpx;
|
|
color: #000;
|
|
// margin-bottom: 10rpx;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
.len{
|
|
font-size: 24rpx;
|
|
}
|
|
}
|
|
.list{
|
|
display: flex;
|
|
.item-detail{
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
flex-shrink: 0;
|
|
width: 200rpx;
|
|
margin: 8rpx;
|
|
image{
|
|
width: 200rpx;
|
|
height: 200rpx;
|
|
border-radius: 10rpx;
|
|
}
|
|
view{
|
|
font-size: 26rpx;
|
|
line-height: 50rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|