bztang-admin/addons/yun_shop/static/app/js/chunk-6c153bf9.ad9bc00f.js

1 line
6.1 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c153bf9"],{"081e":function(t,e,i){"use strict";i("1069")},1069:function(t,e,i){var o=i("e2f9");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var s=i("499e").default;s("f4ac408e",o,!0,{sourceMap:!1,shadowMode:!1})},c933: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("i",{staticClass:"iconfont icon-icon_location"}),i("span",[t._v(t._s(t.city||"全国"))])]),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("div",{staticClass:"right",on:{click:t.goback}},[i("span",[t._v("取消")])])]),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)}}},[t._v(" "+t._s(e.name)+" --- "+t._s(e.address)+" ")])})),0),i("div",{staticStyle:{width:"100%"},attrs:{id:"allmap"}})])},s=[],r=(i("b0c0"),i("e9c4"),i("ac1f"),i("841c"),i("024c")),n=i.n(r),a={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={addressComponent:"",address:t.address,city:this.city,title:t.name,point:e,timestamp:Math.round(new Date/1e3)};localStorage.setItem("myLocation",JSON.stringify(i)),this.$store.commit("setSwitchCity",!0),this.$store.commit("updateLocation",i),this.$store.commit("setLocation",i),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 s={lat:e.poi.location.lat,lng:e.poi.location.lng},r={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:s,timestamp:Math.round(new Date/1e3)};t.$store.commit("setSwitchCity",!0),localStorage.setItem("myLocation",JSON.stringify(r)),t.$store.commit("updateLocation",r),t.$store.commit("setLocation",r),t.backPages()}}))}))}i.search(t.city,(function(e,i){t.addressList=i.tips})),n.a.event.addListener(e,"select",o)},backPages:function(){"hotel"==this.$route.query.tag?this.$router.push(this.fun.getUrl("HotelIndex")):"appointment"==this.$route.query.tag?this.$router.push(this.fun.getUrl("Appointment")):"oil"==this.$route.query.tag?this.$router.push(this.fun.getUrl("easyRefuel")):"activity"==this.$route.query.tag?this.$router.push(this.fun.getUrl("activityHome")):"activitySort"==this.$route.query.tag||"tagCloud"==this.$route.query.tag?this.$router.go(-2):this.$store.state.referer?window.location.href=this.$store.state.referer:this.$router.push(this.fun.getUrl("o2oHome",{fromHome:1}))},showCitys:function(){this.isShowCitys?this.isShowCitys=!1:this.isShowCitys=!0}}},c=a,d=(i("081e"),i("2877")),l=Object(d["a"])(c,o,s,!1,null,null,null);e["default"]=l.exports},e2f9:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,'.anchorBL{display:none}.mint-cell-wrapper{text-align:left!important}.mint-cell-value{width:0!important}.xk{width:100%;height:100%;background:#f4f4f4;overflow:hidden}.xl{position:relative;font-size:14px;color:#b0b0b0;text-align:center;line-height:2.5rem;margin:0 .625rem}.xl:before{content:"";height:0;border-top:.0625rem dashed #b0b0b0;width:100%;position:absolute;top:50%;margin-top:-.0625rem;left:0}.xl span{background-color:#f4f4f4;display:inline-block;padding:0 .375rem;position:relative;z-index:1}.xm{padding:.625rem;width:125%;-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:3.875rem}.xm li{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{border:.0625rem solid #d0d0d0;background:#f3f3f3}#position{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,#position .left{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#position .left i{color:#666;font-size:1rem;margin-right:.25rem}#position .left span{font-size:14px;width:4rem;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#position .search_box{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{border:none;margin-left:.625rem;max-width:11.25rem}.search_box i{color:#999;font-size:1rem}#position .right{line-height:2.8125rem;min-width:2.5rem;font-size:15px;color:#8c8c8c}.address-list{background:#fff;text-align:left;padding:.3rem .5rem}.address-list-item{min-height:2rem;padding:.3rem 0;border-bottom:1px solid #eee}.address-list-item:hover{background:#eee}',""]),t.exports=e}}]);