(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-store-address-address"],{"09ad":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{listData:[],isLoading:!0,storeList:[],longitude:"",latitude:"",selectedId:-1,is_select:0}},onLoad:function(t){this.selectedId=t.store_id,this.is_select=t.is_select?t.is_select:0,this.getData()},methods:{onAuthorize:function(){var t=this;uni.openSetting({success:function(e){e.authSetting["scope.userLocation"]&&(console.log("授权成功"),t.isAuthor=!0,setTimeout((function(){t.getLocation((function(t){}))}),1e3))}})},getLocation:function(t){var e=this;uni.getLocation({type:"wgs84",success:function(t){e.longitude=t.longitude,e.latitude=t.latitude,e.getData()},fail:function(){uni.showToast({title:"获取定位失败，请点击右下角按钮打开定位权限",duration:2e3}),e.isAuthor=!1}})},getData:function(){var t=this;t.isLoading=!0,t._get("store.store/lists",{longitude:t.longitude,latitude:t.latitude},(function(e){t.isLoading=!1,t.storeList=e.data.list}))},onSelectedStore:function(t){var e=this;e.selectedId=t;var i=getCurrentPages();if(i.length<2)return!1;e.$fire.fire("selectStoreId",t),uni.navigateBack({delta:1})},takePhone:function(t){uni.makePhoneCall({phoneNumber:t})},showAddress:function(t,e){uni.navigateTo({url:"/pages/map/index/index?lat="+t+"&lng="+e})}}};e.default=n},"27dd":function(t,e,i){"use strict";var n=i("fba4"),s=i.n(n);s.a},5119:function(t,e,i){"use strict";i.r(e);var n=i("09ad"),s=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=s.a},7971:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".address-list[data-v-7528db4c]{padding-bottom:%?90?%}.foot-btns[data-v-7528db4c]{padding:0}.foot-btns .btn-red[data-v-7528db4c]{width:100%;height:%?90?%;line-height:%?90?%;border-radius:0}.select_store[data-v-7528db4c]{display:inline-block;padding:%?5?% %?14?%;word-spacing:%?2?%;background-color:#e2231a;color:#fff;border-radius:%?10?%;position:absolute;right:%?40?%}.store_name[data-v-7528db4c]{font-weight:bolder}",""]),t.exports=e},ad3f:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticClass:"address-list bg-white"},[t._l(t.storeList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"address p30 d-s-c border-b-e"},[i("v-uni-view",{staticClass:"info flex-1"},[i("v-uni-view",{staticClass:"user f34 store_name"},[i("v-uni-text",[t._v(t._s(e.store_name))])],1),i("v-uni-view",{staticClass:"pt10 user f30 gray6",staticStyle:{"z-index":"100"}},[i("v-uni-text",{on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.takePhone(e.phone)}}},[t._v(t._s(e.phone)),i("v-uni-text",{staticStyle:{color:"#007AFF","font-size":"13px","padding-left":"10px"}},[t._v("拨打")])],1)],1),i("v-uni-view",{staticClass:"pt10 f24 gray6 ",staticStyle:{display:"inline-block","white-space":"normal",width:"70%"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.showAddress(e.latitude,e.longitude)}}},[i("v-uni-text",[t._v(t._s(e.region.province)+t._s(e.region.city)+t._s(e.region.region)+t._s(e.address)),i("v-uni-text",{staticStyle:{color:"#007AFF","font-size":"13px","padding-left":"10px"}},[t._v("导航")])],1)],1),t.is_select?i("v-uni-view",{staticClass:"pt10 f24 gray6 fr select_store",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onSelectedStore(e.store_id)}}},[t._v("选择")]):t._e(),i("v-uni-view",[i("v-uni-text",{staticClass:"iconfont icon-dingwei"}),i("v-uni-text",[t._v(t._s(e.distance_unit))])],1),e.store_id==t.selectedId?i("v-uni-view",{staticClass:"shop-item__right"},[i("v-uni-text",{staticClass:"iconfont icon-iconfontduihaocopy"})],1):t._e()],1)],1)})),t.isLoading||t.storeList.length?t._e():i("v-uni-view",[i("v-uni-view",{staticClass:"yoshop-notcont"},[i("v-uni-text",{staticClass:"iconfont icon-wushuju"}),i("v-uni-text",{staticClass:"cont"},[t._v("亲，暂无自提门店哦")])],1)],1)],2)],1)},o=[]},db57:function(t,e,i){"use strict";i.r(e);var n=i("ad3f"),s=i("5119");for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);i("27dd");var a,c=i("f0c5"),d=Object(c["a"])(s["default"],n["b"],n["c"],!1,null,"7528db4c",null,!1,n["a"],a);e["default"]=d.exports},fba4:function(t,e,i){var n=i("7971");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var s=i("4f06").default;s("736e8617",n,!0,{sourceMap:!1,shadowMode:!1})}}]);