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

<block wx:if="{{detail.id}}"><view class="dynamic-detail rel"><block wx:if="{{detail.status==2&&detail.coach_info.status===2}}"><block><uni-nav-bar vue-id="01cb00ec-1" fixed="{{true}}" shadow="{{false}}" statusBar="{{true}}" leftIcon="{{options.pid?'iconshouye11':'icon-left'}}" title="{{detail.type==1?'动态详情':' '}}" color="#ffffff" backgroundColor="{{detail.type==1?primaryColor:'none'}}" bind:__l="__l"></uni-nav-bar><block wx:if="{{detail.type==1}}"><view style="{{'height:'+(configInfo.navBarHeight+'px')+';'}}"></view></block><block wx:if="{{detail.type==1}}"><block><view class="banner-info rel"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="menu-info flex-center c-base abs radius" catchtap="__e"><view class="iconfont icon-caidan _i"></view></view><block wx:if="{{$root.g0>0}}"><banner vue-id="01cb00ec-2" list="{{detail.imgs}}" margin="{{0}}" autoplay="{{true}}" indicatorActiveColor="{{primaryColor}}" dotWidth="{{20}}" dotBottom="{{30}}" height="{{654}}" data-event-opts="{{[['^change',[['goBanner']]]]}}" bind:change="__e" bind:__l="__l"></banner></block></view><view class="pd-lg fill-base"><view class="dynamic-info flex-center"><image class="avatar radius" mode="aspectFill" src="{{detail.coach_info.work_img}}"></image><view class="flex-1 ml-md"><view class="flex-between"><view><view class="f-mini-title c-black text-bold max-270 ellipsis">{{''+detail.coach_info.coach_name+''}}</view><view class="flex-y-center f-icontext c-caption mt-sm" style="{{'color:'+(detail.coach_info.work_status==4?'':primaryColor)+';'}}"><view class="{{['iconfont','_i',iconType[detail.coach_info.work_status]]}}" style="font-size:24rpx;margin-right:5rpx;"></view>{{textType[detail.coach_info.work_status]+''}}</view></view><view class="flex-y-center f-caption"><view data-event-opts="{{[['tap',[['getServiceList',['$event']]]]]}}" class="app-follow-btn flex-center radius" style="{{'color:'+(primaryColor)+';'+('border:'+('1rpx solid '+primaryColor)+';')}}" catchtap="__e">预约</view><view data-event-opts="{{[['tap',[['toChangeItem',[1]]]]]}}" class="app-follow-btn flex-center radius ml-md" style="{{'background:'+(detail.follow_status?'linear-gradient(68deg, '+primaryColor+', '+subColor+')':'#fff')+';'+('color:'+(detail.follow_status?'#fff':primaryColor)+';')+('border:'+('1rpx solid '+primaryColor)+';')}}" catchtap="__e"><block wx:if="{{!detail.follow_status}}"><view class="iconfont icon-jia-bold _i"></view></block>{{(detail.follow_status?'已关注':'关注')+''}}</view></view></view></view></view><view class="f-mini-title c-black text-bold mt-lg">{{detail.title}}</view><view class="dynamic-content f-paragraph mt-lg mb-lg"><block wx:if="{{!showText}}"><label class="_span"><label class="_span">{{$root.g1+'...'}}</label><block wx:if="{{detail.have_show_text}}"><label data-event-opts="{{[['tap',[['toShowHide',['showText']]]]]}}" class="pl-md _span" style="{{'color:'+(primaryColor)+';'}}" catchtap="__e">展开<text class="iconfont iconxia ml-sm" style="font-size:24rpx;"></text></label></block></label></block><block wx:if="{{showText}}"><block><view><text style="word-break:break-all;" decode="emsp">{{detail.text}}</text></view><block wx:if="{{detail.have_show_text}}"><label data-event-opts="{{[['tap',[['toShowHide',['showText']]]]]}}" class="mt-sm _span" style="{{'color:'+(primaryColor)+';'}}" catchtap="__e">收起<text class="iconfont iconshang ml-sm" style="font-size:24rpx;"></text></label></block></block></block></view><view class="flex-between"><view class="f-caption c-caption">{{detail.friend_time}}</view><view class="flex-y-center f-desc c-desc"><view class="iconfont iconjuli _i" style="{{'color:'+(primaryColor)+';'}}"></view>{{''+detail.distance+''}}</view></view></view><view class="space-md"></view><view class="comment-list-info pl-lg pr-lg fill-base"><view class="flex-y-center f-mini-title c-title text-bold b-1px-b" style="height:95rpx;">全部评论</view><block wx:if="{{$root.g2==0}}"><view class="no-data-item flex-center mt-lg"><image class="avatar radius" mode="aspectFill" src="https://lbqny.migugu.com/admin/anmo/mine/dynamic-user.png"></image><view class="text flex-1 flex-y-center ml-md pl-lg f-icontext radius">评论千万条, 礼貌第一条</view></view></block><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['longpress',[['toDel',[index]]]]]}}" class="list-item flex-warp pt-lg" bindlongpress="__e"><image class="avatar radius" mode="aspectFill" src="{{item.avatarUrl}}"></image><view class="{{['flex-1','ml-md','pb-lg',[(index!=list.total-1)?'b-1px-b':'']]}}"><view class="flex-between" style="height:72rpx;"><view class="text flex-y-center f-caption"><view class="max-380 ellipsis">{{item.nickName}}</view><block wx:if="{{item.status==1}}"><view class="examine-btn flex-center f-icontext ml-md radius">审核中</view></block></view><view class="f-icontext c-caption">{{item.friend_time}}</view></view><view class="comment f-paragraph mt-sm">{{''+item.text+''}}</view></view></view></block></view><block wx:if="{{loading}}"><load-more vue-id="01cb00ec-3" noMore="{{$root.g3}}" loading="{{loading}}" bind:__l="__l"></load-more></block><view class="space-max-footer"></view></block></block><block wx:if="{{detail.type==2}}"><block><view class="video-box rel"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="menu-info type-video flex-center c-title abs radius" style="{{'top:'+(videoNavHeight)+';'}}" catchtap="__e"><view class="iconfont icon-caidan _i"></view></view><view hidden="{{!(!isPlay&&videoContexts==null)}}" class="video-poster rel"><image class="video-poster" mode="aspectFill" src="{{detail.cover}}"></image><view data-event-opts="{{[['tap',[['playAndPauseVideo',['$event']]]]]}}" class="video-poster flex-center abs" catchtap="__e"><view class="play-video flex-center c-base radius"><view class="iconfont icon-play-video _i"></view></view></view></view><video hidden="{{!(isPlay)}}" class="video_item" id="{{'video_'+detail.id}}" loop="{{false}}" enable-play-gesture="{{true}}" enable-progress-gesture="{{true}}" show-center-play-btn="{{true}}" controls="{{false}}" src="{{detail.imgs[0]}}" object-fit="contain" data-event-opts="{{[['tap',[['playAndPauseVideo',['$event']]]],['play',[['onPlay',['$event']]]],['pause',[['onPause',['$event']]]],['ended',[['onEnded',['$event']]]],['timeupdate',[['onTimeUpdate',['$event']]]],['waiting',[['onWaiting',['$event']]]],['progress',[['onProgress',['$event']]]],['loadedmetadata',[['onLoadedMetaData',['$event']]]]]}}" catchtap="__e" bindplay="__e" bindpause="__e" bindended="__e" bindtimeupdate="__e" bindwaiting="__e" bindprogress="__e" bindloadedmetadata="__e"></video></view></block></block><fixed vue-id="01cb00ec-4" position="bottom" zIndex="994" bind:__l="__l" vue-slots="{{['default']}}"><view class="{{['bottom-info',[(detail.type==1)?'b-1px-t':''],[(detail.type==2)?'type-video':'']]}}"><block wx:if="{{detail.type==2}}"><block><view class="dynamic-info flex-center pd-lg"><image class="avatar radius" mode="aspectFill" src="{{detail.coach_info.work_img}}"></image><view class="flex-1 flex-y-center ml-sm c-base"><view class="f-paragraph text-bold ellipsis" style="{{'max-width:'+(detail.coach_info.is_work?'270rpx':'370rpx')+';'}}">{{''+detail.coach_info.coach_name+''}}</view><view class="flex-y-center f-icontext ml-sm"><view class="{{['iconfont','_i',iconType[detail.coach_info.work_status]]}}" style="font-size:24rpx;margin-right:5rpx;"></view>{{textType[detail.coach_info.work_status]+''}}</view><view class="flex-y-center f-caption"><view data-event-opts="{{[['tap',[['getServiceList',['$event']]]]]}}" class="app-follow-btn flex-center radius ml-sm" catchtap="__e">预约</view><view data-event-opts="{{[['tap',[['toChangeItem',[1]]]]]}}" class="app-follow-btn flex-center radius ml-sm" style="{{'background:'+(detail.follow_status?primaryColor:'')+';'+('border:'+(detail.follow_status?'1rpx solid '+primaryColor:'')+';')}}" catchtap="__e"><block wx:if="{{!detail.follow_status}}"><view class="iconfont icon-jia-bold _i"></view></block>{{(detail.follow_status?'已关注':'关注')+''}}</view></view></view></view><view class="pl-lg pr-lg c-base"><view class="f-mini-title text-bold pb-lg">{{detail.title}}</view><view class="dynamic-content f-paragraph pb-lg"><block wx:if="{{!showText}}"><label class="_span"><label class="c-base _span">{{$root.g4+'...'}}</label><block wx:if="{{detail.have_show_text}}"><label data-event-opts="{{[['tap',[['toShowHide',['showText']]]]]}}" class="pl-md _span" style="{{'color:'+(primaryColor)+';'}}" catchtap="__e">展开<text class="iconfont iconxia ml-sm" style="font-size:24rpx;"></text></label></block></label></block><block wx:if="{{showText}}"><block><view><text class="c-base" style="word-break:break-all;" decode="emsp">{{detail.text}}</text></view><block wx:if="{{detail.have_show_text}}"><label data-event-opts="{{[['tap',[['toShowHide',['showText']]]]]}}" class="mt-sm _span" style="{{'color:'+(primaryColor)+';'}}" catchtap="__e">收起<text class="iconfont iconshang ml-sm" style="font-size:24rpx;"></text></label></block></block></block></view><view class="flex-between pb-lg"><view class="f-caption">{{detail.friend_time}}</view><view class="flex-y-center f-desc"><view class="iconfont iconjuli _i"></view>{{''+detail.distance+''}}</view></view></view></block></block><view class="{{['comment-thumbs-info','flex-between','f-caption','pl-lg','pr-lg',[(detail.type==2)?'fill-black':'']]}}"><view data-event-opts="{{[['tap',[['toChangeItem',[3]]]]]}}" class="input-text flex-y-center radius" catchtap="__e"><view class="iconfont icon-edit ml-md mr-sm _i"></view><input class="input" type="text" placeholder="说点什么..." disabled="{{true}}"/></view><view class="flex-y-center"><view data-event-opts="{{[['tap',[['toChangeItem',[2]]]]]}}" class="thumbs-comment-btn flex-y-center" catchtap="__e"><view class="{{['iconfont','_i',[(!detail.thumbs_status)?'icon-shoucang':''],[(detail.thumbs_status)?'icon-shoucang-fill':'']]}}" style="{{'color:'+(detail.thumbs_status?primaryColor:'')+';'}}"></view>{{''+(!detail.thumbs_num?'点赞':detail.thumbs_num)+''}}</view><view data-event-opts="{{[['tap',[['toChangeItem',[3]]]]]}}" class="thumbs-comment-btn flex-y-center pl-lg" catchtap="__e"><view class="iconfont icon-pinglun _i"></view>{{''+(!detail.comment_num?'评论':detail.comment_num)+''}}</view></view></view><view class="{{['space-safe',[(detail.type==2)?'fill-black':'']]}}"></view></view></fixed></block></block><block wx:else><block><uni-nav-bar vue-id="01cb00ec-5" fixed="{{true}}" shadow="{{false}}" statusBar="{{true}}" leftIcon="{{options.pid?'iconshouye11':'icon-left'}}" title="动态详情" color="#ffffff" backgroundColor="{{primaryColor}}" bind:__l="__l"></uni-nav-bar><view style="{{'height:'+(configInfo.navBarHeight+'px')+';'}}"></view><view><abnor vue-id="01cb00ec-6" tip="{{[{text:detail.status===1?'该动态正在审核中':'该动态不存在',color:0}]}}" bind:__l="__l"></abnor></view></block></block><common-popup class="vue-ref" vue-id="01cb00ec-7" type="DELETE_ORDER" title="删除评论" desc="请确认是否删除评论,删除后将无法恢复" info="{{popupInfo}}" data-ref="del_item" data-event-opts="{{[['^confirm',[['confirmDel']]]]}}" bind:confirm="__e" bind:__l="__l"></common-popup><uni-popup class="vue-ref" vue-id="01cb00ec-8" type="bottom" data-ref="show_item" bind:__l="__l" vue-slots="{{['default']}}"><view class="show-popup pd-lg"><view class="flex-center mb-lg"><image class="avatar radius" mode="aspectFill" src="{{detail.coach_info.work_img}}"></image><view class="flex-1 ml-md f-title c-black">{{detail.coach_info.coach_name}}</view></view><block wx:if="{{!detail.is_shield}}"><view data-event-opts="{{[['tap',[['toChangeItem',[4]]]]]}}" class="show-item flex-center f-paragraph text-bold mt-md radius-16" catchtap="__e">不想看Ta的作品</view></block><button class="clear-btn show-item flex-center f-paragraph text-bold" style="margin-top:20rpx;border-radius:16rpx;" open-type="share">分享该动态</button><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="show-item flex-center f-paragraph text-bold mt-md radius-16" style="{{'color:'+(primaryColor)+';'}}" catchtap="__e">取消</view><view class="space-safe"></view></view></uni-popup><uni-popup class="vue-ref" vue-id="01cb00ec-9" type="bottom" zIndex="{{995}}" data-ref="comment_item" bind:__l="__l" vue-slots="{{['default']}}"><view class="comment-popup fill-base rel"><block wx:if="{{detail.type==2}}"><block><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="iconfont icon-add rotate-45 abs _i" style="z-index:997;" catchtap="__e"></view><view class="flex-center f-mini-title c-title text-bold ml-lg mr-lg pt-lg pb-lg b-1px-b">全部评论</view><scroll-view class="scroll-list" scroll-y="{{true}}" scroll-with-animation="{{true}}" lower-threshold="100" data-event-opts="{{[['scrolltolower',[['scrolltolower',['$event']]]]]}}" bindscrolltolower="__e"><block wx:if="{{$root.g5==0}}"><view class="no-data-item flex-center pd-lg"><image class="avatar radius" mode="aspectFill" src="https://lbqny.migugu.com/admin/anmo/mine/dynamic-user.png"></image><view class="text flex-1 flex-y-center ml-md pl-lg f-icontext radius">评论千万条, 礼貌第一条</view></view></block><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['longpress',[['toDel',[index]]]]]}}" class="list-item flex-warp pt-lg pl-lg pr-lg" bindlongpress="__e"><image class="avatar radius" mode="aspectFill" src="{{item.avatarUrl}}"></image><view class="{{['flex-1','ml-md','pb-lg',[(index!=list.total-1)?'b-1px-b':'']]}}"><view class="flex-between" style="height:72rpx;"><view class="text flex-y-center f-caption"><view class="max-380 ellipsis">{{item.nickName}}</view><block wx:if="{{item.status==1}}"><view class="examine-btn flex-center f-icontext ml-md radius">审核中</view></block></view><view class="f-icontext c-caption">{{item.friend_time}}</view></view><view class="comment f-paragraph mt-sm">{{''+item.text+''}}</view></view></view></block><block wx:if="{{loading}}"><load-more vue-id="{{('01cb00ec-10')+','+('01cb00ec-9')}}" noMore="{{$root.g6}}" loading="{{loading}}" bind:__l="__l"></load-more></block></scroll-view></block></block><view class="{{['comment-thumbs-info','flex-center','pd-lg','f-caption',[(detail.type==2)?'b-1px-t':'']]}}"><view class="input-text flex-y-center radius"><view class="iconfont icon-edit ml-md mr-sm _i"></view><input class="input vue-ref" adjust-position="{{true}}" focus="{{inputFocus}}" maxlength="200" type="text" placeholder="说点什么..." data-ref="elInput" data-event-opts="{{[['blur',[['inputBlur',['$event']]]],['confirm',[['toComment',['$event']]]],['input',[['__set_model',['$0','text','$event',[]],['subForm']]]]]}}" value="{{subForm.text}}" bindblur="__e" bindconfirm="__e" bindinput="__e"/></view></view><view class="space-safe"></view></view></uni-popup><uni-popup class="vue-ref" vue-id="01cb00ec-11" type="bottom" data-ref="technician_item" bind:__l="__l" vue-slots="{{['default']}}"><view class="technician-popup fill-base"><view data-event-opts="{{[['tap',[['toTechnicianInfo',['$event']]]]]}}" class="pd-lg flex-center" catchtap="__e"><image class="item-avatar radius" mode="aspectFill" src="{{detail.coach_info.work_img}}"></image><view class="flex-1 flex-between ml-md"><view class="flex-y-center f-caption c-caption"><view class="f-title c-title text-bold mr-sm max-350 ellipsis">{{''+detail.coach_info.coach_name+''}}</view>{{"从业"+detail.coach_info.work_time+'年'}}</view><view class="flex-y-center f-caption c-caption">更多详情<view class="iconfont icongengduo _i" style="font-size:22rpx;"></view></view></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:for="{{serviceList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['technician-list-item','flex-center','pd-lg','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"+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></scroll-view><block wx:if="{{$root.g7}}"><view style="margin:0 100rpx;"><abnor vue-id="{{('01cb00ec-12')+','+('01cb00ec-11')}}" bind:__l="__l"></abnor></view></block><view class="space-sm fill-body"></view><block wx:if="{{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><view class="space-safe"></view></view></uni-popup></view></block>