1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2050cbec"],{4135:function(t,e,i){"use strict";i("ec1a")},"5d3f":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,'#all[data-v-8ec15d9c]{padding-bottom:52px;min-height:100vh;background:#fff}.nowCurrentCity[data-v-8ec15d9c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:.94rem;font-weight:400;color:#3b3b4a;margin:.6rem 0;margin-left:1.2rem}.nowCurrentCity .iconfont[data-v-8ec15d9c]{font-size:1.2rem;color:#000}.currentCity[data-v-8ec15d9c]{padding:.91rem 0 .63rem .75rem;text-align:left;font-weight:400;color:#6e6e79;font-size:.81rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.x0[data-v-8ec15d9c]{width:100%;height:100%;background:#f4f4f4;z-index:100}.x0 .x4[data-v-8ec15d9c]{width:100%;margin-top:.625rem}.x0 .x4 .x5[data-v-8ec15d9c]{height:3.125rem;padding:0 .9375rem;background:#fff;position:relative}.x0 .x4 .x5 i[data-v-8ec15d9c]{display:inline-block;vertical-align:top;width:1.25rem;height:3.125rem;background:url(//static-o2o.360buyimg.com/daojia/new/images/icon/location-eye@2x.png) no-repeat 0;background-size:1.25rem 1.25rem;margin-right:.625rem}.x0 .x4 .x5 p[data-v-8ec15d9c]:after{content:"";position:absolute;right:0;width:2.5rem;height:3.125rem;background:url(//static-o2o.360buyimg.com/daojia/new/images/address/address_arrow_icon.png) no-repeat 50%;background-size:.5rem .8125rem}.x0 .x4 .x5 p[data-v-8ec15d9c]{line-height:3.125rem;color:#47b34f;font-size:16px;display:inline-block}.x0 .xc[data-v-8ec15d9c]{width:100%}.x0 .xc ul[data-v-8ec15d9c]{background:#fff}.x5[data-v-8ec15d9c]{z-index:3}.search_box[data-v-8ec15d9c]{height:2.8125rem;background:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 1.25rem;position:relative;top:0;z-index:10}.search_box input[data-v-8ec15d9c]{border:none;outline:none}.search_box .close[data-v-8ec15d9c]{width:2.8125rem;height:2.8125rem;line-height:2.8125rem;background:none}.close i[data-v-8ec15d9c]{font-size:1.25rem;color:#666}.search_box .search[data-v-8ec15d9c]{width:17.5rem;height:1.875rem;line-height:1.875rem;background-color:#f5f5f5;border-radius:1rem;padding:0 .625rem;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}.search i[data-v-8ec15d9c]{font-size:1rem;margin-right:.625rem;color:#999}.search input[data-v-8ec15d9c]{width:12.5rem;max-width:12.5rem}.location-city h1[data-v-8ec15d9c]{font-weight:400;padding:0 1.25rem;line-height:3.125rem;color:#8c8c8c;font-size:15px;text-align:left}.location-open[data-v-8ec15d9c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0 .875rem}.location-open li[data-v-8ec15d9c]{width:6.0625rem;height:2.5rem;line-height:2.5rem;border-radius:.1875rem;border:.0625rem solid #ebebeb;background:#fff;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;margin-right:.5rem;margin-bottom:.625rem}.history-city h1[data-v-8ec15d9c]{font-weight:400;padding:0 1.25rem;line-height:3.125rem;color:#8c8c8c;font-size:15px;text-align:left}.history-open[data-v-8ec15d9c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0 .875rem}.history-open li[data-v-8ec15d9c]{width:6.0625rem;height:2.5rem;line-height:2.5rem;border-radius:.1875rem;border:.0625rem solid #ebebeb;background:#fff;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;margin-right:.5rem;margin-bottom:.625rem}.open_city h1[data-v-8ec15d9c]{font-weight:400;padding:0 1.25rem;line-height:3.125rem;color:#8c8c8c;font-size:15px;text-align:left}.open[data-v-8ec15d9c]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0 .875rem}.open li[data-v-8ec15d9c]{width:6.0625rem;height:2.5rem;line-height:2.5rem;border-radius:.1875rem;border:.0625rem solid #ebebeb;background:#fff;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;margin-right:.5rem;margin-bottom:.625rem}.city_list[data-v-8ec15d9c]{background-color:#fff;overflow:hidden}.city_a[data-v-8ec15d9c],.city_b .letter[data-v-8ec15d9c]{text-align:left;padding-left:1.5rem;font-weight:700;color:#3b3b4a;font-size:.94rem;margin-top:.47rem}.city_a[data-v-8ec15d9c],.city_b li[data-v-8ec15d9c]{line-height:2.25rem;border-bottom:.0625rem solid #f0f0f1;margin-left:.875rem;text-align:left}.city_b li[data-v-8ec15d9c]{margin-left:1.5rem;margin-right:2.13rem;font-size:.81rem;font-weight:400;color:#6e6e79}.right_letter[data-v-8ec15d9c]{position:fixed;right:0;top:0;z-index:1;height:100%;width:2.5rem;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.letter_box[data-v-8ec15d9c]{padding-top:.625rem;width:2.5rem;position:absolute;right:0;top:12.72rem;-webkit-transform:translateY(-30%);transform:translateY(-30%)}.clear[data-v-8ec15d9c]{line-height:1.4rem!important;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.letter_box li[data-v-8ec15d9c]{line-height:1.13rem;color:#6e6e79;font-size:.75rem}',""]),t.exports=e},b563: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",{staticClass:"chainStoreLoaction",attrs:{id:"all"}},[i("c-title",{attrs:{hide:!!t.status,text:"选择城市",eteos:t.fun.setWXTitle(t.$store.state.temp.item.janst)}}),i("div",{staticClass:"currentCity"},[t._v("当前定位城市:")]),i("div",{staticClass:"nowCurrentCity"},[i("i",{staticClass:"iconfont icon-seller-position"}),i("p",[t._v(t._s(t.nowCity))])]),i("div",{staticClass:"city_list"},t._l(t.citys,(function(e,o){return i("ul",{key:o,staticClass:"city_b"},[i("p",{staticClass:"letter d_jump"},[t._v(t._s(e.title))]),t._l(e.item,(function(e,o){return i("li",{key:o,on:{click:function(i){return t.setCity(e.full_address)}}},[t._v(" "+t._s(e.full_address)+" ")])}))],2)})),0),i("div",{staticClass:"right_letter"},[i("ul",{staticClass:"letter_box",class:{clear:t.status}},[t.status?i("li",{staticClass:"hot-location",class:{clear:t.status},on:{click:t.toHot}},[t._v("热门")]):t._e(),t._l(t.shortcutList,(function(e,o){return i("li",{key:o,on:{click:function(e){return e.stopPropagation(),t.Jump(e,o)}}},[t._v(" "+t._s(e)+" ")])}))],2)])],1)},r=[],a=(i("e7e5"),i("d399")),n=(i("d81d"),i("b64b"),i("14d9"),i("6968")),s={data:function(){return{position_switch:"",show:!0,status:!1,sixCity:[],hotCity:[],citys:[],address:"",city:"",point:"",nowCity:""}},mounted:function(){window.addEventListener("scroll",this.slider)},created:function(){this.status="activity"==this.$route.query.tag},computed:{shortcutList:function(){return this.citys.map((function(t){return String(t.title).substr(0,1)}))}},activated:function(){this.status="activity"==this.$route.query.tag,this.status&&(this.$route.meta.foot=!0,this.$emit("changeFoot",this.$route.meta.foot)),this.getSixCityList(),this.getCityList(),this.fun.setWXTitle(this.$store.state.temp.item.janst);var t=JSON.parse(localStorage.getItem("myLocation"));t&&(this.nowCity=t.city)},methods:{getSixCityList:function(){var t,e=this;t="hotel"==this.$route.query.tag?"plugin.hotel.frontend.hotel.hotel.get-hot-citys":"oil"==this.$route.query.tag?"plugin.easy-refuel.frontend.index.getHotCitys":"activity"==this.$route.query.tag?"plugin.activity-apply.api.index.getHotCitys":"community"==this.$route.query.tag?"plugin.store-community.frontend.community.getHotCitys":"plugin.store-cashier.frontend.store.store.getHotCitys",$http.get(t,{},"加载中").then((function(t){1===t.result&&(e.sixCity=t.data.citys,t.data.position_switch&&(e.position_switch=t.data.position_switch))}),(function(t){}))},getCityList:function(){var t,e=this;t="hotel"==this.$route.query.tag?"plugin.hotel.frontend.hotel.hotel.get-city-initials":"oil"==this.$route.query.tag?"plugin.easy-refuel.frontend.index.getCitys":"activity"==this.$route.query.tag?"plugin.activity-apply.api.index.getCityInitials":"community"==this.$route.query.tag?"plugin.store-community.frontend.community.getCityInitials":"plugin.store-cashier.frontend.store.store.getCityInitials",$http.get(t).then((function(t){1===t.result&&(e.citys=t.data.initials)}),(function(t){}))},Jump:function(t,e){var i=t.currentTarget.innerHTML;Object(a["a"])(i);var o=document.querySelectorAll(".d_jump");if("undefined"!==typeof o[e]){var r=o[e].offsetTop;document.body.scrollTop=r,document.documentElement.scrollTop=r,window.pageYOffset=r}},toHot:function(){var t=event.currentTarget.innerHTML;Object(a["a"])(t);var e=document.querySelectorAll(".hot-location"),i=e.offsetTop;document.body.scrollTop=i,document.documentElement.scrollTop=i,window.pageYOffset=i},setCity:function(t){this.city=t,this.$router.push(this.fun.getUrl("chainStoreLoactionCity",{},{city:t}))},toGeolocation:function(){this.$route.query.tag?this.$router.push(this.fun.getUrl("o2oLocation_loc",{},{tag:this.$route.query.tag})):this.$router.push(this.fun.getUrl("o2oLocation_loc"))},goback:function(){this.$router.go(-1)},tosearch:function(){this.$route.query.tag?this.$router.push(this.fun.getUrl("o2oLocation_loc",{fromHome:1},{tag:this.$route.query.tag})):this.$router.push(this.fun.getUrl("o2oLocation_loc",{fromHome:1}))},slider:function(){var t=document.documentElement.scrollTop||document.body.scrollTop;this.amout=!(t<50)}},components:{cTitle:n["a"]}},c=s,l=c,d=(i("4135"),i("2877")),u=Object(d["a"])(l,o,r,!1,null,"8ec15d9c",null);e["default"]=u.exports},ec1a:function(t,e,i){var o=i("5d3f");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var r=i("499e").default;r("2c41b479",o,!0,{sourceMap:!1,shadowMode:!1})}}]); |