courseComment.wxml
1.5 KB
<view class="course_comment"><view class="comment_content"><textarea placeholder="请输入评论内容,最多1000字" data-event-opts="{{[['input',[['__set_model',['','content','$event',[]]],['entercomment',['$event']]]]]}}" value="{{content}}" bindinput="__e"></textarea><view class="word_num">{{content.length+"/1000"}}</view><block wx:if="{{addpic}}"><view><view data-event-opts="{{[['tap',[['uploadpic',['$event']]]]]}}" class="add_pic layer_star" bindtap="__e"><image src="../../static/tupian_icon@2x.png" mode="widthFix"></image><view class="add_word">添加图片</view></view></view></block><block wx:else><view class="picbox flexone"><view class="flexone"><block wx:for="{{image}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="upload_pic"><image src="{{item}}" mode></image><view data-event-opts="{{[['tap',[['deleteimg',['$0'],[[['image','',index]]]]]]]}}" class="closeimg" bindtap="__e"><image src="../../static/close.png" mode></image></view></view></block></view><view data-event-opts="{{[['tap',[['uploadImg']]]]}}" class="upload_pic" bindtap="__e"><image src="{{img}}" mode="widthFix"></image></view></view></block></view><view data-event-opts="{{[['tap',[['send',['$event']]]]]}}" class="send_wrap" bindtap="__e"><view class="send_box">发送</view></view><block wx:if="{{sendtrue}}"><view class="register"><view class="sendwrap"><view class="sendimg"><image src="/static/img_01.png"></image></view><view class="sendsuccess">发送成功</view></view></view></block></view>