1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(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<t.limit,t.storeList.push.apply(t.storeList,e.data.list.list),t.page=t.page+1})).catch((function(e){t.$dialog.error(e.msg)}))}}},onReachBottom:function(){this.getList()}});e.default=a},a126:function(t,e,o){"use strict";o("7a82");var n=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.addCartApi=function(t){return i.default.post("v2/micropay/addCart",t)},e.agreeiness=function(t){return i.default.get("business/agree",t,{noAuth:!0})},e.arrivalNoticeApi=function(t){return i.default.post("store/product/increase_take",t)},e.bagExplain=function(){return i.default.get("store/product/bag/explain")},e.bagRecommend=function(){return i.default.get("product/spu/bag/recommend")},e.collectAdd=function(t){return i.default.post("user/relation/create",t)},e.collectAll=function(t){return i.default.post("user/relation/batch/create",t)},e.collectDel=function(t){return i.default.post("user/relation/delete",t)},e.copyPasswordApi=function(t){return i.default.get("product/spu/copy",t,{noAuth:!0})},e.copyPasswordSearch=function(t){return i.default.get("command/copy",t,{noAuth:!0})},e.create=function(t){return i.default.post("intention/create",t)},e.createtApi=function(t){return i.default.post("v2/micropay/create",t)},e.discountsCartAdd=function(t){return i.default.post("user/cart/batchCreate",t)},e.express=function(t){return i.default.post("ordero/express/"+t,{noAuth:!0})},e.followStore=function(t){return i.default.post("user/relation/create",{type:10,type_id:t})},e.getApplicationRecordList=function(t){return i.default.get("intention/lst",t)},e.getBrandlist=function(t){return i.default.get("store/product/brand/lst",t,{noAuth:!0})},e.getBroadcastListApi=function(t){return i.default.get("broadcast/lst",t,{noAuth:!0})},e.getCaptcha=function(){return i.default.get("captcha")},e.getCategoryList=function(){return i.default.get("store/product/category/lst",{},{noAuth:!0})},e.getCollectUserList=function(t){return i.default.get("user/relation/product/lst",t)},e.getCouponProductlist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,r.default)({},t),t.brand_id=t.brand_id.toString());return i.default.get("product/spu/coupon_product",t,{noAuth:!0})},e.getDiscountsLst=function(t){return i.default.get("discounts/lst",t,{noAuth:!0})},e.getGeocoder=function(t){return i.default.get("lbs/geocoder?location=".concat(t.lat,",").concat(t.long),{},{noAuth:!0})},e.getGoodsDetails=function(t){return i.default.get("intention/detail/"+t,{})},e.getGroomList=function(t,e){return i.default.get("product/spu/hot/"+t,e,{noAuth:!0})},e.getHotBanner=function(t){return i.default.get("common/hot_banner/"+t,{},{noAuth:!0})},e.getLiveList=function(t){return i.default.get("broadcast/hot",t,{noAuth:!0})},e.getMerProductHot=function(t,e){return i.default.get("product/spu/recommend",{page:void 0===e.page?1:e.page,limit:void 0===e.limit?10:e.limit,mer_id:t||""},{noAuth:!0})},e.getMerchantLst=function(t){return i.default.get("user/relation/merchant/lst",t,{noAuth:!0})},e.getPresellProductDetail=function(t){return i.default.get("store/product/presell/detail/"+t,{},{noAuth:!0})},e.getPreviewProDetail=function(t){return i.default.get("store/product/preview",t,{noAuth:!0})},e.getProductCode=function(t,e){return i.default.get("store/product/qrcode/"+t,e)},e.getProductDetail=function(t,e){return i.default.get("store/product/detail/"+t,e,{noAuth:!0})},e.getProductHot=function(t,e){return i.default.get("product/spu/recommend",{page:void 0===t?1:t,limit:void 0===e?10:e},{noAuth:!0})},e.getProductslist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,r.default)({},t),t.brand_id=t.brand_id.toString());return i.default.get("product/spu/lst",t,{noAuth:!0})},e.getReplyConfig=function(t){return i.default.get("reply/config/"+t)},e.getReplyList=function(t,e){return i.default.get("store/product/reply/lst/"+t,e,{noAuth:!0})},e.getSearchKeyword=function(){return i.default.get("common/hot_keyword",{},{noAuth:!0})},e.getSeckillProductDetail=function(t){return i.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getStoreCategory=function(t,e){return i.default.get("store/merchant/category/lst/"+t,e,{noAuth:!0})},e.getStoreCoupon=function(t){return i.default.get("coupon/store/"+t,{noAuth:!0})},e.getStoreDetail=function(t,e){return i.default.get("store/merchant/detail/"+t,e,{noAuth:!0})},e.getStoreGoods=function(t,e){return i.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.getStoreTypeApi=function(){return i.default.get("intention/type",{sift_store:0},{noAuth:!0})},e.merClassifly=function(){return i.default.get("intention/cate",{},{noAuth:!0})},e.merchantProduct=function(t,e){e.brand_id&&Array.isArray(e.brand_id)&&(e=(0,r.default)({},e),e.brand_id=e.brand_id.toString());return i.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.merchantQrcode=function(t,e){return i.default.get("store/merchant/qrcode/"+t,e,{noAuth:!0})},e.microSeachBarCode=function(t){return i.default.get("micro/seach_bar_code",t)},e.postCartAdd=function(t){return i.default.post("user/cart/create",t)},e.priceRuleApi=function(t){return i.default.get("store/product/price_rule/".concat(t),{},{noAuth:!0})},e.productBag=function(t){return i.default.get("product/spu/bag",t,{noAuth:!0})},e.storeCategory=function(t){return i.default.get("store/product/category",t,{noAuth:!0})},e.storeCertificate=function(t){return i.default.post("store/certificate/".concat(t.merId),t)},e.storeListApi=function(t){return i.default.get("store_list",t,{noAuth:!0})},e.storeMerchantList=function(t){return i.default.get("store/merchant/lst",t,{noAuth:!0})},e.storeServiceList=function(t,e){return i.default.get("product/spu/local/".concat(t),e,{noAuth:!0})},e.supAgoodsApi=function(t){return i.default.get("store/merchant/lst",t)},e.supMenuApi=function(t){return i.default.get("intention/v2/cate",t)},e.unfollowStore=function(t){return i.default.post("user/relation/delete",{type:10,type_id:t})},e.updateGoodsRecord=function(t,e){return i.default.post("intention/update/"+t,e)},e.userCollectDel=function(t){return i.default.post("user/relation/batch/delete",t)},e.verify=function(t){return i.default.post("auth/verify",t)},e.vicinityStoreApi=function(t){return i.default.get("region/".concat(t,"/merchant"))},o("d401"),o("d3b7"),o("25f0"),o("99af");var r=n(o("5530")),i=n(o("6860"));n(o("b923"))},b5d0:function(t,e,o){"use strict";o.r(e);var n=o("9c3f"),r=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},cedd:function(t,e,o){"use strict";var n=o("6ff5"),r=o.n(n);r.a},edaa:function(t,e,o){"use strict";o.r(e);var n=o("16f0"),r=o("b5d0");for(var i in r)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(i);o("cedd");var a=o("f0c5"),u=Object(a["a"])(r["default"],n["b"],n["c"],!1,null,"c5350cee",null,!1,n["a"],void 0);e["default"]=u.exports}}]); |