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

<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']]]]]}}" catchtouchmove="__e"><block wx:if="{{showType=='technician'}}"><block><block wx:for="{{serviceList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['list-item','flex-center','pd-lg','fill-base','radius-16',[(index!=0)?'b-1px-t':'']]}}"><image class="avatar lg radius-16" mode="aspectFill" src="{{item.cover}}" data-event-opts="{{[['tap',[['goDetail',[index]]]]]}}" catchtap="__e"></image><view class="flex-1 ml-md"><view data-event-opts="{{[['tap',[['goDetail',[index]]]]]}}" class="f-title c-title max-510 ellipsis" catchtap="__e">{{''+item.title+''}}</view><view class="f-caption c-caption mt-sm mb-sm ellipsis">{{item.total_sale+"人选择"}}</view><view class="flex-between"><view class="flex-y-baseline f-desc c-caption max-350 ellipsis"><block wx:if="{{item.init_price}}"><view class="text-delete mr-sm">{{"¥"+item.init_price+''}}</view></block><view class="f-title c-warning mr-sm">{{"¥"+item.price}}</view>{{"/\n\t\t\t\t\t\t\t\t\t"+item.time_long+'分钟'}}</view><view class="flex-warp"><block wx:if="{{item.num}}"><block><button data-event-opts="{{[['tap',[['changeNum',[-1,index]]]]]}}" class="reduce" style="{{'border-color:'+(primaryColor)+';'+('color:'+(primaryColor)+';')}}" catchtap="__e"><view class="iconfont icon-jian-bold _i"></view></button><button class="addreduce clear-btn">{{item.num||0}}</button></block></block><button data-event-opts="{{[['tap',[['changeNum',[1,index]]]]]}}" class="add" style="{{'background:'+(primaryColor)+';'+('border-color:'+(primaryColor)+';')}}" catchtap="__e"><view class="iconfont icon-jia-bold _i"></view></button></view></view></view></view></block></block></block><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="{{('27866efd-4')+','+('27866efd-3')}}" 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="{{showType=='technician'&&carList.car_count>0}}"><view class="flex-between pd-lg b-1px-t"><view class="flex-center">合计:<view class="f-title c-warning text-bold ml-sm">{{"¥"+carList.car_price+''}}</view></view><view data-event-opts="{{[['tap',[['toOrder',['$event']]]]]}}" class="order-btn flex-center f-desc c-base radius" style="{{'background:'+(primaryColor)+';'}}" catchtap="__e">提交订单</view></view></block><block wx:if="{{$root.g3}}"><view class="space-safe"></view></block></view></block></uni-popup></view>