vue,uniapp引入js文件调用高德地图

<script>
	import amap from '@/static/libs/amap-wx.130.js';
	export default {
		data() {
			return {
				key: '高德key',
				amapPlugin: null,
			}
		}
	}
	/* 
			this.amapPlugin = new amap.AMapWX({
				key: this.key
			});
			this.amapPlugin.getRegeo({
				success: function(data) {
					console.log(data[0])
				},
				fail: function(info) {
					//失败回调
					console.log(info)
				}
			}) */
			/* this.amapPlugin.getPoiAround({
				success: function(data) {
					console.log(data)
				},
				fail: function(info) {
					//失败回调
					console.log(info)
				}
			}) */

你可能感兴趣的:(javascript,vue.js,uni-app)