1 line
6.0 KiB
JavaScript
1 line
6.0 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-54c720b9"],{"339d":function(t,e,i){var o=i("5afb");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("499e").default;a("05689b2c",o,!0,{sourceMap:!1,shadowMode:!1})},"5afb":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,'.anchorBL[data-v-5e80478c]{display:none}.mint-cell-wrapper[data-v-5e80478c]{text-align:left!important}.mint-cell-value[data-v-5e80478c]{width:0!important}.xk[data-v-5e80478c]{width:100%;height:100%;background:#f4f4f4;overflow:hidden}.xl[data-v-5e80478c]{position:relative;font-size:14px;color:#b0b0b0;text-align:center;line-height:2.5rem;margin:0 .625rem}.xl[data-v-5e80478c]:before{content:"";height:0;border-top:.0625rem dashed #b0b0b0;width:100%;position:absolute;top:50%;margin-top:-.0625rem;left:0}.xl span[data-v-5e80478c]{background-color:#f4f4f4;display:inline-block;padding:0 .375rem;position:relative;z-index:1}.xm[data-v-5e80478c]{padding:.625rem;width:125%;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:3.875rem}.xm li[data-v-5e80478c]{display:inline-block;padding:.625rem 0;border:.0625rem solid #ddd;background:#fff;color:#333;margin:0 .625rem .625rem 0;width:20%;text-align:center;float:left}.xm li.curr[data-v-5e80478c]{border:.0625rem solid #d0d0d0;background:#f3f3f3}#position[data-v-5e80478c]{background-color:#fff;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;height:2.8125rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 .625rem}#position[data-v-5e80478c],#position .left[data-v-5e80478c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#position .left i[data-v-5e80478c]{color:#666;font-size:1rem;margin-left:.28rem}#position .left span[data-v-5e80478c]{font-size:14px;max-width:4rem;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#position .search_box[data-v-5e80478c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;padding:0 .625rem;width:12.5rem;height:1.875rem;line-height:1.875rem;border-radius:1rem;background-color:#f5f5f5}.search_box input[data-v-5e80478c]{border:none;margin-left:.625rem;max-width:11.25rem}.search_box i[data-v-5e80478c]{color:#999;font-size:1rem}#position .right[data-v-5e80478c]{line-height:2.8125rem;min-width:2.5rem;font-size:15px;color:#8c8c8c}.address-list[data-v-5e80478c]{background:#fff;text-align:left;padding:.75rem}.address-list-item[data-v-5e80478c]{padding:.94rem .75rem;color:#6e6e79;font-size:.81rem;margin-bottom:.63rem}.address-list-item .title[data-v-5e80478c]{font-size:.94rem;font-weight:700;color:#3b3b4a}.address-list-item[data-v-5e80478c]:hover{background:#eee}',""]),t.exports=e},"8a85":function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{attrs:{id:"position"}},[i("div",{staticClass:"left",on:{click:t.showCitys}},[i("span",[t._v(t._s(t.city||"全国"))]),i("i",{staticClass:"iconfont icon-icon_down1"})]),i("div",{staticClass:"search_box"},[i("i",{staticClass:"iconfont icon-sousuo1"}),i("input",{directives:[{name:"model",rawName:"v-model",value:t.address_detail,expression:"address_detail"}],attrs:{type:"text",id:"suggestId",name:"address_detail",placeholder:"输入您所在的地点"},domProps:{value:t.address_detail},on:{input:function(e){e.target.composing||(t.address_detail=e.target.value)}}})])]),i("ul",{staticClass:"address-list"},t._l(t.addressList,(function(e,o){return i("li",{directives:[{name:"show",rawName:"v-show",value:e.location,expression:"item.location"}],key:o,staticClass:"address-list-item",on:{click:function(i){return t.goToSelect(e)}}},[i("div",{staticClass:"title"},[t._v(t._s(e.name))]),i("div",[t._v(t._s(e.address))])])})),0),i("div",{staticStyle:{width:"100%"},attrs:{id:"allmap"}})])},a=[],s=(i("b0c0"),i("e9c4"),i("ac1f"),i("841c"),i("14d9"),i("024c")),n=i.n(s),d={components:{},data:function(){return{headerData:{title:"办公地址",toLink:""},address_detail:null,userlocation:{lng:"",lat:""},stores:[],city:"广州",citys:[],isShowCitys:!0,addressList:[]}},created:function(){this.loadMap()},mounted:function(){this.city=this.$route.query.city},activated:function(){this.address_detail="",this.city=this.$route.query.city,this.ready()},methods:{goToSelect:function(t){var e={lat:t.location.lat,lng:t.location.lng},i={adcode:t.adcode,city:this.city},o={addressComponent:i,address:t.address,city:this.city,title:t.name,point:e,timestamp:Math.round(new Date/1e3)};localStorage.setItem("myLocation",JSON.stringify(o)),this.$store.commit("setSwitchCity",!0),this.$store.commit("updateLocation",o),this.$store.commit("setLocation",o),this.backPages()},loadMap:function(){},goback:function(){this.$router.go(-1)},ready:function(){var t=this,e=new n.a.Autocomplete({input:"suggestId",city:t.city}),i=new n.a.Autocomplete({city:t.city});function o(e){n.a.plugin("AMap.Geocoder",(function(){var i=new n.a.Geocoder({city:t.city});i.getAddress(e.poi.location,(function(i,o){if("complete"===i&&"OK"===o.info){var a={lat:e.poi.location.lat,lng:e.poi.location.lng},s={addressComponent:o.regeocode.addressComponent,address:e.poi.address,city:o.regeocode.addressComponent.city?o.regeocode.addressComponent.city:o.regeocode.addressComponent.province,province:o.regeocode.addressComponent.province,title:e.poi.name,point:a,timestamp:Math.round(new Date/1e3)};t.$store.commit("setSwitchCity",!0),localStorage.setItem("myLocation",JSON.stringify(s)),t.$store.commit("updateLocation",s),t.$store.commit("setLocation",s),t.backPages()}}))}))}i.search(t.city,(function(e,i){t.addressList=i.tips})),n.a.event.addListener(e,"select",o)},backPages:function(){this.$router.push(this.fun.getUrl("chainStoreSearchStore",{}))},showCitys:function(){this.isShowCitys?this.isShowCitys=!1:this.isShowCitys=!0}}},r=d,c=(i("b24a"),i("2877")),l=Object(c["a"])(r,o,a,!1,null,"5e80478c",null);e["default"]=l.exports},b24a:function(t,e,i){"use strict";i("339d")}}]); |