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"],{"002b":function(t,e,i){"use strict";i.r(e);var a=i("fb12"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"0179":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(){return a}));var a={wPicker:i("13f3").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isLoad?i("v-uni-view",{staticClass:"pages-home"},[t.configInfo.plugAuth.map?[i("fixed",{attrs:{zIndex:990},on:{height:function(e){arguments[0]=e=t.$handleEvent(e),t.initFixHeight.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"fill-base",staticStyle:{height:"196rpx"}},[i("v-uni-view",{staticClass:"map-info flex-between pd-lg"},[i("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)}}},[i("i",{staticClass:"iconfont iconjuli mr-sm"}),i("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?"定位失败":"定位中..."))]),i("i",{staticClass:"iconfont icon-down"})],1),i("v-uni-view",{staticClass:"map-list-item flex-y-center"},[i("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?i("v-uni-view",{staticClass:"list-btn abs",style:{background:t.primaryColor}}):t._e(),i("i",{staticClass:"iconfont icondituzhaoren2"}),t._v("地图")],1),i("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?i("v-uni-view",{staticClass:"list-btn abs",style:{background:t.primaryColor}}):t._e(),i("i",{staticClass:"iconfont iconliebiaomoshi2"}),t._v("列表")],1)],1)],1),i("v-uni-view",{staticClass:"tab-info flex-center pr-lg"},[i("v-uni-view",{staticClass:"tab-list-item"},[i("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),i("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()}}},[i("v-uni-view"),i("i",{staticClass:"iconfont iconshaixuan"})],1)],1)],1)],1),"map"==t.mapType?[t.location.lat&&t.location.lng&&t.location.address?i("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,a){return i("v-uni-view",{key:a,staticClass:"mt-md ml-md mr-md"},[i("technician-list-item",{attrs:{info:e},on:{comment:function(e){arguments[0]=e=t.$handleEvent(e),t.toShowPopup(a,"message")},collect:function(e){arguments[0]=e=t.$handleEvent(e),t.toCollect(a)},order:function(e){arguments[0]=e=t.$handleEvent(e),t.toShowPopup(a,"technician")}}})],1)})),t.loading?i("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?i("abnor"):t._e(),i("v-uni-view",{staticClass:"space-footer"}),i("technician-list-popup",{ref:"technician_list_popup"})]:t._e()]:t._e()]:[i("abnor",{attrs:{tip:[{text:"当前页面没有权限,请点击导航栏切换页面",color:0}],image:"https://lbqny.migugu.com/admin/anmo/technician/no_data.png"}})],i("uni-popup",{ref:"search_item",attrs:{type:"top",left:"164rpx"}},[i("v-uni-view",{staticClass:"search-popup pd-lg fill-base"},[i("v-uni-view",{staticClass:"f-desc c-title text-bold"},[t._v(t._s(t.$t("action.attendantName"))+"性别")]),i("v-uni-view",{staticClass:"flex-warp"},t._l(t.sexList,(function(e,a){return i("v-uni-view",{key:a,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",a)}}},[t._v(t._s(e.title))])})),1),i("v-uni-view",{staticClass:"f-desc c-title text-bold pt-lg mt-md"},[t._v("从业年份")]),i("v-uni-view",{staticClass:"flex-warp"},t._l(t.yearList,(function(e,a){return i("v-uni-view",{key:a,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",a)}}},[t._v(t._s(e.title))])})),1),i("v-uni-view",{staticClass:"f-desc c-title text-bold pt-lg mt-md"},[t._v("上门时间")]),i("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?i("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()]),i("v-uni-view",{staticClass:"f-desc c-title text-bold pt-lg mt-md"},[t._v("个性筛选")]),i("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"}}),i("v-uni-view",{staticStyle:{height:"60rpx"}}),i("v-uni-view",{staticClass:"flex-center"},[i("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("重置")]),i("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),i("uni-popup",{ref:"technician_info_item",attrs:{type:"center"}},[i("v-uni-view",{staticClass:"technician-info-popup fill-base ml-lg mr-lg radius-16"},[i("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)}}}),i("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)}}},[i("v-uni-view",{staticClass:"flex-between"},[i("v-uni-view",{staticClass:"f-title c-black text-bold max-400"},[t._v(t._s(t.detail.coach_name||"-"))]),i("v-uni-view",{staticClass:"flex-center"},[i("i",{staticClass:"iconfont iconjuli",style:{color:t.primaryColor}}),i("v-uni-view",{staticClass:"f-desc c-title"},[t._v(t._s(t.detail.distance))])],1)],1),i("v-uni-view",{staticClass:"flex-y-center mt-sm"},[i("v-uni-view",{staticClass:"service-label flex-center f-icontext"},[t._v(t._s(t.textType[t.detail.text_type]))]),t.detail.near_time?i("v-uni-view",{staticClass:"time-label flex-y-center ml-md f-icontext c-paragraph"},[i("v-uni-view",{staticClass:"near-text flex-center"},[t._v("最早可约")]),i("v-uni-view",{staticClass:"near-time flex-center c-base rel",style:{color:t.primaryColor}},[i("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?i("v-uni-view",{staticClass:"flex-y-center mt-lg f-icontext c-caption"},[i("i",{staticClass:"iconfont icondianpu"}),t._v(t._s(t.detail.store_name))]):t._e(),i("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}]},[i("v-uni-view",{staticClass:"flex-y-baseline"},[i("i",{staticClass:"iconfont iconpingfen1 icon-font-color"}),i("v-uni-view",{staticClass:"star-text flex-y-center f-caption"},[t._v(t._s(t.detail.star||0))])],1),i("v-uni-view",{staticClass:"line"}),i("v-uni-view",[t._v("已服务"+t._s(t.detail.order_num||0)+"单")]),i("v-uni-view",{staticClass:"line"}),i("v-uni-view",[t._v("从业"+t._s(t.detail.work_time)+"年")])],1)],1),i("v-uni-view",{staticClass:"pd-lg"},[i("v-uni-view",{staticClass:"introduce-info pd-lg f-paragraph c-title radius-16"},[i("v-uni-text",{staticStyle:{"word-break":"break-all"},attrs:{decode:"emsp"}},[t._v(t._s(t.detail.text))])],1)],1)],1),i("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()}}},[i("i",{staticClass:"iconfont icon-close c-base"})])],1),i("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}}}),i("v-uni-view",{style:{height:t.configInfo.tabbarHeight+"px"}}),i("tabbar",{attrs:{cur:7}})],2):t._e()},o=[]},3648:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("5de6")),o=a(i("9b1b")),r=a(i("2634")),s=a(i("2fdc"));i("fd3c"),i("bd06"),i("8f71"),i("bf0f"),i("c223"),i("4626");var c=i("8f59"),l=a(i("cf61")),u=a(i("ea26")),p=a(i("a0e3")),d=a(i("ba2d")),f=a(i("13f3")),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 i(){return(0,r.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return e.$util.showLoading(),i.next=3,e.updateCommonOptions(t);case 3:return t=i.sent,e.options=t,uni.onNetworkStatusChange((function(t){var i=t.isConnected;!i||e.pageActive||e.initIndex()})),i.next=8,e.initIndex();case 8:case"end":return i.stop()}}),i)})))()},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,i=void 0===e?0:e,a="/pages/map?pid=".concat(i);return this.$util.log(a),{title:"",imageUrl:"",path:a}},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 i(){var a,n,o,s,c,l,u,p,d,f,m,h;return(0,r.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=t.length>0&&void 0!==t[0]&&t[0],n=e.options.pid,o=void 0===n?0:n,a||!e.pageActive||o){i.next=8;break}return e.isLoad=!0,e.loading=!1,e.$util.setNavigationBarColor({bg:e.primaryColor}),e.$util.hideAll(),i.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&&!a&&(!e.configInfo.id||e.configInfo.plugAuth.hasOwnProperty("map"))){i.next=14;break}return i.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){i.next=24;break}return e.isLoad=!0,e.loading=!1,e.$util.hideAll(),i.abrupt("return");case 24:return f=e.location,m=f.lng,void 0===m?0:m,h=f.lat,void 0===h?0:h,i.next=27,e.getMapIndex();case 27:return i.next=29,e.getList(1);case 29:e.updateMapItem({key:"pageActive",val:!0}),e.isLoad=!0;case 31:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.initIndex(!0)},handerTabChange:function(t){var e=this.service_cate[t].id,i=Object.assign({},this.param,{cate_id:e,page:1,activeIndex:t});this.updateMapItem({key:"param",val:i}),this.getList()},getList:function(t){var e=this;return(0,s.default)((0,r.default)().mark((function i(){var a,n,o,s,c,l,u,p,d,f,m,h,v;return(0,r.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return t&&(e.param.page=1,e.timer&&clearTimeout(e.timer)),a=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"==a?"getMapList":"getMapCoachList",i.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 i.stop()}}),i)})))()},toAppShare:function(){var t=this,e=this.userInfo.id,i=void 0===e?0:e,a=l.default.siteroot,n=a.split("/index.php")[0],o="".concat(n,"/h5/#/pages/service?pid=").concat(i);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 i,a,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(i=e.location,a=i.lat,o=void 0===a?"":a,s=i.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 i=this["".concat(t,"List")][e].id,a="sex"==t?{sex:i}:{year:i},n=Object.assign({},this.check,a);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 i(){var a,n,o;return(0,r.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(a=t.result,n=e.$util.formatTime((new Date).getTime(),"YY-M-D h:m"),!(e.$util.DateToUnix(a)<=e.$util.DateToUnix(n))){i.next=5;break}return e.$util.showToast({title:"只能选择未来时间哦"}),i.abrupt("return");case 5:o=Object.assign({},e.check,{service_time:a}),e.updateMapItem({key:"check",val:o});case 7:case"end":return i.stop()}}),i)})))()},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 i=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:i.$refs.technician_list_popup.toShowPopup(i.list.data[t],e);case 1:case"end":return a.stop()}}),a)})))()},toCollect:function(t){var e=this;return(0,s.default)((0,r.default)().mark((function i(){var a,n,o,s,c;return(0,r.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=e.list.data[t],n=a.id,o=a.is_collect,s=a.collect_num,c=o?"delCollect":"addCollect",i.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 i.stop()}}),i)})))()},regionchange:function(t){var e=this;return(0,s.default)((0,r.default)().mark((function t(){var i,a,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,i="".concat(void 0,",").concat(void 0),t.prev=8,t.next=11,e.$api.base.getMapInfo({location:i});case 11:a=t.sent,n=JSON.parse(a),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 i(){var a,n,o,s,c;return(0,r.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=t.detail.markerId,n=e.mapList[a],o=n.id,s=n.distance,i.next=4,e.$api.service.coachInfo({id:o});case 4:c=i.sent,c.distance=s,e.detail=c,e.$refs.technician_info_item.open();case 8:case"end":return i.stop()}}),i)})))()},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},"63fc":function(t,e,i){"use strict";i.r(e);var a=i("3648"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},7850:function(t,e,i){var a=i("8473");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("bc328154",a,!0,{sourceMap:!1,shadowMode:!1})},"7d54":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"custom-tabbar fix flex-center fill-base b-1px-t"},t._l(t.configInfo.tabBar,(function(e,a){return i("v-uni-view",{key:a,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(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.changeTab(e)}}},[i("i",{staticClass:"iconfont",class:t.cur==e.id?e.selected_img:e.default_img}),i("v-uni-image",{staticStyle:{width:"45rpx",height:"45rpx"},attrs:{src:t.cur==e.id?e.selected_img:e.default_img}}),i("v-uni-view",{staticClass:"text"},[t._v(t._s(e.name))])],1)})),1)},n=[]},8473:function(t,e,i){var a=i("c86c");e=a(!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},"9ff0":function(t,e,i){var a=i("c86c");e=a(!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},b325:function(t,e,i){"use strict";i.r(e);var a=i("0179"),n=i("63fc");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("d21f");var r=i("828b"),s=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"07b3a58c",null,!1,a["a"],void 0);e["default"]=s.exports},c891:function(t,e,i){var a=i("9ff0");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("967d").default;n("4bc89a6a",a,!0,{sourceMap:!1,shadowMode:!1})},cd75:function(t,e,i){"use strict";var a=i("c891"),n=i.n(a);n.a},d21f:function(t,e,i){"use strict";var a=i("7850"),n=i.n(a);n.a},ea26:function(t,e,i){"use strict";i.r(e);var a=i("7d54"),n=i("002b");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("cd75");var r=i("828b"),s=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"5f3efd3c",null,!1,a["a"],void 0);e["default"]=s.exports},fb12:function(t,e,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("9b1b")),o=a(i("2634")),r=a(i("2fdc"));i("64aa"),i("5c47"),i("8f71"),i("bf0f");var s=i("8f59"),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 i,a,n;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=t,a=uni.getSystemInfoSync().windowHeight,n=i.configInfo.navBarHeight,setTimeout((function(){var e=uni.createSelectorQuery().in(i);e.select(".custom-tabbar").boundingClientRect((function(e){var o=a-e.height-n,r=i.$util.deepCopy(t.configInfo);r.curSysHeight=o,r.tabbarHeight=e.height,i.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 i(){var a,n,r,s,c,l,u;return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(t.id){i.next=5;break}return i.next=3,e.getConfigInfo();case 3:a=e.configInfo.tabBar.filter((function(e){return e.name==t.name})),t=a[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){i.next=10;break}return i.abrupt("return");case 10:e.$util.goUrl({url:u[r],openType:"reLaunch"});case 11:case"end":return i.stop()}}),i)})))()}})};e.default=c}}]); |