detail.wxml
6.1 KB
<view><view class="topInfoBox flexA"><view class="flexA"><image src="{{itemlist.user.avatar}}" mode="scaleToFill"></image><view class="timeText"><view>{{itemlist.user.user_name}}</view><view>{{itemlist.update_time}}</view></view></view></view><swiper class="swiper" style="height:420rpx;" autoplay="{{true}}" interval="{{3000}}" data-event-opts="{{[['change',[['changeSwiperHandler',['$event']]]]]}}" bindchange="__e"><block wx:for="{{bannerList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="*this"><swiper-item data-event-opts="{{[['tap',[['prevViewImageHandler',['$0'],[[['bannerList','',__i0__]]]]]]]}}" class="flexC" bindtap="__e"><block wx:if="{{item.type=='video'}}"><video style="width:100%;height:100%;" src="{{item.url}}"></video></block><block wx:if="{{item.type=='img'}}"><image src="{{item.url}}" mode="heightFix"></image></block></swiper-item></block></swiper><view class="indicator" slot="indicator"><block wx:for="{{bannerList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['indicator__dot',index===current&&'indicator__dot--active']}}"></view></block></view><view class="mainBox"><view class="titleText">{{itemlist.title}}</view><view class="centerText">{{itemlist.content}}</view></view><view class="mainBox2"><u-divider vue-id="49115082-1" bind:__l="__l"></u-divider><view class="flexJ topBox" style="margin-top:32rpx;"><view class="pingNumText">{{"共"+(total||'0')+"条评论"}}</view><image style="width:32rpx;height:32rpx;" src="/static/toggle.png" mode="scaleToFill" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e"></image><block wx:if="{{rightCate}}"><view class="xia"><view data-event-opts="{{[['tap',[['sortHandler',[0]]]]]}}" class="flexC" bindtap="__e">时间排序</view><view data-event-opts="{{[['tap',[['sortHandler',[1]]]]]}}" class="flexC" bindtap="__e">热度排序</view></view></block></view><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="id"><view class="pingBox"><view class="pTopBox flexJ"><view class="avatarBox flexA"><image src="{{item.$orig.user_avatar}}" mode="scaleToFill"></image><view>{{item.$orig.username}}</view></view><view class="zanBox flexA"><image src="{{item.$orig.is_favorite==0?'/static/zan1.png':'/static/zan11.png'}}" mode="scaleToFill" data-event-opts="{{[['tap',[['getCommentFavorite',['$0',index,'$1'],[[['pingList','id',item.$orig.id,'is_favorite']],[['pingList','id',item.$orig.id,'id']]]]]]]}}" bindtap="__e"></image><view>{{item.$orig.favorite_num}}</view></view></view><view class="contentBox">{{item.$orig.comment}}</view><view class="timeBox flexA"><view>{{item.g0}}</view><view data-event-opts="{{[['tap',[['huiHandler',['$0','$1',index],[[['pingList','id',item.$orig.id,'id']],[['pingList','id',item.$orig.id,'username']]]]]]]}}" class="flexC" bindtap="__e">回复</view></view><block wx:if="{{item.$orig.child.length}}"><view class="hPBox"><block wx:for="{{item.l0}}" wx:for-item="it" wx:for-index="__i1__" wx:key="id"><view><view class="huifu chao"><text class="nameText">{{it.username}}</text><text class="huifuText">回复</text><text class="nameText">{{it.tousername+":"}}</text><text>{{it.comment}}</text></view></view></block><block wx:if="{{item.$orig.child_num>2}}"><view data-event-opts="{{[['tap',[['toPingDetail',['$0'],[[['pingList','id',item.$orig.id,'id']]]]]]]}}" class="flexA huifuText1Box" bindtap="__e"><view class="huifuText1">{{"查看全部"+item.$orig.child_num+"条回复"}}</view><image style="width:16rpx;height:24rpx;" src="/static/blueRIght.png" mode="scaleToFill"></image></view></block></view></block></view></block></view><block wx:if="{{!huiState}}"><view class="bottomBtnBox flexA"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="favoriteBox flexA" bindtap="__e"><image class="xImg" src="/static/xie.png" mode="scaleToFill"></image><view>我来说两句...</view></view><view class="likeBox flexA" style="margin-right:40rpx;"><image src="{{userFavorite_zan=='1'?'/static/zan11.png':'/static/zan1.png'}}" mode="scaleToFill" data-event-opts="{{[['tap',[['favoriteHandler',[1]]]]]}}" bindtap="__e"></image><view>{{zanNum}}</view></view><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="likeBox flexA" style="margin-right:40rpx;" bindtap="__e"><image src="/static/icon1.png" mode="scaleToFill"></image><view>{{total}}</view></view><view class="likeBox flexA"><block wx:if="{{userFavorite_cang=='0'}}"><image src="/static/icon2.png" mode="scaleToFill" data-event-opts="{{[['tap',[['favoriteHandler',[3]]]]]}}" bindtap="__e"></image></block><block wx:else><u-icon vue-id="49115082-2" name="star-fill" color="#6e15ff" size="22" data-event-opts="{{[['^click',[['favoriteHandler',[3]]]]]}}" bind:click="__e" bind:__l="__l"></u-icon></block><view>{{cangNum}}</view></view></view></block><block wx:if="{{huiState}}"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="maskBox flexC" bindtap="__e"><view class="huiBox1"><view data-event-opts="{{[['tap',[['abb',['$event']]]]]}}" class="huiBox flexA" catchtap="__e"><view class="zIndex">{{"回复"+huiName+":"}}</view><view style="margin-left:-84rpx;"><u-search vue-id="49115082-3" searchIconColor="#F7F8FA" placeholder=" " bgColor="#F7F8FA" clearabled="{{false}}" showAction="{{false}}" value="{{huiValue}}" data-event-opts="{{[['^search',[['huifuHandler']]],['^input',[['__set_model',['','huiValue','$event',[]]]]]]}}" bind:search="__e" bind:input="__e" bind:__l="__l"></u-search></view></view></view></view></block><view class="fffBox"></view><u-popup vue-id="49115082-4" show="{{inputState}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="inputBox"><view class="flexJ selectBox"><view data-event-opts="{{[['tap',[['e4',['$event']]]]]}}" bindtap="__e">取消</view><view data-event-opts="{{[['tap',[['pingZHandler',['$event']]]]]}}" bindtap="__e">发送</view></view><u--textarea bind:input="__e" vue-id="{{('49115082-5')+','+('49115082-4')}}" maxlength="300" showConfirmBar="{{false}}" focus="{{true}}" adjustPosition="{{true}}" placeholder="请输入内容" count="{{true}}" value="{{value2}}" data-event-opts="{{[['^input',[['__set_model',['','value2','$event',[]]]]]]}}" bind:__l="__l"></u--textarea></view></u-popup><view style="height:120rpx;"></view></view>