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
8.0 KiB
1 lines
8.0 KiB
<view class="pages-technician"><uni-nav-bar vue-id="0d05000d-1" fixed="{{false}}" shadow="{{false}}" statusBar="{{true}}" onlyLeft="{{true}}" color="#fff" backgroundColor="{{primaryColor}}" bind:__l="__l" vue-slots="{{['left']}}"><view class="map-info flex-y-center" slot="left" data-event-opts="{{[['tap',[['toChooseLocation',['$event']]]]]}}" catchtap="__e"><view class="flex-y-center pl-md c-base"><view class="iconfont iconjuli mr-sm _i"></view><view class="map-text max-400 ellipsis">{{''+(location.address?location.address:isLoad?'定位失败':'定位中...')+''}}</view><view class="iconfont icon-down _i"></view></view></view></uni-nav-bar><search vue-id="0d05000d-2" type="input" placeholder="请输入技师姓名" data-event-opts="{{[['^confirm',[['toSearch']]]]}}" bind:confirm="__e" bind:__l="__l"></search><view class="space-md"></view><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="list-item flex-center pd-lg mt-md ml-md mr-md fill-base radius-16 rel"><block wx:if="{{item.coach_type_status==1}}"><view class="top-tag flex-center f-icontext abs">优</view></block><view class="flex-center flex-column"><view class="item-img rel"><image class="item-img radius" 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 class="{{['item-tag','flex-center','f-icontext','c-base','radius-20',[(item.text_type==1)?'can-service':'']]}}">{{''+(item.text_type==1?'可服务':'服务中')+''}}</view></view><view class="flex-1 ml-md max-510"><view class="flex-between"><view class="flex-y-center f-title c-title"><view class="text-bold max-200 ellipsis">{{item.coach_name}}</view><view data-event-opts="{{[['tap',[['toPreviewImage',[index]]]]]}}" class="more-img flex-center ml-sm f-icontext" style="{{'color:'+(primaryColor)+';'+('border:'+('1rpx solid '+primaryColor)+';')}}" catchtap="__e">更多照片</view></view><block wx:if="{{item.near_time}}"><view class="flex-y-center f-icontext c-caption">最早可约<view class="can-service-btn flex-center rel"><view class="bg abs" style="{{'background:'+(primaryColor)+';'}}"></view><view class="text flex-center abs" style="{{'color:'+(primaryColor)+';'}}">{{''+item.near_time+''}}</view></view></view></block></view><view class="flex-between mt-sm mb-md pb-md b-1px-b"><view class="flex-y-center f-icontext"><view class="flex-y-center"><view class="iconfont iconyduixingxingshixin icon-font-color _i"></view><view class="star-text">{{item.star}}</view></view><view class="order-num">{{'已服务 '+(item.order_num>9999?'9999+':item.order_num)+"单"}}</view></view><view class="flex-center"><view class="iconfont iconjuli _i" style="{{'color:'+(primaryColor)+';'}}"></view><view class="f-desc c-title">{{item.distance}}</view></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','mr-sm','_i',[(!item.is_collect)?'iconshoucang1':''],[(item.is_collect)?'iconshoucang2':'']]}}" style="{{'color:'+(item.is_collect?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',[['toOrder',[index]]]]]}}" 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="0d05000d-3" noMore="{{$root.g0}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g1}}"><abnor vue-id="0d05000d-4" bind:__l="__l"></abnor></block><block wx:if="{{!loading&&!location.address}}"><abnor vue-id="0d05000d-5" 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><uni-popup class="vue-ref" vue-id="0d05000d-6" 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']]]]]}}" catchtouchmove="__e"><block wx:if="{{showType=='message'}}"><block><block wx:for="{{commentList.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['','list-message','flex-warp','pd-lg',[(index!=0)?'b-1px-t':'']]}}"><image class="item-avatar radius" src="{{item.avatarUrl}}"></image><view class="flex-1 ml-md"><view class="flex-between"><view class="flex-y-center"><view class="f-paragraph c-title mr-md">{{item.nickName}}</view><view class="flex-warp"><block wx:for="{{5}}" wx:for-item="aitem" wx:for-index="aindex" wx:key="aindex"><view class="iconfont iconyduixingxingshixin icon-font-color _i" style="{{'background-image:'+(aindex<item.star?'-webkit-linear-gradient(270deg, #FAD961 0%, #F76B1C 100%)':'-webkit-linear-gradient(270deg, #f4f6f8 0%, #ccc 100%)')+';'}}"></view></block></view></view><view class="f-icontext c-caption">{{item.create_time}}</view></view><view class="flex-warp mt-sm"><block wx:for="{{item.lable_text}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="pt-sm pb-sm pl-md pr-md mt-sm mr-sm radius fill-body f-caption c-desc">{{item}}</view></block></view><view class="f-caption c-caption mt-md"><text style="word-break:break-all;" decode="emsp">{{item.text}}</text></view></view></view></block></block></block></scroll-view><block wx:if="{{$root.g2}}"><view style="margin:0 100rpx;"><abnor vue-id="{{('0d05000d-7')+','+('0d05000d-6')}}" bind:__l="__l"></abnor></view></block><block wx:if="{{showType=='message'&&commentList.last_page>1}}"><block><view class="space-lg b-1px-t"></view><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="more-btn flex-center f-paragraph c-base radius" style="{{'width:300rpx;height:80rpx;margin:0 auto;'+('background:'+(primaryColor)+';')}}" catchtap="__e">查看更多</view><view class="space-lg"></view></block></block><block wx:if="{{$root.g3}}"><view class="space-safe"></view></block></view></block></uni-popup><view class="space-max-footer"></view><fix-bottom-button vue-id="0d05000d-8" text="{{[{type:'confirm',text:'返回上页'}]}}" bgColor="#fff" data-event-opts="{{[['^confirm',[['e3']]]]}}" bind:confirm="__e" bind:__l="__l"></fix-bottom-button></view> |