1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f61fbe62"],{"118f":function(t,e,i){"use strict";i("2252")},2252:function(t,e,i){var s=i("ab45");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var a=i("499e").default;a("bfe239ee",s,!0,{sourceMap:!1,shadowMode:!1})},ab45:function(t,e,i){var s=i("24fb");e=s(!1),e.push([t.i,".chainStoreSearchStore .btnAddress[data-v-e37064ce]{position:fixed;bottom:0;left:0;width:100%;height:4.56rem;background:#fff}.chainStoreSearchStore .btnAddress .btn[data-v-e37064ce]{background:var(--themeBaseColor);border-radius:1.56rem;margin:.75rem .75rem 1.31rem .75rem;font-size:.94rem;font-weight:500;color:#fff;padding:.78rem 0}.list[data-v-e37064ce]{padding:.63rem .75rem}.list .title[data-v-e37064ce]{font-weight:700;font-size:.94rem;text-align:left;margin-bottom:.63rem}.list .addressLis[data-v-e37064ce]{background:#fff;padding:.94rem .75rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;border-radius:.5rem;margin-bottom:.63rem}.list .addressLis .addressLis_b[data-v-e37064ce]{text-align:left;font-size:.81rem;font-weight:400;color:#6e6e79}.list .addressLis .addressLis_t[data-v-e37064ce]{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.list .addressLis .addressLis_t[data-v-e37064ce],.list .addressLis .addressLis_t .addressLis_t_l[data-v-e37064ce]{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}.list .addressLis .addressLis_t .addressLis_t_r[data-v-e37064ce]{margin-top:.5rem}.list .addressLis .addressLis_t .addressLis_t_r .iconfont[data-v-e37064ce]{color:#aaaab3}.list .addressLis .addressLis_t .name[data-v-e37064ce]{font-size:.94rem;font-weight:700;color:#3b3b4a;margin-right:.87rem}.list .addressLis .addressLis_t .mobile[data-v-e37064ce]{font-size:.94rem;font-weight:400;color:#3b3b4a}.list .lis[data-v-e37064ce]{padding:.94rem .75rem;background:#fff;border-radius:.5rem;margin-bottom:.63rem}.list .lis .top[data-v-e37064ce]{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:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;margin-bottom:.8rem}.list .lis .top .top_l[data-v-e37064ce]{font-size:.94rem;font-weight:700;color:#3b3b4a}.list .lis .top .top_r[data-v-e37064ce]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;font-size:.81rem;font-weight:400;color:#6e6e79}.list .lis .bottom[data-v-e37064ce]{-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.list .lis .bottom[data-v-e37064ce],.list .lis .bottom .bottom_l .time[data-v-e37064ce]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.list .lis .bottom .bottom_l .time[data-v-e37064ce]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-weight:400;color:#6e6e79;font-size:.81rem}.list .lis .bottom .bottom_l .time .icon-seller-time[data-v-e37064ce]{font-size:1.3rem;color:#6e6e79;margin-left:-2px}.list .lis .bottom .bottom_l .address[data-v-e37064ce]{font-weight:400;color:#6e6e79;font-size:.81rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;margin-top:.5rem}.list .lis .bottom .bottom_l .address span[data-v-e37064ce]{text-align:left;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.list .lis .bottom .bottom_r[data-v-e37064ce],.list .lis .bottom .bottom_r .circle[data-v-e37064ce]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.list .lis .bottom .bottom_r .circle[data-v-e37064ce]{width:1.75rem;height:1.75rem;opacity:1;border:.03rem solid #d6d6dc;border-radius:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.list .lis .bottom .bottom_r .iconfont[data-v-e37064ce]{font-size:.8rem}.listNav[data-v-e37064ce]{margin:.63rem .75rem;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;background:#f0f0f1;border-radius:.5rem}.listNav .lisNav[data-v-e37064ce]{width:7.31rem;height:2.25rem;background:#f0f0f1;line-height:2.25rem;font-size:.88rem;color:#6e6e79;font-weight:400;cursor:pointer}.listNav .activeNav[data-v-e37064ce]{-webkit-box-shadow:.09rem .09rem .19rem .03rem rgba(214,214,220,.53);box-shadow:.09rem .09rem .19rem .03rem rgba(214,214,220,.53);border-radius:.5rem;background:#fff;font-weight:500;color:#00001c;font-size:1rem}.listNav .activeNavOne[data-v-e37064ce]{border-radius:.5rem 0 0 .5rem}.listNav .activeNavLast[data-v-e37064ce]{border-radius:0 .5rem .5rem 0}.topHead[data-v-e37064ce]{background:#fff;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.topHead[data-v-e37064ce],.topHead .topHead_l[data-v-e37064ce]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.topHead .topHead_l[data-v-e37064ce]{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:.91rem .63rem}.topHead .topHead_l .iconfont[data-v-e37064ce]{color:#333}.topHead .topHead_l p[data-v-e37064ce]{margin:0 .31rem}.topHead .topHead_r[data-v-e37064ce]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;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;width:13.77rem}.topHead .topHead_r .van-search[data-v-e37064ce]{padding:0}",""]),t.exports=e},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var s=document.documentElement,a=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return s&&s.scrollTop?t=s.scrollTop:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&s.clientHeight?Math.min(a.clientHeight,s.clientHeight):Math.max(a.clientHeight,s.clientHeight),t},getScrollHeight:function(){return Math.max(a.scrollHeight,s.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},e57e:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"chainStoreSearchStore"},[i("c-title",{ref:"soso",attrs:{hide:!1,text:"搜索",id:"soso"}}),1==t.keyActive?i("div",{staticClass:"topHead"},[i("div",{staticClass:"topHead_l",on:{click:t.goLoaction}},[i("i",{staticClass:"iconfont icon-a-zu4991"}),i("p",[t._v(t._s(t.city))]),i("i",{staticClass:"iconfont icon-icon_more11"})]),i("div",{staticClass:"topHead_r"},[i("van-search",{attrs:{placeholder:"请输入搜索关键词",shape:"round"},on:{search:t.toPostData},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1)]):t._e(),i("div",{staticClass:"listNav"},[i("div",{staticClass:"lisNav",class:1==t.keyActive?"activeNav":"activeNavOne",on:{click:function(e){return t.tapNav(1)}}},[t._v("门店自提")]),i("div",{staticClass:"lisNav",class:2==t.keyActive?"activeNav":"",on:{click:function(e){return t.tapNav(2)}}},[t._v("门店配送")]),i("div",{staticClass:"lisNav",class:3==t.keyActive?"activeNav":"activeNavLast",on:{click:function(e){return t.tapNav(3)}}},[t._v("快递")])]),i("div",{staticClass:"list"},[1==t.keyActive?t._l(this.info,(function(e){return i("div",{key:e.id,staticClass:"lis",on:{click:function(i){return t.tapSelectStore(e)}}},[i("div",{staticClass:"top"},[i("div",{staticClass:"top_l"},[t._v(t._s(e.store_name))]),i("div",{staticClass:"top_r"},[t._v("距离"+t._s(e.distance)+t._s(e.unit))])]),i("div",{staticClass:"bottom"},[i("div",{staticClass:"bottom_l"},[i("div",{staticClass:"time"},[i("i",{staticClass:"iconfont icon-seller-time"}),t._v(" "+t._s(e.business_hours_start)+"-"+t._s(e.business_hours_end)+" ")]),i("div",{staticClass:"address"},[i("i",{staticClass:"iconfont icon-seller-position"}),i("span",[t._v(t._s(e.store_address))])])]),i("div",{staticClass:"bottom_r"},[i("div",{staticClass:"circle",on:{click:function(i){return t.goToAdress(e)}}},[i("i",{staticClass:"iconfont icon-zx_map_local"})]),i("div",{staticClass:"circle",staticStyle:{"margin-left":"0.5rem"},on:{click:function(i){return t.callStore(e)}}},[i("i",{staticClass:"iconfont icon-zx_map_tel"})])])])])})):[i("div",{staticClass:"title"},[t._v("收货地址")]),t._l(t.info,(function(e){return i("div",{key:e.id,staticClass:"addressLis",on:{click:function(i){return t.tapSelectStore(e)}}},[i("div",{staticClass:"addressLis_t"},[i("div",{staticClass:"addressLis_t_l"},[i("div",{staticClass:"name"},[t._v(t._s(e.username))]),i("div",{staticClass:"mobile"},[t._v(t._s(e.mobile))])]),i("div",{staticClass:"addressLis_t_r",on:{click:function(i){return i.stopPropagation(),t.editAddress(e)}}},[i("i",{staticClass:"iconfont icon-fontclass-qianshu"})])]),i("div",{staticClass:"addressLis_b"},[i("div",{staticClass:"addressTxt"},[t._v(t._s(e.province)+t._s(e.city)+t._s(e.district)+t._s(e.street)+t._s(e.address))])])])}))]],2),1!=t.keyActive?i("div",{staticClass:"btnAddress set-pc-styleLeft"},[i("div",{staticClass:"btn",on:{click:function(e){return e.stopPropagation(),t.AddshowTap.apply(null,arguments)}}},[t._v("新增地址")])]):t._e(),i("yz-address-list",{ref:"yz_showAddressShop",on:{confirm:t.childConfirm,close:t.childClose}})],1)},a=[],o=(i("b64b"),i("498a"),i("14d9"),i("99af"),i("a234")),n=i("ac0d"),r={mixins:[n["a"]],data:function(){return{keyword:"",keyActive:1,city:"",address:"",point:"",info:[],myLocation:"",isLoadMore:!0,page:1,total_page:0}},components:{yzAddressList:o["default"]},activated:function(){var t=this,e=JSON.parse(localStorage.getItem("myLocation"));this.myLocation=e,e&&e.timestamp?(this.city=e.city?e.city.trim():e.city,this.address=e.title,this.point=e.point,this.getData()):this.fun.getLocation("正在定位").then((function(e){t.city=e.city.trim(),t.address=e.title,t.point=e.point,t.getData()})).catch((function(t){}))},methods:{childClose:function(){this.$refs.yz_showAddressShop.chainStore=!1,this.$refs.yz_showAddressShop.popAddAddress=!1},tapSelectStore:function(t){var e={get_type:this.keyActive,lng:this.point.lng,lat:this.point.lat};1!=this.keyActive?e.address_id=t.id:e.store_id=t.id,this.$router.push(this.fun.getUrl("chainStoreIndex",{},e))},toPostData:function(){this.info=[],this.getData()},goLoaction:function(){this.$router.push(this.fun.getUrl("chainStoreLoaction",{},{tag:"chainStore"}))},childConfirm:function(){this.getData()},editAddress:function(t){this.$refs.yz_showAddressShop.chainStore=!0,this.$refs.yz_showAddressShop.popAddAddress=!0,this.$refs.yz_showAddressShop.create=!1,this.$refs.yz_showAddressShop.editAddress(t)},AddshowTap:function(){this.$refs.yz_showAddressShop.chainStore=!0,this.$refs.yz_showAddressShop.create=!0,this.$refs.yz_showAddressShop.popAddAddress=!0},tapNav:function(t){this.keyActive=t,this.info=[],this.getData()},callStore:function(t){window.location.href="tel://"+t.mobile},goToAdress:function(t){var e=this.fun.bd_decrypt(t.longitude,t.latitude);this.fun.goToWXAdress(e,t.store_name,t.store_address)},getData:function(){var t=this,e="";e=1==this.keyActive?"plugin.chain-store.frontend.controller.index.store-list":"member.member-address.index",$http.post(e,{keyword:this.keyword,lng:this.point.lng,lat:this.point.lat,city_name:this.city,page:this.page}," ").then((function(e){1===e.result&&(1==t.keyActive?(t.info=e.data.list.data,t.isLoadMore=!0,t.total_page=e.data.list.last_page):t.info=e.data),t.fun.setWXTitle(t.$store.state.temp.item.janst)}),(function(t){})).catch((function(t){}))},getMoreData:function(){var t=this;if(1==this.keyActive&&(this.isLoadMore=!1,!(this.page>=this.total_page))){this.page=this.page+1;var e={keyword:this.keyword,lng:this.point.lng,lat:this.point.lat,city_name:this.city,page:this.page};$http.get("plugin.chain-store.frontend.controller.index.store-list",e," ").then((function(e){if(1===e.result){var i=e.data.list.data;t.info=t.info.concat(i),t.isLoadMore=!0,t.total_page=e.data.list.last_page}else t.$toast(e.msg)}),(function(t){}))}}}},l=r,d=(i("118f"),i("2877")),c=Object(d["a"])(l,s,a,!1,null,"e37064ce",null);e["default"]=c.exports}}]); |