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.
|
|
<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 { margin-top: 24rpx; padding: 28rpx 28rpx 28rpx 36rpx; .name { font-size: 32rpx; color: #333; margin-bottom: 8rpx; } .adr { font-size: 24rpx; color: #333; margin-bottom: 10rpx; } .flex-b { .distance { font-size: 24rpx; color: #686B73; } .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>
|