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
29 KiB
1 lines
29 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-map"],{"15d8":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("5530")),o=i(a("c7eb")),r=i(a("1da1"));a("a9e3"),a("ac1f"),a("4de4"),a("d3b7");var s=a("26cb"),c={components:{},props:{cur:{type:Number,default:function(){return 0}}},data:function(){return{}},computed:(0,s.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},commonOptions:function(t){return t.user.commonOptions},userPageType:function(t){return t.user.userPageType},activeIndex:function(t){return t.order.activeIndex}}),mounted:function(){var t=this;return(0,r.default)((0,o.default)().mark((function e(){var a,i,n;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=t,i=uni.getSystemInfoSync().windowHeight,n=a.configInfo.navBarHeight,setTimeout((function(){var e=uni.createSelectorQuery().in(a);e.select(".custom-tabbar").boundingClientRect((function(e){var o=i-e.height-n,r=a.$util.deepCopy(t.configInfo);r.curSysHeight=o,r.tabbarHeight=e.height,a.updateConfigItem({key:"configInfo",val:r})})).exec()}),600);case 4:case"end":return e.stop()}}),e)})))()},methods:(0,n.default)((0,n.default)((0,n.default)({},(0,s.mapActions)(["getConfigInfo"])),(0,s.mapMutations)(["updateConfigItem"])),{},{changeTab:function(t){var e=this;return(0,r.default)((0,o.default)().mark((function a(){var i,n,r,s,c,l,u;return(0,o.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.id){a.next=5;break}return a.next=3,e.getConfigInfo();case 3:i=e.configInfo.tabBar.filter((function(e){return e.name==t.name})),t=i[0];case 5:if(n=t,r=n.id,s=e.activeIndex,c=e.cur,l=e.userPageType,u={1:"/pages/service",2:"/pages/technician",3:"/pages/dynamic",4:"/pages/order?tab=".concat(s),5:"/pages/mine?type=".concat(l),6:"/pages/shopstore",7:"/pages/map"},r!=c){a.next=10;break}return a.abrupt("return");case 10:e.$util.goUrl({url:u[r],openType:"reLaunch"});case 11:case"end":return a.stop()}}),a)})))()}})};e.default=c},"1b3c":function(t,e,a){"use strict";a.r(e);var i=a("15d8"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"267c":function(t,e,a){"use strict";a.r(e);var i=a("c674"),n=a("7d58");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("f0b9");var r=a("f0c5"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"07b3a58c",null,!1,i["a"],void 0);e["default"]=s.exports},"38f1":function(t,e,a){"use strict";var i=a("80c8"),n=a.n(i);n.a},"549b":function(t,e,a){var i=a("a2fb");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("f3f580a4",i,!0,{sourceMap:!1,shadowMode:!1})},"55b6":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("3835")),o=i(a("5530")),r=i(a("c7eb")),s=i(a("1da1"));a("d81d"),a("c740"),a("4de4"),a("d3b7"),a("99af"),a("caad");var c=a("26cb"),l=i(a("7083")),u=i(a("c855")),p=i(a("4bb9")),d=i(a("6cd7")),f=i(a("9de8")),m={components:{tabbar:u.default,technicianListItem:p.default,technicianListPopup:d.default,wPicker:f.default},data:function(){return{isLoad:!1,options:{},textType:{1:"可服务",2:"服务中",3:"可预约",4:"不可预约"},popupHeight:"",startYear:"",toDay:"",showDate:!1,timer:null,detail:{},loading:!0,lockTap:!1}},computed:(0,c.mapState)({pageActive:function(t){return t.map.pageActive},sexList:function(t){return t.map.sexList},yearList:function(t){return t.map.yearList},check:function(t){return t.map.check},param:function(t){return t.map.param},service_cate:function(t){return t.map.service_cate},mapList:function(t){return t.map.mapList},list:function(t){return t.map.list},mapType:function(t){return t.map.mapType},map:function(t){return t.map.map},covers:function(t){return t.map.covers},primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},autograph:function(t){return t.user.autograph},userInfo:function(t){return t.user.userInfo},location:function(t){return t.user.location},isGzhLogin:function(t){return t.user.isGzhLogin}}),onLoad:function(t){var e=this;return(0,s.default)((0,r.default)().mark((function a(){return(0,r.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return e.$util.showLoading(),a.next=3,e.updateCommonOptions(t);case 3:return t=a.sent,e.options=t,uni.onNetworkStatusChange((function(t){var a=t.isConnected;!a||e.pageActive||e.initIndex()})),a.next=8,e.initIndex();case 8:case"end":return a.stop()}}),a)})))()},onUnload:function(){this.timer&&clearTimeout(this.timer)},onShow:function(){var t=this;return(0,s.default)((0,r.default)().mark((function e(){return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.$jweixin.isWechat()){e.next=4;break}return e.next=3,t.$jweixin.initJssdk();case 3:t.toAppShare();case 4:case"end":return e.stop()}}),e)})))()},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(t){var e=this.userInfo.id,a=void 0===e?0:e,i="/pages/map?pid=".concat(a);return this.$util.log(i),{title:"",imageUrl:"",path:i}},methods:(0,o.default)((0,o.default)((0,o.default)({},(0,c.mapActions)(["getConfigInfo","getUserInfo","updateCommonOptions","getMapIndex","getMapList","getMapCoachList"])),(0,c.mapMutations)(["updateMapItem","updateUserItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,s.default)((0,r.default)().mark((function a(){var i,n,o,s,c,l,u,p,d,f,m,h;return(0,r.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],n=e.options.pid,o=void 0===n?0:n,i||!e.pageActive||o){a.next=8;break}return e.isLoad=!0,e.loading=!1,e.$util.setNavigationBarColor({bg:e.primaryColor}),e.$util.hideAll(),a.abrupt("return");case 8:if(s=e.isGzhLogin,c=e.userInfo.id,l=void 0===c?0:c,o&&!l&&(s?setTimeout((function(){e.getUserInfo()}),1e3):e.getUserInfo()),e.configInfo.id&&!i&&(!e.configInfo.id||e.configInfo.plugAuth.hasOwnProperty("map"))){a.next=14;break}return a.next=14,e.getConfigInfo();case 14:if(e.$util.setNavigationBarColor({bg:e.primaryColor}),u=new Date(Math.ceil((new Date).getTime())),e.startYear=e.$util.formatTime(u,"YY"),e.toDay=e.$util.formatTime(u,"YY-M-D"),p=e.configInfo.plugAuth.map,d=void 0!==p&&p,d){a.next=24;break}return e.isLoad=!0,e.loading=!1,e.$util.hideAll(),a.abrupt("return");case 24:return f=e.location,m=f.lng,void 0===m?0:m,h=f.lat,void 0===h?0:h,a.next=27,e.getMapIndex();case 27:return a.next=29,e.getList(1);case 29:e.updateMapItem({key:"pageActive",val:!0}),e.isLoad=!0;case 31:case"end":return a.stop()}}),a)})))()},initRefresh:function(){this.initIndex(!0)},handerTabChange:function(t){var e=this.service_cate[t].id,a=Object.assign({},this.param,{cate_id:e,page:1,activeIndex:t});this.updateMapItem({key:"param",val:a}),this.getList()},getList:function(t){var e=this;return(0,s.default)((0,r.default)().mark((function a(){var i,n,o,s,c,l,u,p,d,f,m,h,v;return(0,r.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t&&(e.param.page=1,e.timer&&clearTimeout(e.timer)),i=e.mapType,n=e.location,o=n.lng,s=void 0===o?0:o,c=n.lat,l=void 0===c?0:c,u=Object.assign({},e.param,{lat:l,lng:s}),p=u.cate_id,d=void 0===p?0:p,f=e.service_cate.findIndex((function(t){return t.id==d})),f=-1==f?0:f,d=e.service_cate[f].id,u.cate_id=d,m=Object.assign({},e.param,{cate_id:d,activeIndex:f}),e.updateMapItem({key:"param",val:m}),h=e.yearList.filter((function(t){return t.id==u.year}))[0].year,u.work_time_start=h[0],u.work_time_end=h[1],u.service_time=u.service_time?e.$util.DateToUnix(u.service_time):"",-1==u.sex&&delete u.sex,"map"==e.mapType&&delete u.page,delete u.activeIndex,delete u.year,v="map"==i?"getMapList":"getMapCoachList",a.next=22,e[v](u);case 22:e.$util.hideAll(),e.loading=!1,"map"==e.mapType&&(e.timer=setTimeout((function(){e.getList(1)}),6e5));case 25:case"end":return a.stop()}}),a)})))()},toAppShare:function(){var t=this,e=this.userInfo.id,a=void 0===e?0:e,i=l.default.siteroot,n=i.split("/index.php")[0],o="".concat(n,"/h5/#/pages/service?pid=").concat(a);this.$jweixin.wxReady((function(){t.$jweixin.showOptionMenu(),t.$jweixin.shareAppMessage("首页","",o,""),t.$jweixin.shareTimelineMessage("首页",o,"")}))},initFixHeight:function(t){this.popupHeight=t},toChooseLocation:function(t){var e=this;return(0,s.default)((0,r.default)().mark((function t(){var a,i,o,s,c,l,u,p,d,f,m,h,v,g,b,w,x,y,_,C,k,I,$;return(0,r.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$util.checkAuth({type:"userLocation"});case 2:if(a=e.location,i=a.lat,o=void 0===i?"":i,s=a.lng,c=void 0===s?"":s,l={},o||c){t.next=16;break}if(!e.$jweixin.isWechat()){t.next=16;break}return e.$util.showLoading(),t.next=9,e.$jweixin.wxReady2();case 9:return t.next=11,e.$jweixin.getWxLocation();case 11:u=t.sent,p=u.latitude,d=u.longitude,o=p,c=d;case 16:return l={latitude:o,longitude:c},t.next=19,uni.chooseLocation(l);case 19:if(f=t.sent,m=(0,n.default)(f,2),h=m[1],v=h.address,g=void 0===v?"":v,b=h.longitude,w=h.latitude,x=h.province,y=void 0===x?"":x,_=h.city,C=void 0===_?"":_,k=h.district,I=void 0===k?"":k,b){t.next=34;break}return t.abrupt("return");case 34:return $={lng:b,lat:w,address:g,province:y,city:C,district:I},e.updateUserItem({key:"location",val:$}),t.next=38,e.getList(1);case 38:case"end":return t.stop()}}),t)})))()},toChangeItem:function(t,e){if(["sex","year"].includes(t)){var a=this["".concat(t,"List")][e].id,i="sex"==t?{sex:a}:{year:a},n=Object.assign({},this.check,i);this.updateMapItem({key:"check",val:n})}else this.updateMapItem({key:"mapType",val:t}),this.getList(1)},toClearServiceTime:function(){this.check.service_time=""},toShowDate:function(){this.showDate=!0},onConfirm:function(t){var e=this;return(0,s.default)((0,r.default)().mark((function a(){var i,n,o;return(0,r.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=t.result,n=e.$util.formatTime((new Date).getTime(),"YY-M-D h:m"),!(e.$util.DateToUnix(i)<=e.$util.DateToUnix(n))){a.next=5;break}return e.$util.showToast({title:"只能选择未来时间哦"}),a.abrupt("return");case 5:o=Object.assign({},e.check,{service_time:i}),e.updateMapItem({key:"check",val:o});case 7:case"end":return a.stop()}}),a)})))()},toReset:function(){this.updateMapItem({key:"check",val:{sex:-1,year:1,coach_name:"",service_time:""}}),this.toConfirm()},toConfirm:function(){var t=Object.assign({},this.param,this.check);this.updateMapItem({key:"param",val:t}),this.getList(1),this.$refs.search_item.close()},toShowPopup:function(t,e){var a=this;return(0,s.default)((0,r.default)().mark((function i(){return(0,r.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:a.$refs.technician_list_popup.toShowPopup(a.list.data[t],e);case 1:case"end":return i.stop()}}),i)})))()},toCollect:function(t){var e=this;return(0,s.default)((0,r.default)().mark((function a(){var i,n,o,s,c;return(0,r.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i=e.list.data[t],n=i.id,o=i.is_collect,s=i.collect_num,c=o?"delCollect":"addCollect",a.next=4,e.$api.mine[c]({coach_id:n});case 4:e.$util.showToast({title:o?"取消成功":"收藏成功"}),e.list.data[t].is_collect=1==o?0:1,e.list.data[t].collect_num=1==o?s-1:s+1;case 7:case"end":return a.stop()}}),a)})))()},regionchange:function(t){var e=this;return(0,s.default)((0,r.default)().mark((function t(){var a,i,n,o,s,c,l,u,p,d;return(0,r.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return");case 6:return e.lockTap=!0,a="".concat(void 0,",").concat(void 0),t.prev=8,t.next=11,e.$api.base.getMapInfo({location:a});case 11:i=t.sent,n=JSON.parse(i),o=n.status,s=n.result,0==o&&(c=s.address,l=s.address_component,u=l.province,p=l.city,d=l.district,e.updateUserItem({key:"location",val:{lng:void 0,lat:void 0,address:c,province:u,city:p,district:d}}),e.getList(),e.lockTap=!1),t.next=19;break;case 16:t.prev=16,t.t0=t["catch"](8),e.lockTap=!1;case 19:case"end":return t.stop()}}),t,null,[[8,16]])})))()},getDetail:function(t){var e=this;return(0,s.default)((0,r.default)().mark((function a(){var i,n,o,s,c;return(0,r.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i=t.detail.markerId,n=e.mapList[i],o=n.id,s=n.distance,a.next=4,e.$api.service.coachInfo({id:o});case 4:c=a.sent,c.distance=s,e.detail=c,e.$refs.technician_info_item.open();case 8:case"end":return a.stop()}}),a)})))()},goInfo:function(){var t=this.detail.id;this.$refs.technician_info_item.close(),this.$util.goUrl({url:"/user/pages/technician-info?id=".concat(t)})}})};e.default=m},"7d58":function(t,e,a){"use strict";a.r(e);var i=a("55b6"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"80c8":function(t,e,a){var i=a("a0d9");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("5b54b290",i,!0,{sourceMap:!1,shadowMode:!1})},a0d9:function(t,e,a){var i=a("24fb");e=i(!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/* 图片尺寸 */\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?%}',""]),t.exports=e},a2fb:function(t,e,a){var i=a("24fb");e=i(!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/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.pages-home .map-info .iconjuli[data-v-07b3a58c]{font-size:%?30?%}.pages-home .map-info .icon-down[data-v-07b3a58c]{color:#868686}.pages-home .map-info .map-list-item .list-btn[data-v-07b3a58c]{width:%?92?%;height:%?46?%;-webkit-transform:rotate(1turn);transform:rotate(1turn);border-radius:%?4?% 0 0 %?4?%;border:%?1?% solid #dadfe3}.pages-home .map-info .map-list-item .list-btn .iconfont[data-v-07b3a58c]{font-size:%?22?%;margin-right:%?4?%}.pages-home .map-info .map-list-item .list-btn[data-v-07b3a58c]:nth-child(2){border-radius:0 %?4?% %?4?% 0}.pages-home .map-info .map-list-item .list-btn.abs[data-v-07b3a58c]{opacity:.3;border:none}.pages-home .tab-info .tab-list-item[data-v-07b3a58c]{width:90%}.pages-home .tab-info .tab-select-item[data-v-07b3a58c]{height:%?44?%;box-shadow:-5px 0 5px -5px rgba(0,0,0,.8)}.pages-home .map-box[data-v-07b3a58c]{width:100%}.pages-home .search-popup[data-v-07b3a58c]{width:calc(100% - %?164?%);height:100vh}.pages-home .search-popup .list-item[data-v-07b3a58c]{width:%?160?%;height:%?70?%;background:#f5f5f5}.pages-home .search-popup .list-item .icon-guanbi-fill.abs[data-v-07b3a58c]{top:%?-15?%;right:0;font-size:%?50?%}.pages-home .search-popup .list-item[data-v-07b3a58c]:nth-child(3n){margin-right:0}.pages-home .search-popup .search-btn[data-v-07b3a58c]{width:%?230?%;height:%?80?%;border:%?1?% solid #c7c7c7;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.pages-home .technician-info-popup[data-v-07b3a58c]{width:%?690?%;overflow:hidden;margin-top:%?200?%}.pages-home .technician-info-popup .work-img[data-v-07b3a58c]{width:100%;height:%?390?%}.pages-home .technician-info-popup .service-label[data-v-07b3a58c]{min-width:%?88?%;height:%?32?%;padding:0 %?10?%;color:#ebddb1;background:linear-gradient(270deg,#4c545a,#282b34);border-radius:%?4?%}.pages-home .technician-info-popup .time-label .near-text[data-v-07b3a58c]{width:%?100?%;height:%?33?%;background:#f5f5f5;border-radius:%?3?% 0 0 %?3?%}.pages-home .technician-info-popup .time-label .near-time[data-v-07b3a58c]{width:%?66?%;height:%?33?%;border-radius:0 %?3?% %?3?% 0}.pages-home .technician-info-popup .time-label .near-time .bg[data-v-07b3a58c]{opacity:.1;top:0;left:0;right:0;bottom:0;z-index:1;border-radius:0 %?3?% %?3?% 0}.pages-home .technician-info-popup .icondianpu[data-v-07b3a58c]{margin-right:%?6?%}.pages-home .technician-info-popup .iconpingfen1[data-v-07b3a58c]{font-size:%?24?%;background-image:-webkit-linear-gradient(270deg,#fad961,#f76b1c)}.pages-home .technician-info-popup .star-text[data-v-07b3a58c]{height:%?26?%;color:#ff9519;margin-left:%?6?%}.pages-home .technician-info-popup .line[data-v-07b3a58c]{width:%?1?%;height:%?11?%;background:#979797;margin:0 %?18?%}.pages-home .technician-info-popup .introduce-info[data-v-07b3a58c]{width:%?630?%;max-height:%?400?%;overflow-y:auto;background:#f9f9f9}.pages-home .icon-close[data-v-07b3a58c]{font-size:%?60?%}',""]),t.exports=e},c674:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var i={wPicker:a("9de8").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.isLoad?a("v-uni-view",{staticClass:"pages-home"},[t.configInfo.plugAuth.map?[a("fixed",{attrs:{zIndex:990},on:{height:function(e){arguments[0]=e=t.$handleEvent(e),t.initFixHeight.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"fill-base",staticStyle:{height:"196rpx"}},[a("v-uni-view",{staticClass:"map-info flex-between pd-lg"},[a("v-uni-view",{staticClass:"flex-y-center",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toChooseLocation.apply(void 0,arguments)}}},[a("i",{staticClass:"iconfont iconjuli mr-sm"}),a("v-uni-view",{staticClass:"f-mini-title c-title max-400 ellipsis"},[t._v(t._s(t.location&&t.location.address?t.location.address:t.isLoad?"定位失败":"定位中..."))]),a("i",{staticClass:"iconfont icon-down"})],1),a("v-uni-view",{staticClass:"map-list-item flex-y-center"},[a("v-uni-view",{staticClass:"list-btn flex-center f-icontext rel",style:{color:"map"==t.mapType?t.primaryColor:"",borderColor:"map"==t.mapType?t.primaryColor:"",borderRight:"list"==t.mapType?"none":""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toChangeItem("map")}}},["map"==t.mapType?a("v-uni-view",{staticClass:"list-btn abs",style:{background:t.primaryColor}}):t._e(),a("i",{staticClass:"iconfont icondituzhaoren2"}),t._v("地图")],1),a("v-uni-view",{staticClass:"list-btn flex-center f-icontext rel",style:{color:"list"==t.mapType?t.primaryColor:"",borderColor:"list"==t.mapType?t.primaryColor:"",borderLeft:"map"==t.mapType?"none":""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toChangeItem("list")}}},["list"==t.mapType?a("v-uni-view",{staticClass:"list-btn abs",style:{background:t.primaryColor}}):t._e(),a("i",{staticClass:"iconfont iconliebiaomoshi2"}),t._v("列表")],1)],1)],1),a("v-uni-view",{staticClass:"tab-info flex-center pr-lg"},[a("v-uni-view",{staticClass:"tab-list-item"},[a("tab",{attrs:{list:t.service_cate,activeIndex:1*t.param.activeIndex,activeColor:t.primaryColor,height:"80rpx",fontSize:"28rpx",numberType:2,lineClass:"sm"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.handerTabChange.apply(void 0,arguments)}}})],1),a("v-uni-view",{staticClass:"tab-select-item flex-1 flex-between ml-sm",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$refs.search_item.open()}}},[a("v-uni-view"),a("i",{staticClass:"iconfont iconshaixuan"})],1)],1)],1)],1),"map"==t.mapType?[t.location.lat&&t.location.lng&&t.location.address?a("v-uni-map",{staticClass:"map-box",style:{height:"calc(100vh - "+(t.popupHeight+t.configInfo.tabbarHeight)+"px)"},attrs:{controls:t.map.controls,scale:t.map.scale,latitude:t.map.latitude,longitude:t.map.longitude,markers:t.covers},on:{callouttap:function(e){arguments[0]=e=t.$handleEvent(e),t.getDetail.apply(void 0,arguments)},markertap:function(e){arguments[0]=e=t.$handleEvent(e),t.getDetail.apply(void 0,arguments)},regionchange:function(e){arguments[0]=e=t.$handleEvent(e),t.regionchange.apply(void 0,arguments)}}}):t._e()]:t._e(),"list"==t.mapType?[t.list.data&&t.list.data.length>0?[t._l(t.list.data,(function(e,i){return a("v-uni-view",{key:i,staticClass:"mt-md ml-md mr-md"},[a("technician-list-item",{attrs:{info:e},on:{comment:function(e){arguments[0]=e=t.$handleEvent(e),t.toShowPopup(i,"message")},collect:function(e){arguments[0]=e=t.$handleEvent(e),t.toCollect(i)},order:function(e){arguments[0]=e=t.$handleEvent(e),t.toShowPopup(i,"technician")}}})],1)})),t.loading?a("load-more",{attrs:{noMore:t.list.current_page>=t.list.last_page&&t.list.data.length>0,loading:t.loading}}):t._e(),!t.loading&&t.list.data.length<=0&&1==t.list.current_page?a("abnor"):t._e(),a("v-uni-view",{staticClass:"space-footer"}),a("technician-list-popup",{ref:"technician_list_popup"})]:t._e()]:t._e()]:[a("abnor",{attrs:{tip:[{text:"当前页面没有权限,请点击导航栏切换页面",color:0}],image:"https://lbqny.migugu.com/admin/anmo/technician/no_data.png"}})],a("uni-popup",{ref:"search_item",attrs:{type:"top",left:"164rpx"}},[a("v-uni-view",{staticClass:"search-popup pd-lg fill-base"},[a("v-uni-view",{staticClass:"f-desc c-title text-bold"},[t._v(t._s(t.$t("action.attendantName"))+"性别")]),a("v-uni-view",{staticClass:"flex-warp"},t._l(t.sexList,(function(e,i){return a("v-uni-view",{key:i,staticClass:"list-item flex-center mt-md mr-md f-paragraph c-paragraph radius",style:{background:t.check.sex==e.id?t.primaryColor:"",color:t.check.sex==e.id?"#fff":""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toChangeItem("sex",i)}}},[t._v(t._s(e.title))])})),1),a("v-uni-view",{staticClass:"f-desc c-title text-bold pt-lg mt-md"},[t._v("从业年份")]),a("v-uni-view",{staticClass:"flex-warp"},t._l(t.yearList,(function(e,i){return a("v-uni-view",{key:i,staticClass:"list-item flex-center mt-md mr-md f-paragraph c-paragraph radius",style:{background:t.check.year==e.id?t.primaryColor:"",color:t.check.year==e.id?"#fff":""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toChangeItem("year",i)}}},[t._v(t._s(e.title))])})),1),a("v-uni-view",{staticClass:"f-desc c-title text-bold pt-lg mt-md"},[t._v("上门时间")]),a("v-uni-view",{staticClass:"list-item flex-center mt-md mr-md f-paragraph c-paragraph radius rel",staticStyle:{width:"100%"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toShowDate.apply(void 0,arguments)}}},[t._v(t._s(t.check.service_time||"选择期望上门时间")),t.check.service_time?a("i",{staticClass:"iconfont icon-guanbi-fill abs",style:{color:t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toClearServiceTime.apply(void 0,arguments)}}}):t._e()]),a("v-uni-view",{staticClass:"f-desc c-title text-bold pt-lg mt-md"},[t._v("个性筛选")]),a("v-uni-input",{staticClass:"list-item text-center mt-md f-paragraph c-paragraph radius",staticStyle:{width:"100%"},attrs:{type:"text",placeholder:"请输入"+t.$t("action.attendantName")+"姓名"},model:{value:t.check.coach_name,callback:function(e){t.$set(t.check,"coach_name",e)},expression:"check.coach_name"}}),a("v-uni-view",{staticStyle:{height:"60rpx"}}),a("v-uni-view",{staticClass:"flex-center"},[a("v-uni-view",{staticClass:"search-btn flex-center f-mini-title c-title radius",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toReset.apply(void 0,arguments)}}},[t._v("重置")]),a("v-uni-view",{staticClass:"search-btn flex-center ml-lg f-mini-title c-base radius",style:{background:t.primaryColor,borderColor:t.primaryColor},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toConfirm.apply(void 0,arguments)}}},[t._v("确定")])],1)],1)],1),a("uni-popup",{ref:"technician_info_item",attrs:{type:"center"}},[a("v-uni-view",{staticClass:"technician-info-popup fill-base ml-lg mr-lg radius-16"},[a("v-uni-image",{staticClass:"work-img",attrs:{mode:"aspectFill",src:t.detail.work_img},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.goInfo.apply(void 0,arguments)}}}),a("v-uni-view",{staticClass:"pt-lg pl-lg pr-lg",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.goInfo.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"flex-between"},[a("v-uni-view",{staticClass:"f-title c-black text-bold max-400"},[t._v(t._s(t.detail.coach_name||"-"))]),a("v-uni-view",{staticClass:"flex-center"},[a("i",{staticClass:"iconfont iconjuli",style:{color:t.primaryColor}}),a("v-uni-view",{staticClass:"f-desc c-title"},[t._v(t._s(t.detail.distance))])],1)],1),a("v-uni-view",{staticClass:"flex-y-center mt-sm"},[a("v-uni-view",{staticClass:"service-label flex-center f-icontext"},[t._v(t._s(t.textType[t.detail.text_type]))]),t.detail.near_time?a("v-uni-view",{staticClass:"time-label flex-y-center ml-md f-icontext c-paragraph"},[a("v-uni-view",{staticClass:"near-text flex-center"},[t._v("最早可约")]),a("v-uni-view",{staticClass:"near-time flex-center c-base rel",style:{color:t.primaryColor}},[a("v-uni-view",{staticClass:"bg abs",style:{background:t.primaryColor}}),t._v(t._s(t.detail.near_time))],1)],1):t._e()],1),t.detail.store_id&&t.detail.store_name?a("v-uni-view",{staticClass:"flex-y-center mt-lg f-icontext c-caption"},[a("i",{staticClass:"iconfont icondianpu"}),t._v(t._s(t.detail.store_name))]):t._e(),a("v-uni-view",{staticClass:"flex-y-center f-icontext c-caption",class:[{"mt-sm":t.detail.store_id&&t.detail.store_name},{"mt-lg":!t.detail.store_id}]},[a("v-uni-view",{staticClass:"flex-y-baseline"},[a("i",{staticClass:"iconfont iconpingfen1 icon-font-color"}),a("v-uni-view",{staticClass:"star-text flex-y-center f-caption"},[t._v(t._s(t.detail.star||0))])],1),a("v-uni-view",{staticClass:"line"}),a("v-uni-view",[t._v("已服务"+t._s(t.detail.order_num||0)+"单")]),a("v-uni-view",{staticClass:"line"}),a("v-uni-view",[t._v("从业"+t._s(t.detail.work_time)+"年")])],1)],1),a("v-uni-view",{staticClass:"pd-lg"},[a("v-uni-view",{staticClass:"introduce-info pd-lg f-paragraph c-title radius-16"},[a("v-uni-text",{staticStyle:{"word-break":"break-all"},attrs:{decode:"emsp"}},[t._v(t._s(t.detail.text))])],1)],1)],1),a("v-uni-view",{staticClass:"flex-center mt-lg",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.$refs.technician_info_item.close()}}},[a("i",{staticClass:"iconfont icon-close c-base"})])],1),a("w-picker",{ref:"day",attrs:{mode:"date",startYear:t.startYear-100,endYear:t.startYear,value:t.toDay,current:!1,fields:"minute","disabled-after":!1,themeColor:t.primaryColor,visible:t.showDate},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm(e)},"update:visible":function(e){arguments[0]=e=t.$handleEvent(e),t.showDate=e}}}),a("v-uni-view",{style:{height:t.configInfo.tabbarHeight+"px"}}),a("tabbar",{attrs:{cur:7}})],2):t._e()},o=[]},c855:function(t,e,a){"use strict";a.r(e);var i=a("de0e"),n=a("1b3c");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("38f1");var r=a("f0c5"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"5f3efd3c",null,!1,i["a"],void 0);e["default"]=s.exports},de0e:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"custom-tabbar fix flex-center fill-base b-1px-t"},t._l(t.configInfo.tabBar,(function(e,i){return a("v-uni-view",{key:i,staticClass:"flex-center flex-column mt-sm",style:{width:100/t.configInfo.tabBar.length+"%",color:t.cur==e.id?t.primaryColor:"#666"},on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.changeTab(e)}}},[a("i",{staticClass:"iconfont",class:t.cur==e.id?e.selected_img:e.default_img}),a("v-uni-image",{staticStyle:{width:"45rpx",height:"45rpx"},attrs:{src:t.cur==e.id?e.selected_img:e.default_img}}),a("v-uni-view",{staticClass:"text"},[t._v(t._s(e.name))])],1)})),1)},n=[]},f0b9:function(t,e,a){"use strict";var i=a("549b"),n=a.n(i);n.a}}]); |