{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/components/o_map.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/src/components/o_map.vue","mtime":1740130327258},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/babel-loader/lib/index.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-mobile/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport Constant from \"@/Constant.js\";\nimport controlHidden from \"@/assets/js/controlHidden.js\"\nexport default {\n name: \"o-map\",\n props: [\"id\"],\n computed: {\n field: function() {\n return this.$parent.findField(this.id);\n },\n },\n mounted(){\n this.$nextTick(()=>{\n let field = this.field;\n if(field.isHideType) {\n let id = this.id,\n formShowType = field.formShowType;\n controlHidden({id, field, formShowType})\n }\n })\n },\n data: function() {\n\t\treturn {\n Constant,\n center: {\n lng: 113.261503, \n lat: 23.131377\n },\n zoom: 9,\n isActive:false,\n currentMapType:\"BMAP_NORMAL_MAP\",\n mapNum:1,\n currentLongitude:\"\",\n currentLatitude:\"\",\n keyword: '',\n location:'',\n show: false,\n markerPoint: {\n lng:'',\n lat:'',\n },\n markerAdress:'',\n adressTitle:'',\n adressContent:'',\n markerHidden:true,\n\t\t}\n },\n \n methods: {\n handler ({BMap}) {\n let that = this;\t// 设置一个临时变量指向vue实例,因为在百度地图回调里使用this,指向的不是vue实例;\n var geolocation = new BMap.Geolocation();\n geolocation.getCurrentPosition(function(r){\n that.center = {\n lng: r.longitude, \n lat: r.latitude,\n };\n that.zoom = 17;\n })\n },\n showPosition(position){\n debugger\n },\n zoomEnd(e){\n this.zoom = e.target.getZoom();\n },\n //右键放大\n enlargeMap(e){\n this.center = {\n lng: e.point.lng,\n lat: e.point.lat\n };\n this.zoom = this.zoom+2;\n if(this.zoom>=19){\n this.zoom = 19;\n }\n\n },\n //右键缩小\n reduceMap(e){\n this.center = {\n lng: e.point.lng,\n lat: e.point.lat\n };\n this.zoom = this.zoom-2;\n if(this.zoom<=0) {\n this.zoom = 1\n }\n },\n setSign(e){\n let mLng = e.point.lng,\n mLat = e.point.lat;\n this.setMark(mLng, mLat);\n },\n cancelSign({BMap, map}){\n //有问题,隐藏\n this.markerHidden = false;\n console.log(BMap, map);\n },\n infoWindowClose () {\n this.show = false\n },\n infoWindowOpen () {\n debugger\n this.show = true\n },\n getDbclickInfo (e) {\n let mLng = e.point.lng,\n mLat = e.point.lat;\n this.setMark(mLng, mLat);\n },\n // setMark(mLng, mLat, close){\n // let that = this;\n // let myGeo = new BMap.Geocoder();\n // let p = new BMap.Point(mLng, mLat);\n // myGeo.getLocation(p, function(rs){\n // let addComp = rs.addressComponents;\n // let address = addComp.province+addComp.city+addComp.district+addComp.street+addComp.streetNumber;\n // that.markerAdress = address;\n // that.markerPoint.lng = mLng;\n // that.markerPoint.lat = mLat;\n // that.markerHidden = true;\n // if(close == true) {\n // that.show = false\n // }else {\n // that.show = true;\n // }\n // });\n // },\n normalMap(){\n if(this.mapNum == 2) {\n this.currentMapType = \"BMAP_NORMAL_MAP\"\n this.mapNum = 1;\n }\n },\n mixMap(){\n if(this.mapNum == 1) {\n this.currentMapType = \"BMAP_HYBRID_MAP\"\n this.mapNum = 2;\n }\n },\n searchLocation(){\n this.location = '广东省广州市越秀区华乐街道环市东路403号广州国际电子大厦1802'//this.keyword;\n },\n searchBox(e) {\n\n this.isActive = !this.isActive;\n },\n }\n}\n",null]}