bztang-admin/addons/yun_shop/static/app/js/chunk-64387bd5.c8a95930.js

1 line
12 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-64387bd5"],{"1db7":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,'#all[data-v-c0f88382]{padding-bottom:52px}.x0[data-v-c0f88382]{width:100%;height:100%;background:#f4f4f4;z-index:100}.x0 .x4[data-v-c0f88382]{width:100%;margin:.25rem 0}.x0 .x4 .x5[data-v-c0f88382]{height:3.125rem;padding:0 .9375rem;background:#fff;position:relative}.x0 .x4 .x5 i[data-v-c0f88382]{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-c0f88382]: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-c0f88382]{line-height:3.125rem;color:#47b34f;font-size:16px;display:inline-block}.x0 .xc[data-v-c0f88382]{width:100%}.x0 .xc ul[data-v-c0f88382]{background:#fff}.x5[data-v-c0f88382]{z-index:3}.search_box[data-v-c0f88382]{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;position:relative;top:0;z-index:10}.search_box input[data-v-c0f88382]{border:none;outline:none}.search_box .close[data-v-c0f88382]{width:2.8125rem;height:2.8125rem;line-height:2.8125rem;background:none}.close i[data-v-c0f88382]{font-size:.875rem;color:#666}.search_box .search[data-v-c0f88382]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin:0 .875rem;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-c0f88382]{font-size:1rem;margin-right:.625rem;color:#999}.search input[data-v-c0f88382]{width:12.5rem;max-width:12.5rem}.location-city h1[data-v-c0f88382]{font-weight:400;padding:0 1.25rem;line-height:3.125rem;color:#8c8c8c;font-size:15px;text-align:left}.location-open[data-v-c0f88382]{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-c0f88382]{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-c0f88382]{font-weight:400;padding:0 1.25rem;line-height:3.125rem;color:#8c8c8c;font-size:15px;text-align:left}.history-open[data-v-c0f88382]{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-c0f88382]{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-c0f88382]{padding:0 1rem;line-height:2.875rem;color:#000;font-weight:700;font-size:15px;text-align:left}.open[data-v-c0f88382]{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-c0f88382]{width:5rem;height:2.25rem;line-height:2.25rem;border-radius:.5rem;padding:0 .375rem;border:.0625rem solid #ebebeb;background:#fff;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:.375rem;margin-bottom:.625rem}.city_list[data-v-c0f88382],.open_city[data-v-c0f88382]{background-color:#fff}.city_a[data-v-c0f88382],.city_b .letter[data-v-c0f88382]{line-height:1.875rem;text-align:left;padding-left:.875rem;color:#000;font-weight:700}.city_a[data-v-c0f88382],.city_b li[data-v-c0f88382]{line-height:2.5rem;border-bottom:.0625rem solid #ebebeb;margin:0 1.5rem 0 1rem;text-align:left}.city_b li[data-v-c0f88382]:last-child{border:none}.right_letter[data-v-c0f88382]{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-c0f88382]{width:2.5rem;position:absolute;right:0;top:50%;-webkit-transform:translateY(-45%);transform:translateY(-45%)}.clear[data-v-c0f88382]{line-height:1.4rem!important;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.letter_box li[data-v-c0f88382]{line-height:1.25rem;color:#47b34f;font-size:14px}',""]),t.exports=e},"68a6":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",{attrs:{id:"all"}},[i("c-title",{attrs:{hide:!!t.status,text:"选择定位",eteos:t.fun.setWXTitle(t.$store.state.temp.item.janst)}}),i("div",{staticClass:"x0"},[i("div",{staticClass:"search_box"},[i("div",{staticClass:"close",on:{click:t.goback}},[i("i",{staticClass:"iconfont icon-close11"})]),i("div",{staticClass:"search"},[i("i",{staticClass:"iconfont icon-sousuo1"}),i("input",{attrs:{type:"text",placeholder:"选择城市、小区、写字楼、学校"},on:{click:t.tosearch}})])]),i("div",{staticClass:"x4",staticStyle:{"text-align":"left"}},[i("div",{staticClass:"x5",on:{click:function(e){return e.stopPropagation(),t.toGeolocation.apply(null,arguments)}}},[i("i"),i("p",[t._v("点击定位当前地点")])])]),t._m(0)]),i("div",{staticClass:"open_city"},[i("h1",[i("span",[t._v(t._s(t.tagTitle))]),i("span",[t._v("城市")])]),i("ul",{staticClass:"open"},[1==t.position_switch&&"appointment"!=this.$route.query.tag?i("li",{on:{click:function(e){return e.stopPropagation(),t.setCity("")}}},[t._v("全国")]):t._e(),t._l(t.sixCity,(function(e,o){return i("li",{key:o,on:{click:function(i){return i.stopPropagation(),t.setCity(e)}}},[t._v(" "+t._s(e.full_address)+" ")])}))],2)]),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)}}},[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)},a=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"xc none"},[i("ul")])}],r=(i("e7e5"),i("d399")),s=(i("d81d"),i("e9c4"),i("14d9"),i("6968")),n={hotel:{list:"plugin.hotel.frontend.hotel.hotel.get-hot-citys",tagList:"plugin.hotel.frontend.hotel.hotel.get-city-initials"},oil:{list:"plugin.easy-refuel.frontend.index.getHotCitys",tagList:"plugin.easy-refuel.frontend.index.getCitys"},activity:{list:"plugin.activity-apply.api.index.getHotCitys",tagList:"plugin.activity-apply.api.index.getCityInitials",tagTitle:"热门"},community:{list:"plugin.store-community.frontend.community.getHotCitys",tagList:"plugin.store-community.frontend.community.getCityInitials"},coffee:{list:"plugin.coffee-machine.frontend.buyer.getHotCitys",tagList:"plugin.coffee-machine.frontend.buyer.getCityInitials"},cityPage:{list:"home-page.get-history-city-list",tagList:"plugin.decorate.frotend.decorate-api.get-city",clickTag:"home-page.add-history-city",tagTitle:"常访问"}},l={data:function(){return{tagTitle:"已开通",position_switch:"",show:!0,status:!1,sixCity:[],hotCity:[],citys:[],address:"",city:"",point:""}},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(){var t;this.status="activity"==this.$route.query.tag,null!==(t=n[this.$route.query.tag])&&void 0!==t&&t.tagTitle&&(this.tagTitle=n[this.$route.query.tag].tagTitle),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)},methods:{getSixCityList:function(){var t,e=this,i=this.$route.query.tag,o=(null===(t=n[i])||void 0===t?void 0:t.list)||"plugin.store-cashier.frontend.store.store.getHotCitys";$http.get(o,{},"加载中").then((function(t){1===t.result&&(e.sixCity=t.data.citys,t.data.position_switch&&(e.position_switch=t.data.position_switch),"coffee"==e.$route.query.tag&&e.fun.setWXTitle("选择定位"))}),(function(t){}))},getCityList:function(){var t,e=this,i=this.$route.query.tag,o=(null===(t=n[i])||void 0===t?void 0:t.tagList)||"plugin.store-cashier.frontend.store.store.getCityInitials";$http.get(o).then((function(t){1===t.result&&(e.citys=t.data.initials)}),(function(t){}))},addHistoryCity:function(t){var e;t.id&&null!==(e=n[this.$route.query.tag])&&void 0!==e&&e.clickTag&&$http.get(n[this.$route.query.tag].clickTag,{city_id:t.id,city_name:t.full_address},".")},Jump:function(t,e){var i=t.currentTarget.innerHTML;Object(r["a"])(i);var o=document.querySelectorAll(".d_jump");if("undefined"!==typeof o[e]){var a=o[e].offsetTop-40;document.body.scrollTop=a,document.documentElement.scrollTop=a,window.pageYOffset=a}},toHot:function(){var t=event.currentTarget.innerHTML;Object(r["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){var e;if(this.$route.query.tag&&null!==(e=n[this.$route.query.tag])&&void 0!==e&&e.clickTag&&this.addHistoryCity(t),t.full_address)"cake"===this.$route.query.tag?(this.city=t.full_address,this.$router.push(this.fun.getUrl("sachertorteIndex",{},{city:this.city}))):this.$route.query.tag?(this.city=t.full_address,this.$router.push(this.fun.getUrl("o2oCity",{},{tag:this.$route.query.tag,city:t.full_address}))):(this.city=t.full_address,this.$router.push(this.fun.getUrl("o2oCity",{},{city:t.full_address})));else{var i={lat:"",lng:""},o={address:"",city:"",title:"",point:i,timestamp:Math.round(new Date/1e3)};this.$store.commit("updateLocation",o),this.$store.commit("setLocation",o),localStorage.setItem("myLocation",JSON.stringify(o)),this.$store.state.referer?window.location.href=this.$store.state.referer:this.$router.push(this.fun.getUrl("o2oHome",{fromHome:1})),"cake"===this.$route.query.tag&&this.$router.push(this.fun.getUrl("sachertorteIndex",{},{}))}},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:s["a"]}},c=l,d=c,u=(i("fbc5"),i("2877")),f=Object(u["a"])(d,o,a,!1,null,"c0f88382",null);e["default"]=f.exports},"723a":function(t,e,i){var o=i("1db7");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("499e").default;a("cc7b88f8",o,!0,{sourceMap:!1,shadowMode:!1})},fbc5:function(t,e,i){"use strict";i("723a")}}]);