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

1 year ago
<view class="pages-technician"><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="list-item flex-center rel"><view class="flex-center flex-column"><view class="item-img rel"><image class="item-img" mode="aspectFill" lazy-load="{{true}}" src="{{item.work_img}}" data-event-opts="{{[['tap',[['toPreviewImage',[index,1]]]]]}}" catchtap="__e"></image><block wx:if="{{item.coach_type_status}}"><image class="{{['abs',imgType[item.coach_type_status]+'-img']}}" lazy-load="{{true}}" src="{{'https://lbqny.migugu.com/admin/anmo/mine/'+imgType[item.coach_type_status]+'.png'}}" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" data-event-params="{{({item,index})}}" catchtap="__e"></image></block></view></view><view class="flex-1 max-510" style="margin-left:20rpx;display:flex;flex-direction:column;justify-content:space-between;height:262rpx;"><view class="nameInfo"><view><text class="name">{{item.coach_name}}</text><text class="score">{{item.star}}</text></view><view class="flex-center"><view class="iconfont iconjuli _i" style="color:#9CA5AC;"></view><view class="f-desc c-title" style="font-size:24rpx;color:#71787E;">{{item.distance}}</view></view></view><block wx:if="{{item.near_time}}"><view class="middleInfo"><view class="zuizao">最早可约</view><view class="keyue">{{''+item.near_time+''}}</view></view></block><view class="mendian"><view data-event-opts="{{[['tap',[['goShop',['$0'],[[['list.data','',index]]]]]]]}}" class="mdInfo" bindtap="__e"><image src="../../static/mendian.png" mode></image><text>{{item.company_name}}</text></view><view class="order-num">{{'已服务 '+(item.order_num>9999?'9999+':item.order_num)+'单'}}</view></view><view class="flex-between"><view class="flex-y-center f-desc c-caption"><view data-event-opts="{{[['tap',[['toShowPopup',[index,'message']]]]]}}" class="flex-y-center" catchtap="__e"><view class="iconfont iconpinglun mr-sm _i"></view>{{item.comment_num+''}}</view><view data-event-opts="{{[['tap',[['toCollect',[index]]]]]}}" class="flex-y-center ml-md" catchtap="__e"><view class="iconfont iconshoucang2 mr-sm _i" style="{{'color:'+(primaryColor)+';'}}"></view>{{item.collect_num+''}}</view><view data-event-opts="{{[['tap',[['goInfo',[index]]]]]}}" class="flex-y-center ml-md" catchtap="__e"><view class="iconfont iconxiangqing mr-sm _i"></view><view class="f-icontext">详情</view></view></view><view data-event-opts="{{[['tap',[['toShowPopup',[index,'technician']]]]]}}" class="item-btn flex-center f-desc c-base" style="{{'background:'+(item.user_id?primaryColor:'#888')+';'}}" catchtap="__e">预约</view></view></view></view></block><block wx:if="{{loading}}"><load-more vue-id="27866efd-1" noMore="{{$root.g0}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g1}}"><abnor vue-id="27866efd-2" bind:__l="__l"></abnor></block><view class="space-footer"></view><uni-popup class="vue-ref" vue-id="27866efd-3" type="bottom" data-ref="technician_item" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{showInd!=-1}}"><view class="technician-popup fill-base"><view class="{{['pd-lg',[(showType=='technician')?'flex-center':''],[(showType=='message')?'flex-warp':'']]}}"><image class="item-avatar radius" src="{{list.data[showInd].work_img}}"></image><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="flex-1 ml-md" catchtap="__e"><view class="flex-between"><view class="flex-y-baseline f-caption c-caption"><view class="f-title c-title mr-sm max-350 ellipsis">{{''+list.data[showInd].coach_name+''}}</view>{{"从业"+list.data[showInd].work_time+'年'}}</view><view class="iconfont icon-close _i"></view></view><block wx:if="{{showType=='message'}}"><scroll-view class="technician-text f-caption c-caption mt-sm" scroll-y="{{true}}" data-event-opts="{{[['touchmove',[['',['$event']]]]]}}" catchtouchmove="__e">{{''+list.data[showInd].text+''}}</scroll-view></block></view></view><view class="space-sm fill-body"></view><scroll-view class="list-content" scroll-y="{{true}}" data-event-opts="{{[['touchmove',[['',['$event']]]]]}}" catcht