mine.wxml
9.6 KB
<view class="content"><view class="topbox"><view class="top"><image src="../../static/topimg.png" mode></image><view class="topboxitem"><view class="topboxitemtop "><view class="topboxitemtopleft flexone"><view class="touimg"><block wx:if="{{token!=''}}"><image src="{{avatarUrl}}" mode="widthFix"></image></block><block wx:else><image src="../../static/changehead.png" mode="widthFix"></image></block></view><view class="top_right"><block wx:if="{{token==''}}"><view data-event-opts="{{[['tap',[['toLogin']]]]}}" class="username" bindtap="__e">用户登录</view></block><block wx:else><view class="username">{{userName}}</view></block><block wx:if="{{token!=''}}"><view class="bing_phone layout_row"><view class="bind_content"><view>{{phone==''?'立即绑定手机号':phone}}</view><block wx:if="{{phone==''}}"><button class="bind_btn" open-type="getPhoneNumber" data-event-opts="{{[['getphonenumber',[['getPhoneNumber',['$event']]]]]}}" bindgetphonenumber="__e"></button></block></view><image src="../../static/yourow.png" mode="widthFix"></image></view></block><block wx:else><view data-event-opts="{{[['tap',[['touserLogin']]]]}}" class="bing_phone layout_row" bindtap="__e"><view class="bind_content"><view>{{phone==''?'立即绑定手机号':phone}}</view></view></view></block></view></view><block wx:if="{{token!=''}}"><view data-event-opts="{{[['tap',[['edit',['$event']]]]]}}" class="editimg" bindtap="__e"><image src="../../static/edit.png" mode></image></view></block></view></view><view class="boxbottom flextwo"><view class="boxbottomleft"><view class="rankname">{{industryName!=''?industryName:"暂无行业"}}</view><view class="rankkname">行业</view></view><view class="boxbottomleft"><view class="rankname">{{occupationName!=''?occupationName:"暂无职业"}}</view><view class="rankkname">职业</view></view></view></view></view><view class="myrecord flexone"><view class="recordleft"><image src="../../static/theme.png" mode></image></view><view class="recordright">我的记录</view></view><block wx:if="{{token==''}}"><view class="theme_comment nocomment"><view class="norecordimg"><image src="../../static/norecord.png" mode></image></view><view class="notext"><view class="notexttop">您当前未登录账户,无法获取更多内容</view><view class="notexttop notextbot">请登录后方可进行操作</view></view></view></block><block wx:else><view class="commentlist"><block wx:if="{{showrecordlist}}"><view class="nodata">暂无打卡记录</view></block><block wx:else><block><block wx:for="{{recordList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="theme_comment"><view class="comment_single"><view class="single_course"><view class="flextwo"><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="people_r" data-item="{{item}}" data-event-opts="{{[['tap',[['changeclock',['$0'],[[['recordList','',index]]]]]]]}}" bindtap="__e">修改</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="layer_star no_icon_single"><view class="ganwu" style="display:flex;"><view>感悟:</view><view><text selectable="true">{{item.content}}</text></view></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"><view class="layer_star no_icon_single">{{''+itemsec.title+":"+itemsec.score+''}}</view></block><view data-event-opts="{{[['tap',[['circle',['$0'],[[['recordList','',index,'course_id']]]]]]]}}" class="quxian" bindtap="__e">查看打卡分数记录曲线图</view><view class="layer_noend"><view class="set flexone"><view data-event-opts="{{[['tap',[['deleteRecord',['$0'],[[['recordList','',index]]]]]]]}}" class="deltet flexone deleteset" bindtap="__e"><view class="deleteimg"><image src="../../static/delete.png" mode></image></view><view class="deletename">删除</view></view><view data-event-opts="{{[['tap',[['changePrivacy',['$0'],[[['recordList','',index]]]]]]]}}" bindtap="__e"><block wx:if="{{item.is_privacy==2}}"><view class="deltet flexone clockyin"><view class="deleteimg"><image src="../../static/colco.png" mode></image></view><view class="deletename">设为隐私</view></view></block><block wx:else><view class="deltet flexone clockyin"><view class="deleteimg"><image src="../../static/jucolock.png" mode></image></view><view class="deletename yisi">已设为隐私</view></view></block></view></view><view class="course_btn justify_between" data-id="{{item.id}}" data-event-opts="{{[['tap',[['comment',['$0'],[[['recordList','',index]]]]]]]}}" bindtap="__e"><image src="../../static/pinglun_icon@2x.png" mode="widthFix"></image>评论</view><view data-event-opts="{{[['tap',[['changePoint',['$0',index],[[['recordList','',index]]]]]]]}}" class="{{['course_btn justify_between',(item.is_praise==1)?'active':'']}}" 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],[[['recordList','',index],['comments','',indexk]]]]]]]}}" bindlongtap="__e"><block wx:if="{{itemone.user2}}"><view data-event-opts="{{[['tap',[['replay',['$0','$1'],[[['recordList','',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'],[[['recordList','',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'],[[['recordList','',index]],[['recordList','',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'],[[['recordList','',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],[[['recordList','',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'],[[['recordList','',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'],[[['recordList','',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></view></block></block></block></view></block><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>