123456789101112131415161718192021
  1. import React from 'react';
  2. import { View, Map } from '@tarojs/components';
  3. import style from './map.module.less';
  4. export default (props) => {
  5. const { location } = props;
  6. const loc = location ? location.split(',') : [,];
  7. return (
  8. <View className={style['map-box']}>
  9. <Map
  10. className={style.map}
  11. longitude={loc[0]}
  12. latitude={loc[1]}
  13. ></Map>
  14. <View className={style.address}>
  15. 阳光丽景小区
  16. </View>
  17. </View>
  18. )
  19. }