洛阳学员端
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.
 
 
 
 
 

67 lines
1.3 KiB

<template>
<view class="tabCon">
<view class="tab1">
<view class="card" v-for="(item,index) in siteList" :key="index">
<view class="name">{{ item.name }}</view>
<view class="adr">{{ item.address }}</view>
<view class="flex-b">
<view class="distance">距您 {{ $u.utils.distanceFn(item.distance) }}</view>
<view class="btn" @click="mapClick(item)">导航</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
props: ['siteList'],
methods: {
mapClick(item) {
this.$u.utils.openMap(item.lat,item.lng)
}
}
}
</script>
<style lang="scss" scoped>
.tabCon {
width: 100%;
.tab1 {
width: 100%;
.card {
padding: 28rpx 28rpx 28rpx 36rpx;
border-bottom: 1rpx solid #F4F4F4;
.name {
font-size: 32rpx;
color: #333;
margin-bottom: 8rpx;
}
.adr {
font-size: 24rpx;
color: #999;
margin-bottom: 10rpx;
}
.flex-b {
.distance {
font-size: 24rpx;
color: #666;
}
.btn {
width: 130rpx;
height: 60rpx;
background: rgba(25,137,250,0.1);
border: 2rpx solid #1989FA;
border-radius: 8rpx;
font-size: 28rpx;
color: $themC;
text-align: center;
line-height: 60rpx;
}
}
}
}
}
</style>