courseDetail.wxml 7.8 KB
<view class="course_detail"><view class="checkpoint_wrap layer_between"><block wx:if="{{last_customs!=''}}"><view data-event-opts="{{[['tap',[['prestep',['$event']]]]]}}" class="prev_point" bindtap="__e">上一关</view></block><view class="point_num">{{coursedetail.title}}</view><block wx:if="{{next_customs!=''}}"><view class="prev_point" wx:if="next!=''" data-event-opts="{{[['tap',[['nextstep',['$event']]]]]}}" bindtap="__e">下一关</view></block></view><view class="theme_wrap"><view class="theme_title layer_star"><image src="../../static/theme.png" mode="widthFix"></image><view>{{coursedetail.title}}</view></view><view class="theme_content"><u-parse vue-id="1" content="{{customcontent}}" data-event-opts="{{[['^preview',[['preview']]],['^navigate',[['navigate']]]]}}" bind:preview="__e" bind:navigate="__e" bind:__l="__l"></u-parse></view><block wx:if="{{coursedetail.is_clock==1}}"><view class="point_btn">已打卡</view></block><block wx:else><view data-event-opts="{{[['tap',[['toSubmit']]]]}}" class="point_btn" bindtap="__e">{{coursedetail.course_is_clock==1?'已打卡':'我要打卡'}}</view></block></view><view class="theme_comment"><block wx:for="{{courselist}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{item.is_privacy==2||item.user==true}}"><view class="comment_single"><view class="single_people layer_between"><view class="people_l layer_nostar"><view class="touxiang"><image src="{{item.user.avatar}}" mode data-event-opts="{{[['tap',[['toRecord',['$0'],[[['courselist','',index]]]]]]]}}" bindtap="__e"></image></view><view><view class="people_name">{{item.user.nickname}}</view><view class="people_progress">{{"已解锁"+item.unlock_customs_num+"课时"}}</view></view></view><block wx:if="{{item.isuser==true}}"><view class="people_r" data-item="{{item}}" data-event-opts="{{[['tap',[['changeclock',['$0'],[[['courselist','',index]]]]]]]}}" bindtap="__e">修改</view></block></view><view class="single_course"><view class="layer_star  course_name course_single"><image class="course_icon" src="../../static/icon_01.png" mode></image><view>{{item.course_title}}</view></view><view class="layer_star  course_single"><image class="course_icon" src="../../static/icon_02.png" mode></image><view>{{item.customs_title}}</view></view><view class="layer_star no_icon_single"><view>{{"学习时间:"+item.createtime}}</view></view><view class=" no_icon_single ganwu"><view class="ganwutext">感悟:</view><text selectable="true">{{item.content}}</text></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',['$0'],[[['courselist','',index]]]]]]]}}" 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-customsid="{{item.customs_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}}"><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',[['dele',['$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></view></block></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>