| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-lifeService-index"],{"326b":function(t,e,i){var n=i("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.productList .search[data-v-803786e4]{width:100%;height:%?86?%;padding:0 %?20?%;box-sizing:border-box;position:fixed;left:0;top:0;z-index:9;display:flex;flex-wrap:nowrap;background:var(--view-theme)}.productList .search .search-right[data-v-803786e4]{display:flex;align-items:center;justify-content:space-between;max-width:-webkit-max-content;max-width:max-content;flex:1;padding-left:%?20?%}.productList .search .right-text[data-v-803786e4]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:%?28?%;width:-webkit-max-content;width:max-content;color:#fff;padding:0 %?10?%}.productList .search .icon-ic_rightarrow[data-v-803786e4],\n.productList .search .icon-ic_location51[data-v-803786e4]{font-size:%?32?%;color:#fff}.productList .search .back[data-v-803786e4]{display:flex;align-items:center;width:%?40?%;height:%?60?%}.productList .search .back .iconfont[data-v-803786e4]{color:#fff;font-size:%?36?%}.productList .search .input[data-v-803786e4]{flex:1;height:%?60?%;background-color:#fff;border-radius:%?50?%;padding:0 %?20?%;box-sizing:border-box}.productList .search .input uni-input[data-v-803786e4]{flex:1;height:100%;font-size:%?26?%;margin-left:%?10?%}.productList .search .input .iconfont[data-v-803786e4]{font-size:%?28?%;color:#999}.productList .nav-wrapper[data-v-803786e4]{z-index:9;position:fixed;left:0;top:0;width:100%;margin-top:%?86?%;background-color:var(--view-theme)}.productList .nav[data-v-803786e4]{height:%?86?%;color:#454545;font-size:%?28?%;background-color:var(--view-theme);display:flex;justify-content:space-between;padding:0 %?28?%}.productList .nav .item[data-v-803786e4]{display:flex;align-items:center;justify-content:center;flex-direction:column;color:#fff;flex:1}.productList .nav .item.font-colors[data-v-803786e4]{font-weight:500;color:#fff}.productList .nav .item .font-line[data-v-803786e4]{height:%?4?%;background-color:#fff;margin-top:%?3?%;width:%?28?%;animation:line-data-v-803786e4 .3s;-moz-animation:line-data-v-803786e4 .3s;\n /* Firefox */-webkit-animation:line-data-v-803786e4 .3s;\n /* Safari 和 Chrome */-o-animation:line-data-v-803786e4 .3s\n /* Opera */}@-webkit-keyframes line-data-v-803786e4{from{width:%?0?%}to{width:%?28?%}}@keyframes line-data-v-803786e4{from{width:%?0?%}to{width:%?28?%}}.productList .nav .item uni-image[data-v-803786e4]{width:%?15?%;height:%?19?%;margin-left:%?10?%}.mer-box[data-v-803786e4]{padding:%?20?% %?20?%;margin-top:%?168?%}.mer-box .mer-item[data-v-803786e4]{margin-bottom:%?20?%}.mer-box .mer-item .mer-hd[data-v-803786e4]{position:relative;width:100%;height:%?134?%;border-radius:%?24?% %?24?% 0 0;overflow:hidden;display:flex}.mer-box .mer-item .mer-hd uni-image[data-v-803786e4]{width:100%;height:100%}.mer-box .mer-item .mer-hd .mer-name[data-v-803786e4]{position:absolute;left:%?20?%;top:%?30?%;display:flex;align-items:center;padding:0 %?10?%}.mer-box .mer-item .mer-hd .mer-name uni-image[data-v-803786e4]{width:%?79?%;height:%?79?%;border:1px solid #fff;border-radius:50%;margin-right:%?10?%}.mer-box .mer-item .mer-hd .mer-name .mer-top[data-v-803786e4]{display:flex;align-items:center;color:#fff;font-size:%?28?%;font-weight:700;margin-bottom:%?6?%}.mer-box .mer-item .mer-hd .mer-name .mer-top .font-bg-red[data-v-803786e4]{margin-left:%?20?%;font-size:%?18?%;padding:%?2?% %?10?%;border-color:var(--view-theme);background:var(--view-theme);border-radius:%?30?%;width:auto}.mer-box .mer-item .mer-hd .mer-name .mer-btn[data-v-803786e4]{color:hsla(0,0%,100%,.7);font-size:%?24?%;display:flex;align-items:center}.mer-box .mer-item .mer-hd .mer-name .mer-btn .line[data-v-803786e4]{width:%?2?%;height:%?18?%;background:hsla(0,0%,100%,.7);margin:0 %?12?%}.mer-box .mer-item .mer-hd .mer-name .mer-btn .distance[data-v-803786e4]{display:flex;align-items:center;font-size:%?24?%;color:hsla(0,0%,100%,.7)}.mer-box .mer-item .mer-hd .mer-name .mer-btn .distance .iconfont[data-v-803786e4]{font-size:%?24?%;line-height:%?24?%}.mer-box .mer-item .mer-hd .mer-name .txt[data-v-803786e4]{flex:1}.mer-box .mer-item .pro-box[data-v-803786e4]{display:flex;align-items:center;padding:%?20?% %?20?% %?30?%}.mer-box .mer-item .pro-box .pro-item[data-v-803786e4]{width:%?218?%;margin-right:%?14?%}.mer-box .mer-item .pro-box .pro-item uni-image[data-v-803786e4]{width:100%;height:%?214?%;border-radius:%?16?%}.mer-box .mer-item .pro-box .pro-item .price[data-v-803786e4]{margin-top:%?5?%;color:var(--view-priceColor)}.mer-box .mer-item .pro-box .pro-item[data-v-803786e4]:last-child{margin-right:0}.no-shop[data-v-803786e4]{background-color:#fff;padding-bottom:calc(100% - %?40?%);padding-top:%?200?%}.no-shop .pictrue[data-v-803786e4]{display:flex;flex-direction:column;align-items:center;color:#999}.no-shop .pictrue uni-image[data-v-803786e4]{width:%?414?%;height:%?380?%}',""]),t.exports=e},"4a82":function(t,e,i){"use strict";i("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.goShopDetail=function(t,e){return new Promise((function(e){1===t.product_type?uni.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(t.product_id,"&time=").concat(t.stop_time)}):2===t.product_type?uni.navigateTo({url:"/pages/activity/presell_details/index?id=".concat(t.activity_id)}):0===t.product_type||10===t.product_type?uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.product_id)}):4===t.product_type?uni.navigateTo({url:"/pages/activity/combination_details/index?id=".concat(t.activity_id)}):40===t.product_type?uni.navigateTo({url:"/pages/activity/combination_status/index?id=".concat(t.activity_id)}):e(t)}))},i("bf0f"),i("c223")},"5a33":function(t,e,i){"use strict";var n=i("f423"),o=i.n(n);o.a},8410:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.viewColor},[i("v-uni-view",{staticClass:"productList"},[i("v-uni-view",{staticClass:"search acea-row row-between-wrapper"},[t.$wechat.isWeixin()?t._e():i("v-uni-view",{staticClass:"back",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.backjJump()}}},[i("v-uni-view",{staticClass:"iconfont icon-ic_leftarrow"})],1),i("v-uni-view",{staticClass:"input acea-row row-between-wrapper"},[i("v-uni-text",{staticClass:"iconfont icon-ic_search"}),i("v-uni-input",{attrs:{placeholder:"搜索店铺名称","placeholder-class":"placeholder","confirm-type":"search",name:"search",value:t.sotreParam.keyword},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.searchSubmit.apply(void 0,arguments)}}})],1),1==t.mer_location?i("v-uni-view",{staticClass:"iconfont search-right",staticStyle:{"text-align":"right"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showMaoLocation(t.latitude,t.longitude)}}},[i("v-uni-view",{staticClass:"iconfont icon-ic_location51"}),t.recommend_address?i("v-uni-view",{staticClass:"right-text"},[t._v(t._s(t.recommend_address))]):t._e(),t.recommend_address?i("v-uni-view",{staticClass:"iconfont icon-ic_rightarrow"}):t._e()],1):t._e()],1),i("v-uni-view",{staticClass:"nav-wrapper"},[i("v-uni-view",{staticClass:"nav acea-row row-middle"},t._l(t.downMenus,(function(e){return i("v-uni-view",{key:e.key,staticClass:"item",class:{"font-colors":t.firstKey==e.key},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.set_where(e.key)}}},[i("v-uni-view",[t._v(t._s(e.title))]),i("v-uni-view",{staticClass:"line",class:{"font-line":t.firstKey==e.key}})],1)})),1)],1),[t.storeList.length>0?i("v-uni-view",{staticClass:"mer-box"},[t._l(t.storeList,(function(e,n){return i("v-uni-view",{key:n,staticClass:"mer-item bg-f boder-24"},[i("v-uni-view",{staticClass:"mer-hd",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goStore(e.mer_id)}}},[i("v-uni-image",{attrs:{src:e.mini_banner?e.mini_banner:e.mer_banner}}),i("v-uni-view",{staticClass:"mer-name"},[i("v-uni-image",{attrs:{src:e.mer_avatar}}),i("v-uni-view",{},[i("v-uni-view",{staticClass:"mer-top"},[i("v-uni-view",{staticClass:"txt line1"},[t._v(t._s(e.mer_name))]),e.type_name?i("v-uni-text",{staticClass:"font-bg-red ml8"},[t._v(t._s(e.type_name))]):e.is_trader?i("v-uni-text",{staticClass:"font-bg-red ml8"},[t._v("自营")]):t._e()],1),i("v-uni-view",{staticClass:"mer-btn"},[i("v-uni-view",{},[t._v(t._s(e.care_count<1e4?e.care_count:(e.care_count/1e4).toFixed(2)+"万")+"人关注")]),e.distance?i("v-uni-view",{staticClass:"line"}):t._e(),e.distance?i("v-uni-view",{staticClass:"distance",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.showStoreLocation(e)}}},[i("v-uni-view",{},[t._v(t._s(e.distance))]),i("v-uni-view",{staticClass:"iconfont icon-ic_rightarrow"})],1):t._e()],1)],1)],1)],1),i("v-uni-view",{staticClass:"pro-box"},t._l(e.recommend,(function(n,o){return e.recommend.length<=3?i("v-uni-navigator",{key:o,staticClass:"pro-item",attrs:{url:"/pages/goods_details/index?id="+n.product_id,"hover-class":"none"}},[i("v-uni-image",{attrs:{src:n.image,mode:""}}),i("v-uni-view",{staticClass:"price"},[i("priceFormat",{attrs:{price:n.price,weight:!0,intSize:"40",floatSize:"26",labelSize:"26"}})],1)],1):t._e()})),1)],1)})),t.loading?i("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[i("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loading}}),t._v(t._s(t.loadTitle))],1):t._e()],2):t._e(),t.storeList.length||t.loading||t.loadingIcon?t._e():i("v-uni-view",{staticClass:"no-shop"},[i("v-uni-view",{staticClass:"pictrue",staticStyle:{margin:"0 auto"}},[i("v-uni-image",{attrs:{src:t.domain+"/static/images/no_thing.png"}}),i("v-uni-text",[t._v("暂无店铺,快去搜索其他店铺吧")])],1)],1)]],2)],1)},o=[]},9809:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("8f71"),i("bf0f"),i("64aa"),i("e838"),i("c9b5"),i("ab80"),i("f7a5"),i("c223");var o=n(i("9b1b")),a=i("7e00"),r=i("d727"),s=i("8f59"),c=(i("4a82"),i("aa10")),d=(getApp(),{data:function(){return{domain:c.HTTP_REQUEST_URL,price:0,stock:0,nows:!1,loading:!1,loadingIcon:!0,loadTitle:"加载更多",title:"",hotPage:1,hotLimit:10,hotScroll:!1,rightBox:!1,brandList:[],downKey:0,downStatus:!1,downMenu:[{title:"默认",key:0,order:""},{title:"销量",key:1,order:"sales"},{title:"好评",key:2,order:"rate"},{title:"距离",key:3,order:"location"}],firstKey:0,storeList:[],sotreParam:{keyword:"",page:1,limit:10,order:""},storeKey:0,storeScroll:!0,mer_id:"",sortId:"",hide_mer_status:"",price_on:"",price_off:"",detaile_address:"",recommend_address:"",latitude:"",longitude:"",count:0,mer_location:""}},created:function(){},computed:(0,o.default)({downMenus:function(){var t=this;return this.downMenu.filter((function(e){return t.mer_location?e:e.key<3}))}},(0,s.mapGetters)(["viewColor"])),onLoad:function(t){var e=this;this.mer_id=t.mer_id,uni.getStorage({key:"GLOBAL_DATA",success:function(t){e.hide_mer_status=t.data.hide_mer_status,e.storeList=[],1==t.data.mer_location?(e.mer_location=t.data.mer_location,e.selfLocation()):e.getServiceList()}})},methods:{showMaoLocation:function(t,e){if(!t||!e)return this.$util.Tips({title:"请设置允许商城访问您的位置!"});!0===this.$wechat.isWeixin()?this.$wechat.seeLocation({latitude:Number(t),longitude:Number(e),name:"当前位置",address:this.recommend_address}).then((function(t){})):uni.openLocation({latitude:parseFloat(t),longitude:parseFloat(e),scale:8,geocode:!0,name:"当前位置",address:this.recommend_address,success:function(t){}})},showStoreLocation:function(t){if(!t.lat||!t.long)return this.$util.Tips({title:"请设置允许商城访问您的位置!"});!0===this.$wechat.isWeixin()?this.$wechat.seeLocation({latitude:Number(t.lat),longitude:Number(t.long),name:t.mer_name,address:t.mer_address?t.mer_address:""}).then((function(t){})):uni.openLocation({latitude:parseFloat(t.lat),longitude:parseFloat(t.long),scale:8,name:t.mer_name,address:t.mer_address?t.mer_address:"",success:function(t){}})},selfLocation:function(){var t=this;uni.getLocation({type:"gcj02",success:function(e){var i,n;i=e.latitude.toString(),n=e.longitude.toString(),t.latitude=e.latitude,t.longitude=e.longitude,(0,a.getGeocoder)({lat:i,long:n}).then((function(e){t.detaile_address=e.data.address,t.recommend_address=e.data.address.length>4?e.data.address.slice(0,4)+"...":e.data.address}))},fail:function(t){uni.showToast({title:t,icon:"none",duration:1e3})},complete:function(e){t.getServiceList()}})},getServiceList:function(){var t=this;if(!this.loading){this.loading=!0;var e={keyword:this.sotreParam.keyword,page:this.sotreParam.page,limit:10,order:this.sotreParam.order};this.latitude&&(e.location=this.latitude+","+this.longitude),(0,r.getMerchantServiceLst)(e).then((function(e){t.count=e.data.count,t.storeList=t.storeList.concat(e.data.list),t.loading=!1,t.loadingIcon=!1}))}},goStore:function(t){1!=this.hide_mer_status&&uni.navigateTo({url:"/pages/store/home/index?id=".concat(t)})},searchSubmit:function(t){this.$set(this.sotreParam,"keyword",t.detail.value),this.set_where(this.firstKey)},set_where:function(t){this.loading||(this.storeList=[],this.firstKey=t,this.sotreParam.page=1,this.sotreParam.order=this.downMenu[t].order,this.getServiceList())},backjJump:function(){uni.navigateBack({delta:1})}},onPullDownRefresh:function(){},onReachBottom:function(){if(this.count===this.storeList.length){if(0===this.count)return;uni.showToast({title:"已加载全部",icon:"none",duration:1e3})}else this.sotreParam.page+=1,this.getServiceList()}});e.default=d},b614:function(t,e,i){"use strict";i.r(e);var n=i("8410"),o=i("ec09");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("5a33");var r=i("828b"),s=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"803786e4",null,!1,n["a"],void 0);e["default"]=s.exports},d727:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.assistHelpList=function(t,e){return o.default.get("store/product/assist/user/"+t,e)},e.assistUserData=function(t){return o.default.get("store/product/assist/count",t,{noAuth:!0})},e.cancelReservationApi=function(t){return o.default.post("order/self/cancel/".concat(t))},e.getActivitycategory=function(t){return o.default.get("product/spu/active/category/"+t,{},{noAuth:!0})},e.getAssistDetail=function(t,e){return o.default.get("store/product/assist/detail/"+t,e)},e.getAssistList=function(t){return o.default.get("store/product/assist/lst",t,{noAuth:!0})},e.getAssistUser=function(t){return o.default.get("store/product/assist/share/"+t)},e.getBargainUserCancel=function(t){return o.default.post("store/product/assist/set/delete/"+t)},e.getBargainUserList=function(t){return o.default.get("store/product/assist/set/lst",t)},e.getCombinationDetail=function(t,e){return o.default.get("store/product/group/detail/"+t,e,{noAuth:!0})},e.getCombinationList=function(t){return o.default.get("store/product/group/lst",t,{noAuth:!0})},e.getCombinationPink=function(t){return o.default.get("store/product/group/get/"+t)},e.getCombinationPoster=function(t){return o.default.post("combination/poster",t)},e.getCombinationUser=function(t){return o.default.get("store/product/group/count",t,{noAuth:!0})},e.getCouponLst=function(t){return o.default.get("coupon/getlst",t,{noAuth:!0})},e.getMerchantServiceLst=function(t){return o.default.get("store/merchant/local",t,{noAuth:!0})},e.getNewPeopleCouponLst=function(t){return o.default.get("coupon/new_people",t,{noAuth:!0})},e.getPresellList=function(t){return o.default.get("store/product/presell/lst",t,{noAuth:!0})},e.getReservationDate=function(t,e){return o.default.get("store/product/reservation/getMonth/".concat(t),e)},e.getReservationMerData=function(t){return o.default.get("store/merchant/detail/".concat(t))},e.getReservationTimes=function(t,e){return o.default.get("store/product/reservation/getDay/".concat(t),e)},e.getSeckillDetail=function(t){return o.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getSeckillIndexTime=function(){return o.default.get("store/product/seckill/select",{},{noAuth:!0})},e.getSeckillList=function(t){return o.default.get("store/product/seckill/lst",t,{noAuth:!0})},e.getTopicDetail=function(t){return o.default.get("activity/info/".concat(t),{},{noAuth:!0})},e.getTopicList=function(t,e){return o.default.get("activity/lst/".concat(t),e,{noAuth:!0})},e.getTopicProLst=function(t){return o.default.get("product/spu/labels",t,{noAuth:!0})},e.hotRankingApi=function(t){return o.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.initiateAssistApi=function(t){return o.default.post("store/product/assist/create/"+t)},e.postAssistHelp=function(t){return o.default.post("store/product/assist/set/"+t)},e.postCombinationRemove=function(t){return o.default.post("store/product/group/cancel",t)},e.presellAgreement=function(){return o.default.get("store/product/presell/agree")},e.scombinationCode=function(t){return o.default.get("combination/code/"+t)},e.seckillCode=function(t,e){return o.default.get("seckill/code/"+t,e)},e.spuTop=function(t){return o.default.get("store/product/category/hotranking",{},{noAuth:!0})},e.spuTopList=function(t){return o.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})};var o=n(i("fea3"))},ec09:function(t,e,i){"use strict";i.r(e);var n=i("9809"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},f423:function(t,e,i){var n=i("326b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("967d").default;o("9fccd726",n,!0,{sourceMap:!1,shadowMode:!1})}}]);
|