topicCommentPost.wxml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <view class="container">
  2. <view class="post-comment">
  3. <view class="goods">
  4. <view class="img">
  5. <image src="{{topic.picUrl}}"></image>
  6. </view>
  7. <view class="info">
  8. <view class="t">
  9. <text class="name">{{topic.title}}</text>
  10. </view>
  11. <view class="attr">{{topic.subtitle}}</view>
  12. </view>
  13. </view>
  14. <view class="rater">
  15. <text class="rater-title">评分</text>
  16. <block wx:for="{{stars}}" wx:key="*this" wx:for-item="item">
  17. <van-icon name="star" bindtap="selectRater" color="#ab956d" data-star="{{item}}" wx:if="{{item < star}}"/>
  18. <van-icon name="star-o" bindtap="selectRater" data-star="{{item}}" wx:else/>
  19. </block>
  20. <text class="rater-desc">{{starText}}</text>
  21. </view>
  22. <view class="input-box">
  23. <textarea class="content" focus="true" bindinput="bindInputValue" maxlength="140" placeholder="留言经过筛选后,对所有人可见" />
  24. <text class="count">{{140 - content.length}}</text>
  25. </view>
  26. <view class="weui-uploader">
  27. <view class="weui-uploader__hd">
  28. <view class="weui-uploader__title">图片上传</view>
  29. <view class="weui-uploader__info">{{picUrls.length}}/{{files.length}}</view>
  30. </view>
  31. <view class="weui-uploader__bd">
  32. <view class="weui-uploader__files" id="uploaderFiles">
  33. <block wx:for="{{files}}" wx:key="*this">
  34. <view class="weui-uploader__file" bindtap="previewImage" id="{{item}}">
  35. <image class="weui-uploader__img" src="{{item}}" mode="aspectFill" />
  36. </view>
  37. </block>
  38. <view class="weui-uploader__input-box">
  39. <view class="weui-uploader__input" bindtap="chooseImage"></view>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="btns">
  45. <view class="close" bindtap="onClose">取消</view>
  46. <view class="post" bindtap="onPost">发表</view>
  47. </view>
  48. </view>
  49. </view>