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
9.6 KiB

<block wx:if="{{isLoad}}"><view class="pages-home"><block wx:if="{{configInfo.plugAuth.map}}"><block><fixed vue-id="3cca6e1a-1" zIndex="{{990}}" data-event-opts="{{[['^height',[['initFixHeight']]]]}}" bind:height="__e" bind:__l="__l" vue-slots="{{['default']}}"><view class="fill-base" style="height:196rpx;"><view class="map-info flex-between pd-lg"><view data-event-opts="{{[['tap',[['toChooseLocation',['$event']]]]]}}" class="flex-y-center" catchtap="__e"><view class="iconfont iconjuli mr-sm _i"></view><view class="f-mini-title c-title max-400 ellipsis">{{''+(location&&location.address?location.address:isLoad?'定位失败':'定位中...')+''}}</view><view class="iconfont icon-down _i"></view></view><view class="map-list-item flex-y-center"><view data-event-opts="{{[['tap',[['toChangeItem',['map']]]]]}}" class="list-btn flex-center f-icontext rel" style="{{'color:'+(mapType=='map'?primaryColor:'')+';'+('border-color:'+(mapType=='map'?primaryColor:'')+';')+('border-right:'+(mapType=='list'?'none':'')+';')}}" catchtap="__e"><block wx:if="{{mapType=='map'}}"><view class="list-btn abs" style="{{'background:'+(primaryColor)+';'}}"></view></block><view class="iconfont icondituzhaoren2 _i"></view>地图</view><view data-event-opts="{{[['tap',[['toChangeItem',['list']]]]]}}" class="list-btn flex-center f-icontext rel" style="{{'color:'+(mapType=='list'?primaryColor:'')+';'+('border-color:'+(mapType=='list'?primaryColor:'')+';')+('border-left:'+(mapType=='map'?'none':'')+';')}}" catchtap="__e"><block wx:if="{{mapType=='list'}}"><view class="list-btn abs" style="{{'background:'+(primaryColor)+';'}}"></view></block><view class="iconfont iconliebiaomoshi2 _i"></view>列表</view></view></view><view class="tab-info flex-center pr-lg"><view class="tab-list-item"><tab vue-id="{{('3cca6e1a-2')+','+('3cca6e1a-1')}}" list="{{service_cate}}" activeIndex="{{param.activeIndex*1}}" activeColor="{{primaryColor}}" height="80rpx" fontSize="28rpx" numberType="{{2}}" lineClass="sm" data-event-opts="{{[['^change',[['handerTabChange']]]]}}" bind:change="__e" bind:__l="__l"></tab></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="tab-select-item flex-1 flex-between ml-sm" catchtap="__e"><view></view><view class="iconfont iconshaixuan _i"></view></view></view></view></fixed><block wx:if="{{mapType=='map'}}"><block><block wx:if="{{location.lat&&location.lng&&location.address}}"><map class="map-box" style="{{'height:'+('calc(100vh - '+(popupHeight+configInfo.tabbarHeight)+'px)')+';'}}" controls="{{map.controls}}" scale="{{map.scale}}" latitude="{{map.latitude}}" longitude="{{map.longitude}}" markers="{{covers}}" data-event-opts="{{[['callouttap',[['getDetail',['$event']]]],['markertap',[['getDetail',['$event']]]],['regionchange',[['regionchange',['$event']]]]]}}" bindcallouttap="__e" bindmarkertap="__e" bindregionchange="__e"></map></block></block></block><block wx:if="{{mapType=='list'}}"><block><block wx:if="{{$root.g0}}"><block><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="mt-md ml-md mr-md"><technician-list-item vue-id="{{'3cca6e1a-3-'+index}}" info="{{item}}" data-event-opts="{{[['^comment',[['toShowPopup',[index,'message']]]],['^collect',[['toCollect',[index]]]],['^order',[['toShowPopup',[index,'technician']]]]]}}" bind:comment="__e" bind:collect="__e" bind:order="__e" bind:__l="__l"></technician-list-item></view></block><block wx:if="{{loading}}"><load-more vue-id="3cca6e1a-4" noMore="{{$root.g1}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g2}}"><abnor vue-id="3cca6e1a-5" bind:__l="__l"></abnor></block><block wx:if="{{!loading&&!location.lng}}"><abnor vue-id="3cca6e1a-6" tip="{{[{text:'定位失败,请开启地理位置授权后刷新页面重试~',color:0}]}}" button="{{[{text:'开启定位',type:'confirm'}]}}" btnSize data-event-opts="{{[['^confirm',[['toOpenLocation']]]]}}" bind:confirm="__e" bind:__l="__l"></abnor></block><view class="space-footer"></view><technician-list-popup class="vue-ref" vue-id="3cca6e1a-7" data-ref="technician_list_popup" bind:__l="__l"></technician-list-popup></block></block></block></block></block></block><block wx:else><block><abnor vue-id="3cca6e1a-8" tip="{{[{text:'当前页面没有权限,请点击导航栏切换页面',color:0}]}}" image="https://lbqny.migugu.com/admin/anmo/technician/no_data.png" bind:__l="__l"></abnor></block></block><uni-popup class="vue-ref" vue-id="3cca6e1a-9" type="top" left="164rpx" data-ref="search_item" bind:__l="__l" vue-slots="{{['default']}}"><view class="search-popup pd-lg fill-base"><view class="f-desc c-title text-bold">{{$root.m0+'性别'}}</view><view class="flex-warp"><block wx:for="{{sexList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toChangeItem',['sex',index]]]]]}}" class="list-item flex-center mt-md mr-md f-paragraph c-paragraph radius" style="{{'background:'+(check.sex==item.id?primaryColor:'')+';'+('color:'+(check.sex==item.id?'#fff':'')+';')}}" catchtap="__e">{{item.title+''}}</view></block></view><view class="f-desc c-title text-bold pt-lg mt-md">从业年份</view><view class="flex-warp"><block wx:for="{{yearList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toChangeItem',['year',index]]]]]}}" class="list-item flex-center mt-md mr-md f-paragraph c-paragraph radius" style="{{'background:'+(check.year==item.id?primaryColor:'')+';'+('color:'+(check.year==item.id?'#fff':'')+';')}}" catchtap="__e">{{item.title+''}}</view></block></view><view class="f-desc c-title text-bold pt-lg mt-md">上门时间</view><view data-event-opts="{{[['tap',[['toShowDate',['$event']]]]]}}" class="list-item flex-center mt-md mr-md f-paragraph c-paragraph radius rel" style="width:100%;" catchtap="__e">{{''+(check.service_time||'选择期望上门时间')+''}}<block wx:if="{{check.service_time}}"><view data-event-opts="{{[['tap',[['toClearServiceTime',['$event']]]]]}}" class="iconfont icon-guanbi-fill abs _i" style="{{'color:'+(primaryColor)+';'}}" catchtap="__e"></view></block></view><view class="f-desc c-title text-bold pt-lg mt-md">个性筛选</view><input class="list-item text-center mt-md f-paragraph c-paragraph radius" style="width:100%;" type="text" placeholder="{{'请输入'+$root.m1+'姓名'}}" data-event-opts="{{[['input',[['__set_model',['$0','coach_name','$event',[]],['check']]]]]}}" value="{{check.coach_name}}" bindinput="__e"/><view style="height:60rpx;"></view><view class="flex-center"><view data-event-opts="{{[['tap',[['toReset',['$event']]]]]}}" class="search-btn flex-center f-mini-title c-title radius" catchtap="__e">重置</view><view data-event-opts="{{[['tap',[['toConfirm',['$event']]]]]}}" class="search-btn flex-center ml-lg f-mini-title c-base radius" style="{{'background:'+(primaryColor)+';'+('border-color:'+(primaryColor)+';')}}" catchtap="__e">确定</view></view></view></uni-popup><uni-popup class="vue-ref" vue-id="3cca6e1a-10" type="center" data-ref="technician_info_item" bind:__l="__l" vue-slots="{{['default']}}"><view class="technician-info-popup fill-base ml-lg mr-lg radius-16"><image class="work-img" mode="aspectFill" src="{{detail.work_img}}" data-event-opts="{{[['tap',[['goInfo',['$event']]]]]}}" catchtap="__e"></image><view data-event-opts="{{[['tap',[['goInfo',['$event']]]]]}}" class="pt-lg pl-lg pr-lg" catchtap="__e"><view class="flex-between"><view class="f-title c-black text-bold max-400">{{detail.coach_name||'-'}}</view><view class="flex-center"><view class="iconfont iconjuli _i" style="{{'color:'+(primaryColor)+';'}}"></view><view class="f-desc c-title">{{detail.distance}}</view></view></view><view class="flex-y-center mt-sm"><view class="service-label flex-center f-icontext">{{''+textType[detail.text_type]+''}}</view><block wx:if="{{detail.near_time}}"><view class="time-label flex-y-center ml-md f-icontext c-paragraph"><view class="near-text flex-center">最早可约</view><view class="near-time flex-center c-base rel" style="{{'color:'+(primaryColor)+';'}}"><view class="bg abs" style="{{'background:'+(primaryColor)+';'}}"></view>{{''+detail.near_time+''}}</view></view></block></view><block wx:if="{{detail.store_id&&detail.store_name}}"><view class="flex-y-center mt-lg f-icontext c-caption"><view class="iconfont icondianpu _i"></view>{{''+detail.store_name+''}}</view></block><view class="{{['flex-y-center','f-icontext','c-caption',[(detail.store_id&&detail.store_name)?'mt-sm':''],[(!detail.store_id)?'mt-lg':'']]}}"><view class="flex-y-baseline"><view class="iconfont iconpingfen1 icon-font-color _i"></view><view class="star-text flex-y-center f-caption">{{detail.star||0}}</view></view><view class="line"></view><view>{{"已服务"+(detail.order_num||0)+"单"}}</view><view class="line"></view><view>{{"从业"+detail.work_time+"年"}}</view></view></view><view class="pd-lg"><view class="introduce-info pd-lg f-paragraph c-title radius-16"><text style="word-break:break-all;" decode="emsp">{{detail.text}}</text></view></view></view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="flex-center mt-lg" catchtap="__e"><view class="iconfont icon-close c-base _i"></view></view></uni-popup><w-picker class="vue-ref" vue-id="3cca6e1a-11" mode="date" startYear="{{startYear-100}}" endYear="{{startYear}}" value="{{toDay}}" current="{{false}}" fields="minute" disabled-after="{{false}}" themeColor="{{primaryColor}}" visible="{{showDate}}" data-ref="day" data-event-opts="{{[['^confirm',[['onConfirm',['$event']]]],['^updateVisible',[['__set_sync',['$0','showDate','$event'],['']]]]]}}" bind:confirm="__e" bind:updateVisible="__e" bind:__l="__l"></w-picker><view style="{{'height:'+(configInfo.tabbarHeight+'px')+';'}}"></view><tabbar vue-id="3cca6e1a-12" cur="{{7}}" bind:__l="__l"></tabbar></view></block>