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

5 months ago
<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="technici