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

57 lines
989 B

8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <view class="card">
  3. <view class="flex-b" @click="openMap">
  4. <view class="left_text">
  5. <view class="adr ">{{ info.schoolName}}</view>
  6. <view class="distance">{{ info.address }}</view>
  7. </view>
  8. <view class="mapEntry">
  9. <image src="@/static/images/icon/daohuang.png" mode=""></image>
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. props: ['info'],
  17. methods: {
  18. openMap() {
  19. uni.openLocation({
  20. latitude: this.info.lat,
  21. longitude: this.info.lng,
  22. success: function () {
  23. console.log('success');
  24. }
  25. });
  26. }
  27. }
  28. }
  29. </script>
  30. <style lang="scss" scoped>
  31. .card {
  32. padding: 24rpx;
  33. .flex-b {
  34. align-items: center;
  35. .left_text {
  36. flex: 1;
  37. .adr {
  38. font-size: 28rpx;
  39. color: #333333;
  40. font-weight: 500;
  41. }
  42. .distance {
  43. margin-top: 18rpx;
  44. color: #999;
  45. font-size: 24rpx;
  46. }
  47. }
  48. .mapEntry {
  49. width: 55rpx;
  50. height: 55rpx;
  51. }
  52. }
  53. }
  54. </style>