recordClock.wxml
6.4 KB
<view class="record_clock"><view class="record_people layer_nostar"><view class="people_l layer_nostar"><view class="touxiang"><image src="{{user.avatar}}" mode data-event-opts="{{[['tap',[['toRecord']]]]}}" bindtap="__e"></image></view><view><view class="people_name">{{user.nickname}}</view><view class="people_progress">{{"已解锁"+unlock_customs_num+"课时"}}</view></view></view></view><view class="record_msg"><block wx:for="{{courselist}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="record_course"><view class="layer_star course_name course_single"><image class="course_icon" src="../../static/icon_01.png" mode></image><view class="coursetitle">{{item.course_title}}</view></view><view class="layer_star course_single"><image class="course_icon" src="../../static/icon_02.png" mode></image><view class="coursetitle">{{item.customs_title}}</view></view><view class="layer_star no_icon_single"><view>{{"学习时间:"+item.createtime}}</view></view><view class="layer_star no_icon_single"><view class="ganwu"><view>感悟:</view><text selectable="true">{{item.content}}</text></view></view><block wx:if="{{item.images!=null}}"><view class=" no_icon_single ganwu"><view style="width:100rpx;"></view><view class="imagebox flexone"><block wx:for="{{item.images}}" wx:for-item="item" wx:for-index="indexk" wx:key="indexk"><view class="iamgeitem" data-url="{{item}}" data-index="{{index}}" data-indexk="{{indexk}}" data-event-opts="{{[['tap',[['preivewimg',['$event']]]]]}}" bindtap="__e"><image src="{{item}}"></image></view></block></view></view></block><block wx:for="{{item.clock_score}}" wx:for-item="itemsec" wx:for-index="index" wx:key="index"><view class="layer_star no_icon_single">{{''+itemsec.title+':'}}<view class="score_picker layer_between">{{itemsec.score}}</view></view></block><view class="layer_noend"><view class="course_btn justify_between" data-id="{{item.id}}" data-event-opts="{{[['tap',[['comment',['$event']]]]]}}" bindtap="__e"><image src="../../static/pinglun_icon@2x.png" mode="widthFix"></image>评论</view><view class="{{['course_btn justify_between',(item.is_praise==1)?'active':'']}}" data-id="{{item.id}}" data-event-opts="{{[['tap',[['changePoint',['$0',index],[[['courselist','',index]]]]]]]}}" bindtap="__e"><image src="{{item.is_praise==1?pointImg2:pointImg1}}" mode="widthFix"></image><block wx:if="{{item.is_praise==1}}"><text>已赞</text></block><block wx:else><text>点赞</text></block></view></view><view class="comment_msg"><view class="point_people layer_nostar"><block wx:if="{{item.praise_user.length!=0}}"><image src="../../static/dianzan_icon@2x.png" mode="widthFix"></image></block><view class="point_detail flex_wrap_no"><block wx:for="{{item.praise_user}}" wx:for-item="itemone" wx:for-index="index" wx:key="index"><view class="namedianzan">{{itemone.user.nickname}}</view></block></view></view><block wx:if="{{item.is_comment==1&&item.showcomment==false}}"><view class="msg_detail"><block wx:for="{{item.comments}}" wx:for-item="itemone" wx:for-index="indexk" wx:key="indexk"><view class="detail_single " data-id="{{itemone.id}}" data-event-opts="{{[['longtap',[['dele',['$0',indexk],[[['courselist','',index],['comments','',indexk]]]]]]]}}" bindlongtap="__e"><block wx:if="{{itemone.user2}}"><view data-event-opts="{{[['tap',[['replay',['$0','$1'],[[['courselist','',index]],'itemnone']]]]]}}" bindtap="__e"><text>{{itemone.user1.nickname}}<text class="huifu">回复</text>{{itemone.user2.nickname}}</text>{{''+itemone.content+''}}<view class="flexone"><block wx:for="{{itemone.images}}" wx:for-item="itemimg" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['viewimg',['$0'],[[['courselist','',index],['comments','',indexk],['images','',index]]]]]]]}}" class="addimg" catchtap="__e"><image class="add_img" src="{{itemimg}}" mode></image></view></block></view></view></block><block wx:else><view data-event-opts="{{[['tap',[['replay',['$0','$1'],[[['courselist','',index]],[['courselist','',index],['comments','',indexk]]]]]]]}}" bindtap="__e"><text>{{itemone.user1.nickname+":"}}</text>{{itemone.content+''}}<view class="flexone"><block wx:for="{{itemone.images}}" wx:for-item="itemimg" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['viewimg',['$0'],[[['courselist','',index],['comments','',indexk],['images','',index]]]]]]]}}" class="addimg" catchtap="__e"><image class="add_img" src="{{itemimg}}" mode></image></view></block></view></view></block></view></block></view></block><block wx:if="{{item.is_comment==1&&item.showcomment==false&&item.is_comment2==1}}"><view class="seemore" data-id="{{item.id}}" data-event-opts="{{[['tap',[['seemore',['$0',index],[[['courselist','',index,'id']]]]]]]}}" bindtap="__e">查看所有评论</view></block><block wx:if="{{item.showcomment==true}}"><view class="msg_detail"><block wx:for="{{commentlist}}" wx:for-item="itemone" wx:for-index="indexk" wx:key="indexk"><view class="detail_single " data-id="{{itemone.id}}" data-event-opts="{{[['longtap',[['del',['$0',indexk],[[['commentlist','',indexk]]]]]]]}}" bindlongtap="__e"><block wx:if="{{itemone.user2}}"><view data-event-opts="{{[['tap',[['replay',['$0','$1'],[[['courselist','',index]],'itemnone']]]]]}}" bindtap="__e"><text>{{itemone.user1.nickname+''}}<text class="huifu">回复</text>{{''+itemone.user2.nickname}}</text>{{''+itemone.content+''}}<view class="flexone"><block wx:for="{{itemone.images}}" wx:for-item="itemimg" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['viewimg',['$0'],[[['commentlist','',indexk],['images','',index]]]]]]]}}" class="addimg" catchtap="__e"><image class="add_img" src="{{itemimg}}" mode></image></view></block></view></view></block><block wx:else><view data-event-opts="{{[['tap',[['replay',['$0','$1'],[[['courselist','',index]],[['commentlist','',indexk]]]]]]]}}" bindtap="__e"><text>{{itemone.user1.nickname+":"}}</text>{{itemone.content+''}}<view class="flexone"><block wx:for="{{itemone.images}}" wx:for-item="itemimg" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['viewimg',['$0'],[[['commentlist','',indexk],['images','',index]]]]]]]}}" class="addimg" catchtap="__e"><image class="add_img" src="{{itemimg}}" mode></image></view></block></view></view></block></view></block></view></block></view></view></block></view><block wx:if="{{showimg}}"><view data-event-opts="{{[['tap',[['hideshowimg',['$event']]]]]}}" class="register" bindtap="__e"><view class="viewimg"><image src="{{imgurl}}" mode="aspectFit"></image></view></view></block></view>