| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <template>
- <view class="map-box">
- <map-Point @commitCheck="commitCheck" :mapKey='mapKey' :Radius='Radius' :showResetting='showResetting' :listIco='listIco' :orientationIco='orientationIco' :resettingIco='resettingIco' :configData='configData' :lat='latitude' :long="longitude"></map-Point>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- mapKey:'639d6b93b11d15c8b7df707612d42b8e',
- address: '',
- latitude: '',
- longitude: '',
- listIco:'/uni_modules/map-Point/static/item-inx.png',
- orientationIco:'/uni_modules/map-Point/static/map-inx.png',
- resettingIco:"/uni_modules/map-Point/static/position.png",
- showResetting:true,
- Radius:'',
- // 微信公众号jsSdk配置
- configData:{
- debug:false,// 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
- appId:'',// 必填,公众号的唯一标识
- timestamp: '', // 必填,生成签名的时间戳
- nonceStr: '', // 必填,生成签名的随机串
- signature: '', // 必填,签名
-
- },
- LatandLong:{}
- };
- },
- onLoad(data) {
- this.longitude=data.longitude
- this.latitude=data.latitude
- },
- methods: {
- commitCheck(e) {
- console.log(e, 565);
- uni.$emit('sendAmap', e);
- uni.navigateBack({
- delta: 1
- });
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- .map-box {
- height: 100vh;
- width: 100vw;
- }
- </style>
|