Files
MALL_MP_WX/components/stationItem/stationItem.vue
dt_2916866708 f756390529 第一次提交
2024-02-28 17:26:46 +08:00

44 lines
907 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<view class="site-list-item flex ">
<view class="site-list-item-left">
<image v-if="item.siteImages" mode="widthFix" :src="item.siteImages"></image>
</view>
<view class="site-list-item-right">
<view class="name">{{item.siteName}}</view>
<view class="address textov">{{item.address}}</view>
<view style="margin-top: 15rpx;" class="flex jw ac">
<view class="distance">距离{{ Number(item.juli / 1000).toFixed(2) }}KM</view>
<slot name="button">
<view @click="$emit('stationClick',item)" class="look"> 立即查看</view>
</slot>
</view>
</view>
</view>
</template>
<script>
export default {
name: "stationItem",
props: {
item: {
type: Object,
default: () => {}
}
},
data() {
return {
};
},
created() {
},
methods: {
}
}
</script>
<style lang="scss" scoped>
@import 'index.scss';
</style>