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.
58 lines
989 B
58 lines
989 B
<template>
|
|
<view class="card">
|
|
<view class="flex-b" @click="openMap">
|
|
<view class="left_text">
|
|
<view class="adr ">{{ info.schoolName}}</view>
|
|
<view class="distance">{{ info.address }}</view>
|
|
</view>
|
|
<view class="mapEntry">
|
|
<image src="@/static/images/icon/daohuang.png" mode=""></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: ['info'],
|
|
methods: {
|
|
openMap() {
|
|
uni.openLocation({
|
|
latitude: this.info.lat,
|
|
longitude: this.info.lng,
|
|
success: function () {
|
|
console.log('success');
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.card {
|
|
padding: 24rpx;
|
|
.flex-b {
|
|
align-items: center;
|
|
.left_text {
|
|
flex: 1;
|
|
.adr {
|
|
font-size: 28rpx;
|
|
color: #333333;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.distance {
|
|
margin-top: 18rpx;
|
|
color: #999;
|
|
font-size: 24rpx;
|
|
}
|
|
}
|
|
|
|
.mapEntry {
|
|
width: 55rpx;
|
|
height: 55rpx;
|
|
}
|
|
}
|
|
}
|
|
</style>
|