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

59 lines
1.0 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <template>
  2. <view class="box">
  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. .box {
  32. padding: 24rpx;
  33. border-radius: 20rpx;
  34. background: #fff;
  35. .flex-b {
  36. align-items: center;
  37. .left_text {
  38. flex: 1;
  39. .adr {
  40. font-size: 28rpx;
  41. color: #333333;
  42. font-weight: 500;
  43. }
  44. .distance {
  45. margin-top: 18rpx;
  46. color: #999;
  47. font-size: 24rpx;
  48. }
  49. }
  50. .mapEntry {
  51. width: 55rpx;
  52. height: 55rpx;
  53. }
  54. }
  55. }
  56. </style>