index.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <view class="map-box">
  3. <map-Point @commitCheck="commitCheck" :mapKey='mapKey' :Radius='Radius' :showResetting='showResetting' :listIco='listIco' :orientationIco='orientationIco' :resettingIco='resettingIco' :configData='configData' :lat='latitude' :long="longitude"></map-Point>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. mapKey:'639d6b93b11d15c8b7df707612d42b8e',
  11. address: '',
  12. latitude: '',
  13. longitude: '',
  14. listIco:'/uni_modules/map-Point/static/item-inx.png',
  15. orientationIco:'/uni_modules/map-Point/static/map-inx.png',
  16. resettingIco:"/uni_modules/map-Point/static/position.png",
  17. showResetting:true,
  18. Radius:'',
  19. // 微信公众号jsSdk配置
  20. configData:{
  21. debug:false,// 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
  22. appId:'',// 必填,公众号的唯一标识
  23. timestamp: '', // 必填,生成签名的时间戳
  24. nonceStr: '', // 必填,生成签名的随机串
  25. signature: '', // 必填,签名
  26. },
  27. LatandLong:{}
  28. };
  29. },
  30. onLoad(data) {
  31. this.longitude=data.longitude
  32. this.latitude=data.latitude
  33. },
  34. methods: {
  35. commitCheck(e) {
  36. console.log(e, 565);
  37. uni.$emit('sendAmap', e);
  38. uni.navigateBack({
  39. delta: 1
  40. });
  41. }
  42. }
  43. };
  44. </script>
  45. <style lang="scss" scoped>
  46. .map-box {
  47. height: 100vh;
  48. width: 100vw;
  49. }
  50. </style>