commentPost.wxml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <view class="container">
  2. <view class="post-comment">
  3. <view class="goods">
  4. <view class="img">
  5. <image src="{{orderGoods.picUrl}}"></image>
  6. </view>
  7. <view class="info">
  8. <view class="t">
  9. <text class="name">{{orderGoods.goodsName}} x{{orderGoods.number}}</text>
  10. </view>
  11. <view class="attr">{{orderGoods.goodsSpecificationValues}}</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. <!-- <view class="weui-uploader__file weui-uploader__file_status" bindtap="previewImage" id="{{item}}">
  38. <image class="weui-uploader__img" src="{{item}}" mode="aspectFill" />
  39. <view class="weui-uploader__file-content">50%</view>
  40. </view> -->
  41. </block>
  42. <view class="weui-uploader__input-box">
  43. <view class="weui-uploader__input" bindtap="chooseImage"></view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="btns">
  49. <view class="close" bindtap="onClose">取消</view>
  50. <view class="post" bindtap="onPost">发表</view>
  51. </view>
  52. </view>
  53. </view>