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.
1 lines
31 KiB
1 lines
31 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-service"],{"15d8":function(e,t,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(i("5530")),o=n(i("c7eb")),s=n(i("1da1"));i("a9e3"),i("ac1f"),i("4de4"),i("d3b7");var c=i("26cb"),r={components:{},props:{cur:{type:Number,default:function(){return 0}}},data:function(){return{}},computed:(0,c.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor},configInfo:function(e){return e.config.configInfo},commonOptions:function(e){return e.user.commonOptions},userPageType:function(e){return e.user.userPageType},activeIndex:function(e){return e.order.activeIndex}}),mounted:function(){var e=this;return(0,s.default)((0,o.default)().mark((function t(){var i,n,a;return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:i=e,n=uni.getSystemInfoSync().windowHeight,a=i.configInfo.navBarHeight,setTimeout((function(){var t=uni.createSelectorQuery().in(i);t.select(".custom-tabbar").boundingClientRect((function(t){var o=n-t.height-a,s=i.$util.deepCopy(e.configInfo);s.curSysHeight=o,s.tabbarHeight=t.height,i.updateConfigItem({key:"configInfo",val:s})})).exec()}),600);case 4:case"end":return t.stop()}}),t)})))()},methods:(0,a.default)((0,a.default)((0,a.default)({},(0,c.mapActions)(["getConfigInfo"])),(0,c.mapMutations)(["updateConfigItem"])),{},{changeTab:function(e){var t=this;return(0,s.default)((0,o.default)().mark((function i(){var n,a,s,c,r,u,l;return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(e.id){i.next=5;break}return i.next=3,t.getConfigInfo();case 3:n=t.configInfo.tabBar.filter((function(t){return t.name==e.name})),e=n[0];case 5:if(a=e,s=a.id,c=t.activeIndex,r=t.cur,u=t.userPageType,l={1:"/pages/service",2:"/pages/technician",3:"/pages/dynamic",4:"/pages/order?tab=".concat(c),5:"/pages/mine?type=".concat(u),6:"/pages/shopstore",7:"/pages/map"},s!=r){i.next=10;break}return i.abrupt("return");case 10:t.$util.goUrl({url:l[s],openType:"reLaunch"});case 11:case"end":return i.stop()}}),i)})))()}})};t.default=r},"1b3c":function(e,t,i){"use strict";i.r(t);var n=i("15d8"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},"38f1":function(e,t,i){"use strict";var n=i("80c8"),a=i.n(n);a.a},"39e9":function(e,t,i){"use strict";i.r(t);var n=i("8343"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},"52fc":function(e,t,i){var n=i("9a09");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("a2d6abf8",n,!0,{sourceMap:!1,shadowMode:!1})},"5fa2":function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.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/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.pages-home .search-box[data-v-b9abd642]{width:100%;bottom:0;z-index:9;overflow:hidden}.pages-home .recommend-technician[data-v-b9abd642]{white-space:nowrap;width:%?690?%}.pages-home .recommend-technician .recommend-item[data-v-b9abd642]{display:inline-block}.pages-home .recommend-technician .recommend-item.type-1[data-v-b9abd642]{width:%?180?%;margin-left:%?26?%}.pages-home .recommend-technician .recommend-item.type-1 .cover[data-v-b9abd642]{width:%?180?%;height:%?180?%}.pages-home .recommend-technician .recommend-item.type-1 .ellipsis[data-v-b9abd642]{max-width:%?180?%}.pages-home .recommend-technician .recommend-item.type-2[data-v-b9abd642]{width:%?203?%;height:%?151?%;background:#f4f6f7;border-radius:%?12?%;margin-left:%?20?%}.pages-home .recommend-technician .recommend-item.type-2 .cover[data-v-b9abd642]{width:%?70?%;height:%?70?%}.pages-home .recommend-technician .recommend-item.type-2 .ellipsis[data-v-b9abd642]{max-width:%?82?%}.pages-home .recommend-technician .recommend-item.type-2 .iconyduixingxingshixin[data-v-b9abd642]{font-size:%?26?%;background-image:-webkit-linear-gradient(270deg,#fad961,#f76b1c)}.pages-home .recommend-technician .recommend-item.type-2 .star-text[data-v-b9abd642]{height:%?26?%;color:#ff9519;margin-left:%?6?%}.pages-home .recommend-technician .recommend-item.type-2 .new-technician[data-v-b9abd642]{width:%?67?%;height:%?30?%;border-radius:%?8?%;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.pages-home .recommend-technician .recommend-item[data-v-b9abd642]:nth-child(1){margin-left:0}.pages-home .list-item .cover[data-v-b9abd642]{width:%?180?%;height:%?180?%}.pages-home .list-item .time-long[data-v-b9abd642]{min-width:%?72?%;height:%?30?%;padding:0 %?5?%;background:linear-gradient(270deg,#4c545a,#282b34);border-radius:%?4?%;font-size:%?20?%;color:#ffeeb9;margin-right:%?16?%}.pages-home .list-item .f-icontext[data-v-b9abd642]{font-size:%?18?%}.pages-home .list-item .text-delete[data-v-b9abd642]{font-size:%?24?%;color:#b9b9b9}.pages-home .list-item .item-btn[data-v-b9abd642]{width:%?150?%;height:%?52?%;border-radius:%?100?%}.radius-top[data-v-b9abd642]{border-radius:%?30?% %?30?% 0 0}.coupon-popup[data-v-b9abd642]{width:%?658?%;height:%?865?%;position:relative}.coupon-popup .bg-img[data-v-b9abd642]{width:100%;height:100%}.coupon-popup .icon-close[data-v-b9abd642]{font-size:%?60?%;position:absolute;top:%?50?%;right:%?60?%;z-index:999}.coupon-popup .coupon-info[data-v-b9abd642]{position:absolute;width:100%;height:100%;bottom:0;left:0}.coupon-popup .coupon-info .tops[data-v-b9abd642]{width:%?480?%;color:#fb4523;position:absolute;top:%?260?%}.coupon-popup .coupon-info .tops > uni-view[data-v-b9abd642]:nth-child(1){font-weight:700;font-size:%?30?%}.coupon-popup .coupon-info .lists[data-v-b9abd642]{width:%?500?%;height:%?300?%;padding:%?10?%;overflow-x:hidden;position:absolute;bottom:%?222?%}.coupon-popup .coupon-info .lists .list[data-v-b9abd642]{width:%?420?%;height:%?130?%;margin-bottom:%?10?%;margin-top:%?5?%;position:relative}.coupon-popup .coupon-info .lists .list > uni-image[data-v-b9abd642]{width:100%;height:100%}.coupon-popup .coupon-info .lists .list > uni-view[data-v-b9abd642]{position:absolute;width:100%;height:100%;top:0;left:%?8?%}.coupon-popup .coupon-info .lists .list > uni-view > uni-view[data-v-b9abd642]:nth-child(1){width:38%}.coupon-popup .coupon-info .lists .list > uni-view > uni-view[data-v-b9abd642]:nth-child(2){display:flex;justify-content:center;flex:1;padding:0 %?15?%;box-sizing:border-box}.coupon-popup .coupon-info .lists .list > uni-view .price[data-v-b9abd642]{font-size:%?30?%;color:#fb4523}.coupon-popup .coupon-info .lists .list > uni-view .title[data-v-b9abd642]{font-size:%?30?%;line-height:%?36?%;font-weight:700}.coupon-popup .coupon-info .lists .list > uni-view .price_text[data-v-b9abd642]{color:#ccc}.coupon-popup uni-view.btns[data-v-b9abd642]{width:100%;position:absolute;height:%?82?%;bottom:%?0?%;left:0}.coupon-popup uni-view.btns > uni-view[data-v-b9abd642]{width:%?422?%;height:%?82?%;border-radius:%?40?%;font-size:%?34?%;color:#fff}.servetip[data-v-b9abd642]{font-size:%?28?%;font-weight:400;display:flex;justify-content:space-between;align-items:center;margin:%?22?% 0}.servefc[data-v-b9abd642]{display:flex;align-items:center}.van-image[data-v-b9abd642]{position:relative;display:inline-block}.van-img[data-v-b9abd642]{width:100%;height:100%}.margin-20[data-v-b9abd642]{margin:.53333rem}',""]),e.exports=t},"7ef0":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.isLoad?i("v-uni-view",{staticClass:"pages-home"},[i("v-uni-view",{class:[{rel:e.banner.length>0}],style:{height:e.banner.length>0?"484rpx":"84rpx"}},[e.banner.length>0?i("banner",{attrs:{list:e.banner,margin:0,autoplay:!0,indicatorActiveColor:e.primaryColor,dotWidth:20,dotBottom:30},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.goBanner.apply(void 0,arguments)}}}):e._e(),i("v-uni-view",{staticClass:"search-box flex-center fill-base",class:[{"mt-md":0==e.banner.length},{abs:e.banner.length>0}],style:{color:e.primaryColor}},[i("v-uni-view",{staticStyle:{width:"100%"}},[i("v-uni-view",{staticClass:"servetip pl-lg pr-lg pt-sm pb-sm"},e._l(e.servefc,(function(t,n){return i("v-uni-view",{key:n,staticClass:"servefc",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.toJump("servefc",n)}}},[i("i",{staticClass:"iconfont",class:t.icon}),i("span",{staticClass:"ml-sm"},[e._v(e._s(t.text))])])})),1)],1)],1)],1),e.service_cate.length>0?i("v-uni-view",{staticClass:"fill-base pl-md pr-md",staticStyle:{overflow:"hidden"}},[i("column",{attrs:{list:e.service_cate,indicatorActiveColor:e.primaryColor,colNum:5,rowNum:2},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.goCate.apply(void 0,arguments)}}})],1):e._e(),e.recommend_list&&e.recommend_list.length>0?i("v-uni-view",{staticClass:"fill-base pl-lg pr-lg pb-lg"},[i("v-uni-view",{staticClass:"flex-between pb-lg",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.$util.goUrl({url:"/pages/technician",openType:"reLaunch"})}}},[i("v-uni-view",{staticClass:"f-st-title text-bold flex-between"},[i("v-uni-view",{staticClass:"mr-md",staticStyle:{width:"15px",height:"17px"}},[i("v-uni-image",{staticClass:"van-img",staticStyle:{"object-fit":"cover"},attrs:{src:"/static/img/icon_technician.png"}})],1),e._v(e._s("推荐"+e.$t("action.attendantName")))],1),i("v-uni-view",{staticClass:"flex-y-center f-caption c-caption"},[e._v("查看更多"),i("i",{staticClass:"iconfont icon-right",staticStyle:{"font-size":"24rpx"}})])],1),i("v-uni-scroll-view",{staticClass:"recommend-technician",attrs:{"scroll-x":!0}},[e._l(e.recommend_list,(function(t,n){return[1==e.recommend_style?i("v-uni-view",{key:n+"_0",staticClass:"recommend-item type-1",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.toTechnician(n)}}},[i("v-uni-view",{staticClass:"cover radius-16"},[i("v-uni-view",{staticClass:"h5-image cover radius-16",style:{backgroundImage:"url('"+t.work_img+"')"}})],1),i("v-uni-view",{staticClass:"flex-center f-desc c-title text-bold mt-md"},[i("v-uni-view",{staticClass:"ellipsis"},[e._v(e._s(t.coach_name))])],1),i("v-uni-view",{staticClass:"flex-center"},[t.is_new?i("v-uni-view",{staticClass:"new-technician flex-center f-icontext radius",style:{height:"33rpx",width:"80rpx",color:e.primaryColor,border:"1rpx solid "+e.primaryColor}},[e._v("新人")]):i("v-uni-view",{staticClass:"f-icontext c-caption"},[e._v("30天接单"+e._s(t.order_count||0))])],1)],1):e._e(),2==e.recommend_style?i("v-uni-view",{key:n+"_1",staticClass:"recommend-item type-2 pd-md",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.toTechnician(n)}}},[i("v-uni-view",{staticClass:"flex-center pb-sm"},[i("v-uni-view",{staticClass:"cover radius"},[i("v-uni-view",{staticClass:"h5-image cover radius",style:{backgroundImage:"url('"+t.work_img+"')"}})],1),i("v-uni-view",{staticClass:"flex-1 ml-sm"},[i("v-uni-view",{staticClass:"f-desc ellipsis"},[e._v(e._s(t.coach_name))]),i("v-uni-view",{staticClass:"flex-y-baseline",staticStyle:{"margin-top":"4rpx"}},[i("i",{staticClass:"iconfont iconyduixingxingshixin icon-font-color"}),i("v-uni-view",{staticClass:"star-text flex-y-center f-caption"},[e._v(e._s(t.star))])],1)],1)],1),i("v-uni-view",{staticClass:"flex-center"},[t.is_new?i("v-uni-view",{staticClass:"new-technician flex-center f-icontext radius",style:{height:"33rpx",width:"80rpx",color:e.primaryColor,border:"1rpx solid "+e.primaryColor}},[e._v("新人")]):i("v-uni-view",{staticClass:"f-icontext c-caption"},[e._v("30天接单"+e._s(t.order_count||0))])],1)],1):e._e()]}))],2)],1):e._e(),i("v-uni-view",{staticClass:"fill-base pl-lg pr-lg"},[i("v-uni-view",{staticClass:"fill-base flex-between"},[i("v-uni-view",{staticClass:"f-st-title text-bold flex-between"},[i("v-uni-view",{staticClass:"mr-md",staticStyle:{width:"15px",height:"17px"}},[i("v-uni-image",{staticClass:"van-img",staticStyle:{"object-fit":"cover"},attrs:{src:"/static/img/icon_project.png"}})],1),e._v("推荐项目")],1)],1)],1),e._l(e.list.data,(function(e,t){return i("v-uni-view",{key:t,staticClass:"fill-base pd-lg b-1px-b"},[i("service-list-item",{attrs:{info:e}})],1)})),e.loading?i("load-more",{attrs:{noMore:e.list.current_page>=e.list.last_page&&e.list.data.length>0,loading:e.loading}}):e._e(),!e.loading&&e.list.data.length<=0&&1==e.list.current_page?i("abnor"):e._e(),i("v-uni-view",{staticClass:"space-footer"}),i("uni-popup",{ref:"coupon_item",attrs:{type:"center",maskClick:!1}},[i("v-uni-view",{staticClass:"coupon-popup flex-center"},[i("v-uni-view",{staticClass:"h5-image bg-img",style:{backgroundImage:"url('https://lbqnyv2.migugu.com/coupon.png')"}}),i("i",{staticClass:"iconfont icon-close c-base",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.$refs.coupon_item.close()}}}),i("v-uni-view",{staticClass:"coupon-info flex-center flex-column"},[i("v-uni-view",{staticClass:"tops flex-center flex-column"},[i("v-uni-view",{},[e._v("成功领取")]),i("v-uni-view",{},[e._v("卡券将放入“我的-我的卡券”")])],1),i("v-uni-view",{staticClass:"lists flex-center"},[i("v-uni-scroll-view",{staticStyle:{width:"420rpx",height:"100%"},attrs:{"scroll-y":!0}},e._l(e.couponList,(function(t,n){return i("v-uni-view",{key:n,staticClass:"list flex-between"},[i("v-uni-image",{attrs:{src:"https://lbqny.migugu.com/admin/anmo/coupon/coupon.png",mode:"aspectFill"}}),i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"flex-center flex-column"},[i("v-uni-view",{staticClass:"price"},[e._v(e._s(t.discount))]),i("v-uni-view",{staticClass:"price_text"},[e._v(e._s(1*t.full>0?"满"+t.full+"可用":"立减"))])],1),i("v-uni-view",{staticClass:"title flex-y-center"},[i("v-uni-view",{staticClass:"ellipsis-3"},[e._v(e._s(t.title))])],1)],1)],1)})),1)],1)],1),i("v-uni-view",{staticClass:"btns flex-center",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.userGetCoupon.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"flex-center"},[e._v("领取到卡包")])],1)],1)],1),i("v-uni-view",{style:{height:e.configInfo.tabbarHeight+"px"}}),i("tabbar",{attrs:{cur:1}})],2):e._e()},a=[]},"80c8":function(e,t,i){var n=i("a0d9");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("5b54b290",n,!0,{sourceMap:!1,shadowMode:!1})},8343:function(e,t,i){"use strict";i("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("a9e3"),i("99af");var n=i("26cb"),a={components:{},props:{from:{type:String,default:function(){return"list"}},sid:{type:Number,default:function(){return 0}},info:{type:Object,default:function(){return{}}},maxWidth:{type:String,default:function(){return"490rpx"}}},data:function(){return{textType:{1:"可服务",2:"服务中",3:"可预约",4:"不可预约"}}},computed:(0,n.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor},userInfo:function(e){return e.user.userInfo}}),methods:{goDetail:function(){var e=this.info.id,t=this.sid,i=void 0===t?0:t,n="/user/pages/detail?id=".concat(e,"&store_id=").concat(i);this.$util.goUrl({url:n})},toChoose:function(){var e=this.from;if("technician-info"!=e){var t=this.info.id,i=this.sid,n=void 0===i?0:i,a="/user/pages/choose-technician?id=".concat(t,"&store_id=").concat(n);this.$util.goUrl({url:a})}else this.$emit("order")},toEmit:function(e){this.$emit(e)}}};t.default=a},8794:function(e,t,i){"use strict";i.r(t);var n=i("e3b1"),a=i("39e9");for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("947e");var s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"ccee17ba",null,!1,n["a"],void 0);t["default"]=c.exports},"947e":function(e,t,i){"use strict";var n=i("52fc"),a=i.n(n);a.a},"9a09":function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.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/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.service-list-item .list-item .cover[data-v-ccee17ba]{width:%?180?%;height:%?180?%}.service-list-item .list-item .time-long[data-v-ccee17ba]{min-width:%?72?%;height:%?30?%;padding:0 %?5?%;background:linear-gradient(270deg,#4c545a,#282b34);border-radius:%?4?%;font-size:%?20?%;color:#ffeeb9;margin-right:%?16?%}.service-list-item .list-item .f-icontext[data-v-ccee17ba]{font-size:%?18?%}.service-list-item .list-item .text-delete[data-v-ccee17ba]{font-size:%?24?%;color:#b9b9b9}.service-list-item .list-item .item-btn[data-v-ccee17ba]{min-width:%?150?%;height:%?52?%;padding:0 %?10?%;border-radius:%?100?%}.servefc[data-v-ccee17ba]{display:flex;align-items:center}',""]),e.exports=t},a0d9:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.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/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.custom-tabbar[data-v-5f3efd3c]{height:%?98?%;bottom:0;height:calc(%?98?% + env(safe-area-inset-bottom) / 2);padding-bottom:calc(env(safe-area-inset-bottom) / 2)}.custom-tabbar .iconfont[data-v-5f3efd3c]{font-size:%?40?%}.custom-tabbar .text[data-v-5f3efd3c]{font-size:%?22?%;margin-top:%?5?%;height:%?32?%}',""]),e.exports=t},a26f:function(e,t,i){"use strict";i.r(t);var n=i("e006"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},b3ae:function(e,t,i){"use strict";var n=i("ce0a"),a=i.n(n);a.a},c855:function(e,t,i){"use strict";i.r(t);var n=i("de0e"),a=i("1b3c");for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("38f1");var s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"5f3efd3c",null,!1,n["a"],void 0);t["default"]=c.exports},ce0a:function(e,t,i){var n=i("5fa2");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("14e9295f",n,!0,{sourceMap:!1,shadowMode:!1})},d782:function(e,t,i){"use strict";i.r(t);var n=i("7ef0"),a=i("a26f");for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);i("b3ae");var s=i("f0c5"),c=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"b9abd642",null,!1,n["a"],void 0);t["default"]=c.exports},de0e:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"custom-tabbar fix flex-center fill-base b-1px-t"},e._l(e.configInfo.tabBar,(function(t,n){return i("v-uni-view",{key:n,staticClass:"flex-center flex-column mt-sm",style:{width:100/e.configInfo.tabBar.length+"%",color:e.cur==t.id?e.primaryColor:"#666"},on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.changeTab(t)}}},[i("i",{staticClass:"iconfont",class:e.cur==t.id?t.selected_img:t.default_img}),i("v-uni-image",{staticStyle:{width:"45rpx",height:"45rpx"},attrs:{src:e.cur==t.id?t.selected_img:t.default_img}}),i("v-uni-view",{staticClass:"text"},[e._v(e._s(t.name))])],1)})),1)},a=[]},e006:function(e,t,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("d3b7"),i("3ca3"),i("ddb0"),i("99af"),i("159b"),i("14d9"),i("4e82");var a=n(i("5530")),o=n(i("c7eb")),s=n(i("1da1")),c=i("26cb"),r=n(i("7083")),u=n(i("8794")),l=n(i("c855")),d={components:{serviceListItem:u.default,tabbar:l.default},data:function(){return{couponList:[],isLoad:!1,options:{},loading:!0,lockTap:!1,servefc:[{icon:"icon-kzj",text:"实名认证"},{icon:"icon-kpk",text:"爽约包赔"},{icon:"icon-sybp",text:"超时秒退"},{icon:"icon-kzz",text:"资质证书"}]}},computed:(0,c.mapState)({pageActive:function(e){return e.service.pageActive},activeIndex:function(e){return e.service.activeIndex},tabList:function(e){return e.service.tabList},param:function(e){return e.service.param},list:function(e){return e.service.list},banner:function(e){return e.service.banner},service_cate:function(e){return e.service.service_cate},recommend_list:function(e){return e.service.recommend_list},recommend_style:function(e){return e.service.recommend_style},primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor},configInfo:function(e){return e.config.configInfo},autograph:function(e){return e.user.autograph},userInfo:function(e){return e.user.userInfo},location:function(e){return e.user.location},isGzhLogin:function(e){return e.user.isGzhLogin},haveShieldOper:function(e){return e.user.haveShieldOper}}),onLoad:function(e){var t=this;return(0,s.default)((0,o.default)().mark((function i(){return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t.$util.showLoading(),i.next=3,t.updateCommonOptions(e);case 3:return e=i.sent,t.options=e,uni.onNetworkStatusChange((function(e){var i=e.isConnected;!i||t.pageActive||t.initIndex()})),i.next=8,t.initIndex();case 8:case"end":return i.stop()}}),i)})))()},onShow:function(){var e=this;return(0,s.default)((0,o.default)().mark((function t(){return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.$jweixin.isWechat()){t.next=4;break}return t.next=3,e.$jweixin.initJssdk();case 3:e.toAppShare();case 4:2==e.haveShieldOper&&(e.initIndex(),e.updateUserItem({key:"haveShieldOper",val:0})),e.pageActive&&e.userInfo.id&&e.getCouponList();case 6:case"end":return t.stop()}}),t)})))()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.loading=!0,this.getList(this.param.page+1))},onShareAppMessage:function(e){var t=this.userInfo.id,i=void 0===t?0:t,n="/pages/service?pid=".concat(i);return this.$util.log(n),{title:"",imageUrl:"",path:n}},methods:(0,a.default)((0,a.default)((0,a.default)({},(0,c.mapActions)(["getConfigInfo","getUserInfo","updateCommonOptions","getServiceIndex","getServiceList"])),(0,c.mapMutations)(["updateServiceItem","updateTechnicianItem","updateUserItem"])),{},{initIndex:function(){var e=arguments,t=this;return(0,s.default)((0,o.default)().mark((function i(){var n,a,s,c,r,u,l,d,f,p,v,m,h,g,b,w,x,_,C,y,I;return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=e.length>0&&void 0!==e[0]&&e[0],a=t.options.pid,s=void 0===a?0:a,n||!t.pageActive||s){i.next=7;break}return t.isLoad=!0,t.loading=!1,t.$util.hideAll(),i.abrupt("return");case 7:if(c=t.isGzhLogin,r=t.userInfo.id,u=void 0===r?0:r,s&&!u&&(c?setTimeout((function(){t.getUserInfo()}),1e3):t.getUserInfo()),t.configInfo.id&&!n){i.next=13;break}return i.next=13,t.getConfigInfo();case 13:if(l=t.location,d=t.configInfo.plugAuth,f=void 0===d?{}:d,p=f.recommend,v=void 0!==p&&p,!v||l.lat){i.next=30;break}if(!t.$jweixin.isWechat()){i.next=29;break}return t.$util.showLoading(),i.next=21,t.$jweixin.wxReady2();case 21:return i.next=23,t.$jweixin.getWxLocation();case 23:m=i.sent,h=m.latitude,g=void 0===h?0:h,b=m.longitude,w=void 0===b?0:b,l={lng:w,lat:g,address:"定位失败",province:"",city:"",district:""};case 29:t.updateUserItem({key:"location",val:l});case 30:return x=l,_=x.lng,C=void 0===_?0:_,y=x.lat,I=void 0===y?0:y,i.next=33,t.getServiceIndex({lat:I,lng:C});case 33:if(t.updateServiceItem({key:"pageActive",val:!0}),t.isLoad=!0,!t.userInfo.id){i.next=40;break}return i.next=38,Promise.all([t.getList(1),t.getCouponList()]);case 38:i.next=42;break;case 40:return i.next=42,t.getList(1);case 42:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.initIndex(!0)},toAppShare:function(){var e=this,t=this.userInfo.id,i=void 0===t?0:t,n=r.default.siteroot,a=n.split("/index.php")[0],o="".concat(a,"/h5/#/pages/service?pid=").concat(i);this.$jweixin.wxReady((function(){e.$jweixin.showOptionMenu(),e.$jweixin.shareAppMessage("首页","",o,""),e.$jweixin.shareTimelineMessage("首页",o,"")}))},goBanner:function(e){var t=e.connect_type,i=e.type_id,n=void 0===i?0:i,a=e.img;switch(t){case 1:this.$util.previewImage({current:a,urls:[a]});break;case 2:this.$util.goUrl({url:"/user/pages/article?id=".concat(n)});break}},goCate:function(e){var t=e.id,i=e.title,n=e.url,a=void 0===n?"":n,o=a||"/user/pages/service/list?id=".concat(t,"&title=").concat(i);this.$util.goUrl({url:o})},userGetCoupon:function(){var e=this;return(0,s.default)((0,o.default)().mark((function t(){var i;return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=[],e.couponList.forEach((function(e){i.push(e.id)})),t.next=4,e.$api.service.userGetCoupon({coupon_id:i});case 4:t.sent,e.$util.showToast({title:"领取成功"}),setTimeout((function(){e.$util.goUrl({url:"/user/pages/coupon/list"})}),1e3),e.$refs.coupon_item.close(),e.loading=!1,e.$util.hideAll();case 10:case"end":return t.stop()}}),t)})))()},getCouponList:function(){var e=this;return(0,s.default)((0,o.default)().mark((function t(){var i;return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.service.couponList();case 2:i=t.sent,e.couponList=i,i.length>0&&e.isLoad&&e.$refs.coupon_item.open(),e.loading=!1,e.$util.hideAll();case 7:case"end":return t.stop()}}),t)})))()},getList:function(){var e=arguments,t=this;return(0,s.default)((0,o.default)().mark((function i(){var n,a,s,c,r,u,l,d,f;return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:0,n&&(a=t.$util.deepCopy(t.param),a.page=n,t.updateServiceItem({key:"param",val:a})),t.list,s=t.param,c=t.tabList,r=t.activeIndex,u=c[r],l=u.sort,d=u.sign,f=0==r||1==d?"":"desc",s.sort="".concat(l," ").concat(f),i.next=8,t.getServiceList(s);case 8:t.loading=!1,t.$util.hideAll();case 10:case"end":return i.stop()}}),i)})))()},handerTabChange:function(e){this.updateServiceItem({key:"activeIndex",val:e});var t=this.$util.deepCopy(this.tabList),i=t[e],n=i.is_sign,a=i.sign;n&&(t[e].sign=0==a?1:0),this.updateServiceItem({key:"tabList",val:t}),this.$util.showLoading(),uni.pageScrollTo({scrollTop:0}),this.getList(1)},toTechnician:function(e){var t=this.recommend_list[e],i=t.id,n=t.city_id,a=t.coach_name;this.updateTechnicianItem({key:"pageActive",val:!1}),this.$util.goUrl({url:"/pages/technician?coach_id=".concat(i,"&coach_name=").concat(a,"&city_id=").concat(n),openType:"reLaunch"})}})};t.default=d},e3b1:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"service-list-item"},[i("v-uni-view",{staticClass:"list-item flex-warp",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.goDetail.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"cover radius-16"},[i("v-uni-view",{staticClass:"h5-image cover radius-16",style:{backgroundImage:"url('"+e.info.cover+"')"}})],1),i("v-uni-view",{staticClass:"flex-1 ml-md",style:{maxWidth:e.maxWidth}},[i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"f-title c-title text-bold max-270 ellipsis"},[e._v(e._s(e.info.title))]),i("v-uni-view",{staticClass:"f-caption c-caption"},[e._v("超"+e._s(e.info.total_sale)+"人选择")])],1),i("v-uni-view",{staticClass:"f-caption c-caption mt-sm mb-sm ellipsis",staticStyle:{height:"36rpx"}},[e._v(e._s(e.info.sub_title||""))]),1*e.info.material_price>0?i("v-uni-view",{staticClass:"f-caption c-caption"},[e._v("物料费:¥"+e._s(e.info.material_price))]):e._e(),i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"flex-y-center f-desc c-caption max-350 ellipsis"},[i("v-uni-view",{staticClass:"flex-y-baseline f-icontext c-orange text-bold mr-sm"},[i("b",{staticClass:"f-caption c-orange"},[e._v("¥")]),i("v-uni-view",{staticClass:"f-md-title"},[e._v(e._s(e.info.price))])],1),e.info.init_price?i("v-uni-view",{staticClass:"text-delete"},[e._v("¥"+e._s(e.info.init_price))]):e._e(),i("v-uni-view",{staticClass:"servefc ml-md"},[i("i",{staticClass:"iconfont icon-shijian",style:{color:e.primaryColor}}),i("span",{staticClass:"f-caption c-title ml-sm"},[e._v(e._s(e.info.time_long)+"分钟")])])],1),i("auth",{staticStyle:{width:"190rpx"},attrs:{needAuth:e.userInfo&&(!e.userInfo.phone||!e.userInfo.nickName),must:!0,type:e.userInfo.phone?"userInfo":"phone"},on:{go:function(t){arguments[0]=t=e.$handleEvent(t),e.toChoose.apply(void 0,arguments)},click:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t)}}},[i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view"),i("v-uni-view",{staticClass:"item-btn flex-center f-caption c-base",style:{background:"linear-gradient(68deg, "+e.primaryColor+", "+e.subColor+")"}},[e._v(e._s("technician-info"==e.from?"立即预约":"选择"+e.$t("action.attendantName")))])],1)],1)],1)],1)],1)],1)},a=[]}}]); |