(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-store-address-address"],{"05cb":function(t,i,e){var n=e("24fb");i=n(!1),i.push([t.i,".address-list[data-v-29ccfa1a]{padding-bottom:%?90?%}.foot-btns[data-v-29ccfa1a]{padding:0}.foot-btns .btn-red[data-v-29ccfa1a]{width:100%;height:%?90?%;line-height:%?90?%;border-radius:0}",""]),t.exports=i},"0d76":function(t,i,e){"use strict";e.r(i);var n=e("6572"),s=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);i["default"]=s.a},"5b10":function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return s})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",[e("v-uni-view",{staticClass:"address-list bg-white"},[t._l(t.storeList,(function(i,n){return e("v-uni-view",{key:n,staticClass:"address p30 d-s-c border-b-e"},[e("v-uni-view",{staticClass:"info flex-1",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onSelectedStore(i.store_id)}}},[e("v-uni-view",{staticClass:"user f34"},[e("v-uni-text",[t._v(t._s(i.shop_name))])],1),e("v-uni-view",{staticClass:"pt10 user f30 gray6"},[e("v-uni-text",[t._v(t._s(i.phone))])],1),e("v-uni-view",{staticClass:"pt10 f24 gray6"},[e("v-uni-text",[t._v(t._s(i.region.province)+t._s(i.region.city)+t._s(i.region.region)+t._s(i.address))])],1),e("v-uni-view",[e("v-uni-text",{staticClass:"iconfont icon-dingwei"}),e("v-uni-text",[t._v(t._s(i.distance_unit))])],1),i.store_id==t.selectedId?e("v-uni-view",{staticClass:"shop-item__right"},[e("v-uni-text",{staticClass:"iconfont icon-iconfontduihaocopy"})],1):t._e()],1)],1)})),t.isLoading||t.storeList.length?t._e():e("v-uni-view",[e("v-uni-view",{staticClass:"yoshop-notcont"},[e("v-uni-text",{staticClass:"iconfont icon-wushuju"}),e("v-uni-text",{staticClass:"cont"},[t._v("亲，暂无自提门店哦")])],1)],1)],2)],1)},s=[]},6572:function(t,i,e){"use strict";e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n={data:function(){return{listData:[],isLoading:!0,storeList:[],longitude:"",latitude:"",selectedId:-1}},onLoad:function(t){this.selectedId=t.store_id,this.getLocation(),this.getData()},methods:{onAuthorize:function(){var t=this;uni.openSetting({success:function(i){i.authSetting["scope.userLocation"]&&(console.log("授权成功"),t.isAuthor=!0,setTimeout((function(){t.getLocation((function(t){}))}),1e3))}})},getLocation:function(t){var i=this;uni.getLocation({type:"wgs84",success:function(t){i.longitude=t.longitude,i.latitude=t.latitude,i.getData()},fail:function(){uni.showToast({title:"获取定位失败，请点击右下角按钮打开定位权限",duration:2e3}),i.isAuthor=!1}})},getData:function(){var t=this;t.isLoading=!0,t._get("store.store/lists",{longitude:t.longitude,latitude:t.latitude},(function(i){t.isLoading=!1,t.storeList=i.data.list}))},onSelectedStore:function(t){this.selectedId=t;var i=getCurrentPages();if(i.length<2)return!1;this.$fire.fire("selectStoreId",t),uni.navigateBack()}}};i.default=n},"865e":function(t,i,e){var n=e("05cb");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var s=e("4f06").default;s("4daa7829",n,!0,{sourceMap:!1,shadowMode:!1})},"8a0d":function(t,i,e){"use strict";e.r(i);var n=e("5b10"),s=e("0d76");for(var o in s)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return s[t]}))}(o);e("be12");var a=e("f0c5"),u=Object(a["a"])(s["default"],n["b"],n["c"],!1,null,"29ccfa1a",null,!1,n["a"],void 0);i["default"]=u.exports},be12:function(t,i,e){"use strict";var n=e("865e"),s=e.n(n);s.a}}]);