(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-goods_details_store-index"],{"16f0":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return r})),o.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("div",{ref:"container",staticClass:"storeBox"},[t._l(t.storeList,(function(e,n){return o("div",{key:n,staticClass:"storeBox-box",on:{click:function(o){o.stopPropagation(),arguments[0]=o=t.$handleEvent(o),t.checked(e)}}},[o("div",{staticClass:"store-img"},[o("v-uni-image",{attrs:{src:e.image,"lazy-load":"true"}})],1),o("div",{staticClass:"store-cent-left"},[o("div",{staticClass:"store-name"},[t._v(t._s(e.name))]),o("div",{staticClass:"store-address line1"},[t._v(t._s(e.address)+t._s(", "+e.detailed_address))])]),o("div",{staticClass:"row-right"},[o("div",[o("a",{staticClass:"store-phone",attrs:{href:"tel:"+e.phone}},[o("span",{staticClass:"iconfont icon-dadianhua01"})])]),o("div",{staticClass:"store-distance",on:{click:function(o){o.stopPropagation(),arguments[0]=o=t.$handleEvent(o),t.showMaoLocation(e)}}},[e.range?o("span",{staticClass:"addressTxt"},[t._v("距离"+t._s(e.range)+"千米")]):o("span",{staticClass:"addressTxt"},[t._v("查看地图")]),o("span",{staticClass:"iconfont icon-youjian"})])])])})),o("Loading",{attrs:{loaded:t.loaded,loading:t.loading}})],2),o("div",[t.locationShow&&!t.isWeixin?o("iframe",{ref:"geoPage",staticStyle:{display:"none"},attrs:{width:"0",height:"0",frameborder:"0",scrolling:"no",src:"https://apis.map.qq.com/tools/geolocation?key="+t.mapKey+"&referer=myapp"}}):t._e()]),t.mapShow?o("div",{staticClass:"geoPage"},[o("iframe",{attrs:{width:"100%",height:"100%",frameborder:"0",scrolling:"no",src:"https://apis.map.qq.com/uri/v1/geocoder?coord="+t.system_store.latitude+","+t.system_store.longitude+"&referer="+t.mapKey}})]):t._e()])},r=[]},"677c":function(t,e,o){var n=o("24fb");e=n(!1),e.push([t.i,".geoPage[data-v-c5350cee]{position:fixed;width:100%;height:100%;top:0;z-index:10000}.storeBox[data-v-c5350cee]{width:100%;background-color:#fff;padding:0 %?30?%}.storeBox-box[data-v-c5350cee]{width:100%;height:auto;display:flex;align-items:center;padding:%?23?% 0;justify-content:space-between;border-bottom:1px solid #eee}.store-cent[data-v-c5350cee]{display:flex;align-items:center;width:80%}.store-cent-left[data-v-c5350cee]{width:45%}.store-img[data-v-c5350cee]{width:%?120?%;height:%?120?%;border-radius:%?6?%;margin-right:%?22?%}.store-img img[data-v-c5350cee]{width:100%;height:100%}.store-name[data-v-c5350cee]{color:#282828;font-size:%?30?%;margin-bottom:%?22?%;font-weight:800}.store-address[data-v-c5350cee]{color:#666;font-size:%?24?%}.store-phone[data-v-c5350cee]{width:%?50?%;height:%?50?%;color:#fff;border-radius:50%;display:block;text-align:center;line-height:%?50?%;background-color:#e83323;margin-bottom:%?22?%}.store-distance[data-v-c5350cee]{font-size:%?22?%;color:#e83323}.iconfont[data-v-c5350cee]{font-size:%?20?%}.row-right[data-v-c5350cee]{display:flex;flex-direction:column;align-items:flex-end;width:33.5%}",""]),t.exports=e},"6ff5":function(t,e,o){var n=o("677c");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=o("4f06").default;r("25e0156c",n,!0,{sourceMap:!1,shadowMode:!1})},"9c3f":function(t,e,o){"use strict";o("7a82");var n=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("a9e3"),o("acd8"),o("14d9");var r=n(o("8117")),i=o("a126"),a=(o("5315"),o("1ba1"),o("26cb"),{name:"storeList",components:{Loading:r.default},data:function(){return{page:1,limit:20,loaded:!1,loading:!1,storeList:[],mapShow:!1,system_store:{},locationShow:!1,user_latitude:0,user_longitude:0}},onLoad:function(){try{this.user_latitude=uni.getStorageSync("user_latitude"),this.user_longitude=uni.getStorageSync("user_longitude")}catch(t){}},mounted:function(){this.user_latitude&&this.user_longitude?this.getList():this.selfLocation()},methods:{selfLocation:function(){var t=this;uni.getStorageSync("RejectTarget")||uni.getLocation({type:"wgs84",success:function(e){try{uni.setStorageSync("user_latitude",e.latitude),uni.setStorageSync("user_longitude",e.longitude)}catch(o){}t.getList()},complete:function(){t.getList()}})},showMaoLocation:function(t){if(!t.latitude||!t.longitude)return this.$util.Tips({title:"请设置允许商城访问您的位置!"});!0===this.$wechat.isWeixin()?this.$wechat.seeLocation({latitude:Number(t.latitude),longitude:Number(t.longitude)}).then((function(t){})):uni.openLocation({latitude:parseFloat(t.latitude),longitude:parseFloat(t.longitude),success:function(t){}})},checked:function(t){uni.$emit("handClick",{address:t}),uni.navigateBack()},getList:function(){var t=this;if(!this.loading&&!this.loaded){this.loading=!0;var e={latitude:this.user_latitude||"",longitude:this.user_longitude||"",page:this.page,limit:this.limit};(0,i.storeListApi)(e).then((function(e){t.loading=!1,t.loaded=e.data.list.length