You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

2 lines
10 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-05513051"],{"165e":function(t,n,e){"use strict";(function(t){e("a9e3"),e("d81d");var i=e("2da4"),a=e("4fab"),o=e("76f3");n["a"]={name:"bm-marker",mixins:[Object(i["a"])("overlay")],props:{position:{},offset:{},icon:{},massClear:{type:Boolean,default:!0},dragging:{type:Boolean,default:!1},clicking:{type:Boolean,default:!0},raiseOnDrag:{type:Boolean,default:!1},draggingCursor:{type:String},rotation:{type:Number},shadow:{type:Object},title:{type:String},label:{type:Object},animation:{type:String},top:{type:Boolean,default:!1},zIndex:{type:Number,default:0}},watch:{"position.lng":function(t,n){var e=this.BMap,i=this.originInstance,a=this.position,s=this.renderByParent,r=this.$parent;t!==n&&t>=-180&&t<=180&&i.setPosition(Object(o["c"])(e,{lng:t,lat:a.lat})),s&&r.reload()},"position.lat":function(t,n){var e=this.BMap,i=this.originInstance,a=this.position,s=this.renderByParent,r=this.$parent;t!==n&&t>=-74&&t<=74&&i.setPosition(Object(o["c"])(e,{lng:a.lng,lat:t})),s&&r.reload()},"offset.width":function(t,n){var e=this.BMap,i=this.originInstance;t!==n&&i.setOffset(new e.Size(t,this.offset.height))},"offset.height":function(t,n){var e=this.BMap,i=this.originInstance;t!==n&&i.setOffset(new e.Size(this.offset.width,t))},icon:{deep:!0,handler:function(t){var n=this.BMap,e=this.originInstance,i=this.rotation;e&&e.setIcon(Object(o["a"])(n,t)),i&&e&&e.setRotation(i)}},massClear:function(t){t?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},dragging:function(t){t?this.originInstance.enableDragging():this.originInstance.disableDragging()},clicking:function(){this.reload()},raiseOnDrag:function(){this.reload()},draggingCursor:function(t){this.originInstance.setDraggingCursor(t)},rotation:function(t){this.originInstance.setRotation(t)},shadow:function(t){this.originInstance.setShadow(t)},title:function(t){this.originInstance.setTitle(t)},label:function(t){this.reload()},animation:function(n){this.originInstance.setAnimation(t[n])},top:function(t){this.originInstance.setTop(t)},zIndex:function(t){this.originInstance.setZIndex(t)}},methods:{load:function(){var n=this.BMap,e=this.map,i=this.position,s=this.offset,r=this.icon,c=this.massClear,l=this.dragging,h=this.clicking,u=this.raiseOnDrag,d=this.draggingCursor,f=this.rotation,p=this.shadow,g=this.title,m=this.label,b=this.animation,y=this.top,v=this.renderByParent,w=this.$parent,I=this.zIndex,B=new n.Marker(new n.Point(i.lng,i.lat),{offset:s,icon:r&&Object(o["a"])(n,r),enableMassClear:c,enableDragging:l,enableClicking:h,raiseOnDrag:u,draggingCursor:d,rotation:f,shadow:p,title:g});this.originInstance=B,m&&B&&B.setLabel(Object(o["b"])(n,m)),B.setTop(y),B.setZIndex(I),a["a"].call(this,B),v?w.reload():e.addOverlay(B),B.setAnimation(t[b])}}}}).call(this,e("c8ba"))},"18a5":function(t,n,e){"use strict";var i=e("23e7"),a=e("857a"),o=e("af03");i({target:"String",proto:!0,forced:o("anchor")},{anchor:function(t){return a(this,"a","name",t)}})},"2c07":function(t,n,e){"use strict";e("dc7c")},"3c86":function(t,n,e){"use strict";var i,a,o=e("6160"),s=o["a"],r=e("2877"),c=Object(r["a"])(s,i,a,!1,null,null,null);n["a"]=c.exports},6160:function(t,n,e){"use strict";(function(t){e("d81d"),e("18a5");var i=e("2da4"),a=e("76f3");n["a"]={name:"bm-city-list",render:function(){},mixins:[Object(i["a"])("control")],props:{anchor:{type:String},offset:{type:Object}},watch:{anchor:function(){this.reload()},offset:function(){this.reload()}},methods:{load:function(){var n=this.BMap,e=this.map,i=this.anchor,o=this.offset,s=this;this.originInstance=new n.CityListControl({anchor:t[i],offset:o&&Object(a["d"])(n,o),onChangeBefore:function(){s.$emit("changeBefore")},onChangeAfter:function(){s.$emit("changeAfter")}}),e.addControl(this.originInstance)}}}}).call(this,e("c8ba"))},"6a21":function(t,n,e){"use strict";(function(t){e("d81d"),e("18a5");var i=e("2da4"),a=e("76f3");n["a"]={name:"bm-scale",render:function(){},mixins:[Object(i["a"])("control")],props:{anchor:{type:String},offset:{type:Object}},watch:{anchor:function(){this.reload()},offset:function(){this.reload()}},methods:{load:function(){var n=this.BMap,e=this.map,i=this.anchor,o=this.offset;this.originInstance=new n.ScaleControl({anchor:t[i],offset:o&&Object(a["d"])(n,o)}),e.addControl(this.originInstance)}}}}).call(this,e("c8ba"))},"6f5b":function(t,n,e){"use strict";var i,a,o=e("b5c1"),s=o["a"],r=e("2877"),c=Object(r["a"])(s,i,a,!1,null,null,null);n["a"]=c.exports},8328:function(t,n,e){"use strict";var i,a,o=e("6a21"),s=o["a"],r=e("2877"),c=Object(r["a"])(s,i,a,!1,null,null,null);n["a"]=c.exports},"857a":function(t,n,e){var i=e("e330"),a=e("1d80"),o=e("577e"),s=/"/g,r=i("".replace);t.exports=function(t,n,e,i){var c=o(a(t)),l="<"+n;return""!==e&&(l+=" "+e+'="'+r(o(i),s,"&quot;")+'"'),l+">"+c+"</"+n+">"}},"949d":function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"driving-map"},[e("div",{staticClass:"map-wrapper"},[e("div",{staticClass:"map-select"},[e("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入您要搜索的驾校"},on:{input:t.tapELInput,focus:t.tapInputFocus},model:{value:t.Location,callback:function(n){t.Location=n},expression:"Location"}},[e("el-select",{attrs:{slot:"prepend",placeholder:"请选择"},on:{change:t.tapSelectBlur},slot:"prepend",model:{value:t.scity,callback:function(n){t.scity=n},expression:"scity"}},t._l(t.orignList,(function(t){return e("el-option",{key:t.areaCode,attrs:{label:t.areaName,value:t.areaCode}})})),1),e("el-button",{staticClass:"btns",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(n){return t.goBaiduMap()}},slot:"append"})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:t.dropShow&&t.dataSheetList.length>0,expression:"dropShow && dataSheetList.length > 0"}],staticClass:"drop-downselect"},t._l(t.dataSheetList,(function(n){return e("div",{key:n.schoolId,staticClass:"drop-item",on:{click:function(e){return t.tapSheetList(n.schoolName)}}},[e("div",{staticClass:"info"},[e("p",{staticClass:"info-title"},[t._v(t._s(n.schoolName))])])])})),0)],1),e("div",{staticClass:"map-context"},[e("baidu-map",{staticClass:"map",style:{width:t.map.width,height:t.map.height},attrs:{ak:"kwCrzOkUIYBl1YV7Q0MPGqWLn4oW2Cje",zoom:t.map.zoom,center:{lng:t.map.center.lng,lat:t.map.center.lat},"scroll-wheel-zoom":!0},on:{ready:t.handler}},[e("bm-scale",{attrs:{anchor:"BMAP_ANCHOR_TOP_RIGHT"}}),e("bm-navigation",{attrs:{anchor:"BMAP_ANCHOR_BOTTOM_RIGHT"}}),e("city-list"),t._l(t.markers,(function(t){return e("bm-marker",{key:t.code,attrs:{position:{lng:t.lng,lat:t.lat}}})}))],2)],1)])])},a=[],o=(e("d81d"),e("d3b7"),e("159b"),e("df2b")),s=e("8328"),r=e("6f5b"),c=e("3c86"),l=e("d9a9"),h=e("1825"),u={name:"DrivingMap",components:{BaiduMap:o["a"],BmScale:s["a"],BmNavigation:r["a"],CityList:c["a"],BmMarker:l["a"]},data:function(){return{markers:[],map:{center:{lng:112.477298,lat:34.682945},zoom:12,width:"100vw",height:"700px"},orignList:[],dataSheetList:[],Location:"",scity:"all",pageObj:{pageIndex:1,pageSize:10,total:0},dropShow:!1,selectBlur:!1}},computed:{},created:function(){this.$route.query&&this.$route.query.location&&(this.Location=this.$route.query.location,this.getQueryGetSchoolByName()),this.getQueryIndexOrignList()},methods:{getQueryIndexOrignList:function(){var t=this;Object(h["r"])().then((function(n){n.data.unshift({areaCode:"all",areaName:"全城"}),t.orignList=n.data,t.$route.query&&t.$route.query.city&&t.orignList.map((function(n){n.areaName===t.$route.query.city&&(t.scity=n.areaCode)})),t.selectBlur=!0}))},handler:function(t){t.BMap;var n=t.map;n.disableScrollWheelZoom()},getQueryGetSchoolByName:function(){var t=this;this.dropShow=!1,this.dataSheetList=[],Object(h["m"])({district:"all"==this.scity?"":this.scity,schoolName:""==this.Location?"":this.Location}).then((function(n){n.data.length>0?(t.dataSheetList=n.data,t.dropShow=!0):t.dataSheetList=n.data}))},getQueryGetHospitalList:function(){var t=this;this.dropShow=!1,this.dataSheetList=[],Object(h["h"])({district:"all"==this.scity?"":this.scity,schoolName:""==this.Location?"":this.Location}).then((function(n){n.data.length>0?(t.dataSheetList=n.data,t.dropShow=!0):(t.dataSheetList=n.data,t.showMessage("未找到结果","error"))}))},tapELInput:function(t){this.getQueryGetSchoolByName()},tapSelectBlur:function(t){this.selectBlur=!0,this.Location="",this.dropShow=!1,this.getQueryGetSchoolByName()},tapInputFocus:function(t){this.selectBlur?this.getQueryGetSchoolByName():this.dropShow=!1},tapSheetList:function(t){this.Location=t},goBaiduMap:function(){if(""==this.Location){var t,n=this.scity;this.orignList.forEach((function(e){e.regionCode==n&&(t=e.regionName)})),"全城"==t&&(t="洛阳市"),window.open("https://api.map.baidu.com/geocoder?address=".concat(t,"驾校&output=html&region=洛阳&src=我的位置"),"_blank")}else{var e=this.Location;window.open("https://api.map.baidu.com/geocoder?address="+e+"&output=html&src=我的位置","_blank")}}}},d=u,f=(e("2c07"),e("2877")),p=Object(f["a"])(d,i,a,!1,null,"b114c748",null);n["default"]=p.exports},af03:function(t,n,e){var i=e("d039");t.exports=function(t){return i((function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3}))}},b5c1:function(t,n,e){"use strict";(function(t){e("d81d"),e("18a5");var i=e("2da4"),a=e("76f3");n["a"]={name:"bm-navigation",render:function(){},mixins:[Object(i["a"])("control")],props:{anchor:{type:String},offset:{type:Object},type:{type:String},showZoomInfo:{type:Boolean},enableGeolocation:{type:Boolean,default:!1}},watch:{anchor:function(){this.reload()},offset:function(){this.reload()},type:function(){this.reload()},showZoomInfo:function(){this.reload()}},methods:{load:function(){var n=this.BMap,e=this.map,i=this.anchor,o=this.offset,s=this.type,r=this.showZoomInfo,c=this.enableGeolocation;this.originInstance=new n.NavigationControl({anchor:t[i],offset:o&&Object(a["d"])(n,o),type:t[s],showZoomInfo:r,enableGeolocation:c}),e.addControl(this.originInstance)}}}}).call(this,e("c8ba"))},d9a9:function(t,n,e){"use strict";var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[t._t("default")],2)},a=[],o=e("165e"),s=o["a"],r=e("2877"),c=Object(r["a"])(s,i,a,!1,null,null,null);n["a"]=c.exports},dc7c:function(t,n,e){}}]);
//# sourceMappingURL=chunk-05513051.c50d58bd.js.map