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.
91 lines
1.6 KiB
91 lines
1.6 KiB
<template>
|
|
<view class="itemBox" >
|
|
<view class="img">
|
|
<image src="@/static/images/index/img_7@2x.png" mode="" ></image>
|
|
</view>
|
|
<view class="textCon">
|
|
<view class="name">{{item.shortName}}</view>
|
|
<view class="flex-b">
|
|
<view class="starBox">
|
|
<view class="num">{{item.stars}}</view>
|
|
</view>
|
|
<callPhone v-if="showPhone" :servicePhone="[{name: item.phone}]">
|
|
<view class="pozPhone">
|
|
<image src="@/static/images/indexIcon/phone.png" mode=""></image>
|
|
</view>
|
|
</callPhone>
|
|
</view>
|
|
<view class="adr"><text style="margin-right: 6rpx;">{{item.districtName}}</text> 距您{{ $u.utils.distanceFn(item.distance)}}</view>
|
|
<!-- <view class="credit">行业信用 <text v-if="item.creditrating">{{item.creditrating}}</text></view> -->
|
|
</view>
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
showPhone: {
|
|
type: Boolean,
|
|
default: true
|
|
},
|
|
item: {
|
|
type: Object,
|
|
default: {}
|
|
}
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.itemBox {
|
|
background: #FFFFFF;
|
|
border-radius: 16rpx;
|
|
padding: 20rpx;
|
|
position: relative;
|
|
display: flex;
|
|
// border-bottom: 1px solid #F4F4F4;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
.img {
|
|
width: 200rpx;
|
|
height: 135rpx;
|
|
background: #f6f6f6;
|
|
border-radius: 20rpx;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.textCon {
|
|
flex: 1;
|
|
font-size: 24rpx;
|
|
padding: 0 0 0 36rpx;
|
|
.name {
|
|
font-size: 28rpx;
|
|
margin-top: 4rpx;
|
|
color: #363A44;
|
|
}
|
|
|
|
.starBox {
|
|
margin: 10rpx 0;
|
|
|
|
}
|
|
|
|
.credit {
|
|
color: #1989FA;
|
|
margin-bottom: 4rpx;
|
|
}
|
|
|
|
.adr {
|
|
color: #999;
|
|
font-size: 24rpx;
|
|
}
|
|
}
|
|
|
|
.pozPhone {
|
|
width: 55rpx;
|
|
height: 55rpx;
|
|
}
|
|
</style>
|