杨总惠通宝
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
htb_backend/public/static/js/pages-users-goods_details_s...

1 lines
13 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-goods_details_store-index"],{"01c6":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",[this.loading&&!this.loaded?e("v-uni-view",{staticClass:"Loads acea-row row-center-wrapper",staticStyle:{"margin-top":".2rem"}},[this.loading?e("v-uni-view",[e("v-uni-view",{staticClass:"iconfont icon-jiazai loading acea-row row-center-wrapper"}),this._v("正在加载中")],1):e("v-uni-view",[this._v("上拉加载更多")])],1):this._e()],1)},a=[]},"05e2":function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,".geoPage[data-v-0a7165d7]{position:fixed;width:100%;height:100%;top:0;z-index:10000}.storeBox[data-v-0a7165d7]{width:100%;background-color:#fff;padding:0 %?30?%}.storeBox-box[data-v-0a7165d7]{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-0a7165d7]{display:flex;align-items:center;width:80%}.store-cent-left[data-v-0a7165d7]{width:45%}.store-img[data-v-0a7165d7]{width:%?120?%;height:%?120?%;border-radius:%?6?%;margin-right:%?22?%}.store-img img[data-v-0a7165d7]{width:100%;height:100%}.store-name[data-v-0a7165d7]{color:#282828;font-size:%?30?%;margin-bottom:%?22?%;font-weight:800}.store-address[data-v-0a7165d7]{color:#666;font-size:%?24?%}.store-phone[data-v-0a7165d7]{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-0a7165d7]{font-size:%?22?%;color:#e83323}.iconfont[data-v-0a7165d7]{font-size:%?20?%}.row-right[data-v-0a7165d7]{display:flex;flex-direction:column;align-items:flex-end;width:33.5%}",""]),t.exports=e},"0a76":function(t,e,n){var o=n("df07");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=n("4f06").default;a("83a82ec8",o,!0,{sourceMap:!1,shadowMode:!1})},"111c":function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.arrivalNoticeApi=function(t){return r.default.post("store/product/increase_take",t)},e.bagExplain=function(){return r.default.get("store/product/bag/explain")},e.bagRecommend=function(){return r.default.get("product/spu/bag/recommend")},e.collectAdd=function(t){return r.default.post("user/relation/create",t)},e.collectAll=function(t){return r.default.post("user/relation/batch/create",t)},e.collectDel=function(t){return r.default.post("user/relation/delete",t)},e.copyPasswordApi=function(t){return r.default.get("product/spu/copy",t,{noAuth:!0})},e.copyPasswordSearch=function(t){return r.default.get("command/copy",t,{noAuth:!0})},e.create=function(t){return r.default.post("intention/create",t)},e.discountsCartAdd=function(t){return r.default.post("user/cart/batchCreate",t)},e.express=function(t){return r.default.post("ordero/express/"+t,{noAuth:!0})},e.followStore=function(t){return r.default.post("user/relation/create",{type:10,type_id:t})},e.getApplicationRecordList=function(t){return r.default.get("intention/lst",t)},e.getBrandlist=function(t){return r.default.get("store/product/brand/lst",t,{noAuth:!0})},e.getBroadcastListApi=function(t){return r.default.get("broadcast/lst",t,{noAuth:!0})},e.getCaptcha=function(){return r.default.get("captcha")},e.getCategoryList=function(){return r.default.get("store/product/category/lst",{},{noAuth:!0})},e.getCollectUserList=function(t){return r.default.get("user/relation/product/lst",t)},e.getCouponProductlist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,a.default)({},t),t.brand_id=t.brand_id.toString());return r.default.get("product/spu/coupon_product",t,{noAuth:!0})},e.getDiscountsLst=function(t){return r.default.get("discounts/lst",t,{noAuth:!0})},e.getGeocoder=function(t){return r.default.get("lbs/geocoder?location=".concat(t.lat,",").concat(t.long),{},{noAuth:!0})},e.getGoodsDetails=function(t){return r.default.get("intention/detail/"+t,{})},e.getGroomList=function(t,e){return r.default.get("product/spu/hot/"+t,e,{noAuth:!0})},e.getHotBanner=function(t){return r.default.get("common/hot_banner/"+t,{},{noAuth:!0})},e.getLiveList=function(t){return r.default.get("broadcast/hot",t,{noAuth:!0})},e.getMerProductHot=function(t,e){return r.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 r.default.get("user/relation/merchant/lst",t,{noAuth:!0})},e.getPresellProductDetail=function(t){return r.default.get("store/product/presell/detail/"+t,{},{noAuth:!0})},e.getPreviewProDetail=function(t){return r.default.get("store/product/preview",t,{noAuth:!0})},e.getProductCode=function(t,e){return r.default.get("store/product/qrcode/"+t,e)},e.getProductDetail=function(t){return r.default.get("store/product/detail/"+t,{},{noAuth:!0})},e.getProductHot=function(t,e){return r.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,a.default)({},t),t.brand_id=t.brand_id.toString());return r.default.get("product/spu/lst",t,{noAuth:!0})},e.getReplyConfig=function(t){return r.default.get("reply/config/"+t)},e.getReplyList=function(t,e){return r.default.get("store/product/reply/lst/"+t,e,{noAuth:!0})},e.getSearchKeyword=function(){return r.default.get("common/hot_keyword",{},{noAuth:!0})},e.getSeckillProductDetail=function(t){return r.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getStoreCategory=function(t,e){return r.default.get("store/merchant/category/lst/"+t,e,{noAuth:!0})},e.getStoreCoupon=function(t){return r.default.get("coupon/store/"+t,{noAuth:!0})},e.getStoreDetail=function(t,e){return r.default.get("store/merchant/detail/"+t,e,{noAuth:!0})},e.getStoreGoods=function(t,e){return r.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.getStoreTypeApi=function(){return r.default.get("intention/type",{},{noAuth:!0})},e.merClassifly=function(){return r.default.get("intention/cate",{},{noAuth:!0})},e.merchantProduct=function(t,e){e.brand_id&&Array.isArray(e.brand_id)&&(e=(0,a.default)({},e),e.brand_id=e.brand_id.toString());return r.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.merchantQrcode=function(t,e){return r.default.get("store/merchant/qrcode/"+t,e,{noAuth:!0})},e.postCartAdd=function(t){return r.default.post("user/cart/create",t)},e.priceRuleApi=function(t){return r.default.get("store/product/price_rule/".concat(t),{},{noAuth:!0})},e.productBag=function(t){return r.default.get("product/spu/bag",t,{noAuth:!0})},e.storeCategory=function(t){return r.default.get("store/product/category",t,{noAuth:!0})},e.storeCertificate=function(t){return r.default.post("store/certificate/".concat(t.merId),t)},e.storeListApi=function(t){return r.default.get("store_list",t,{noAuth:!0})},e.storeMerchantList=function(t){return r.default.get("store/merchant/lst",t,{noAuth:!0})},e.storeServiceList=function(t,e){return r.default.get("product/spu/local/".concat(t),e,{noAuth:!0})},e.unfollowStore=function(t){return r.default.post("user/relation/delete",{type:10,type_id:t})},e.updateGoodsRecord=function(t,e){return r.default.post("intention/update/"+t,e)},e.userCollectDel=function(t){return r.default.post("user/relation/batch/delete",t)},e.verify=function(t){return r.default.post("auth/verify",t)},n("d401"),n("d3b7"),n("25f0"),n("99af");var a=o(n("5530")),r=o(n("b5ef"))},"1ea6":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={name:"Loading",props:{loaded:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}}};e.default=o},3543:function(t,e,n){var o=n("05e2");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=n("4f06").default;a("db0686cc",o,!0,{sourceMap:!1,shadowMode:!1})},"69cc":function(t,e,n){"use strict";var o=n("3543"),a=n.n(o);a.a},7763:function(t,e,n){"use strict";var o=n("0a76"),a=n.n(o);a.a},b90c:function(t,e,n){"use strict";n.r(e);var o=n("01c6"),a=n("cc26");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("7763");var i=n("f0c5"),u=Object(i["a"])(a["default"],o["b"],o["c"],!1,null,"0566d5ee",null,!1,o["a"],void 0);e["default"]=u.exports},cc26:function(t,e,n){"use strict";n.r(e);var o=n("1ea6"),a=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=a.a},ce20:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{ref:"container",staticClass:"storeBox"},[t._l(t.storeList,(function(e,o){return n("div",{key:o,staticClass:"storeBox-box",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.checked(e)}}},[n("div",{staticClass:"store-img"},[n("v-uni-image",{attrs:{src:e.image,"lazy-load":"true"}})],1),n("div",{staticClass:"store-cent-left"},[n("div",{staticClass:"store-name"},[t._v(t._s(e.name))]),n("div",{staticClass:"store-address line1"},[t._v(t._s(e.address)+t._s(", "+e.detailed_address))])]),n("div",{staticClass:"row-right"},[n("div",[n("a",{staticClass:"store-phone",attrs:{href:"tel:"+e.phone}},[n("span",{staticClass:"iconfont icon-dadianhua01"})])]),n("div",{staticClass:"store-distance",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.showMaoLocation(e)}}},[e.range?n("span",{staticClass:"addressTxt"},[t._v("距离"+t._s(e.range)+"千米")]):n("span",{staticClass:"addressTxt"},[t._v("查看地图")]),n("span",{staticClass:"iconfont icon-youjian"})])])])})),n("Loading",{attrs:{loaded:t.loaded,loading:t.loading}})],2),n("div",[t.locationShow&&!t.isWeixin?n("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?n("div",{staticClass:"geoPage"},[n("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()])},a=[]},d04e:function(t,e,n){"use strict";n.r(e);var o=n("fa07"),a=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=a.a},d110:function(t,e,n){"use strict";n.r(e);var o=n("ce20"),a=n("d04e");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("69cc");var i=n("f0c5"),u=Object(i["a"])(a["default"],o["b"],o["c"],!1,null,"0a7165d7",null,!1,o["a"],void 0);e["default"]=u.exports},df07:function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,".Loads[data-v-0566d5ee]{height:%?80?%;font-size:%?25?%;color:#000}.Loads .iconfont[data-v-0566d5ee]{font-size:%?30?%;margin-right:%?10?%;height:%?32?%;line-height:%?32?%}\n/*加载动画*/@-webkit-keyframes load-data-v-0566d5ee{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes load-data-v-0566d5ee{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.loadingpic[data-v-0566d5ee]{-webkit-animation:load-data-v-0566d5ee 3s linear 1s infinite;animation:load-data-v-0566d5ee 3s linear 1s infinite}.loading[data-v-0566d5ee]{-webkit-animation:load-data-v-0566d5ee linear 1s infinite;animation:load-data-v-0566d5ee linear 1s infinite}",""]),t.exports=e},fa07:function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3"),n("acd8"),n("14d9");var a=o(n("b90c")),r=n("111c"),i=(n("4f1b"),n("8b6a"),n("26cb"),{name:"storeList",components:{Loading:a.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.getLocation({type:"wgs84",success:function(e){try{uni.setStorageSync("user_latitude",e.latitude),uni.setStorageSync("user_longitude",e.longitude)}catch(n){}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,r.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=i}}]);