prodComm.wxml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <view class="container">
  2. <view class="comm-list">
  3. <view class="comm-item" wx:for="{{orderItemInfo}}">
  4. <!-- 商品标题内容 -->
  5. <view class="item-top">
  6. <view class="top-pic">
  7. <image mode="widthFix" src="{{item.pic}}"></image>
  8. </view>
  9. <view class="top-tit" >
  10. {{item.prodName}}
  11. </view>
  12. </view>
  13. <!-- 评价星级 -->
  14. <view class="item-star">
  15. <view>评分</view>
  16. <comm-star value="5" type="write" index="{{index}}" bind:onStarChange="onStarChange"></comm-star>
  17. </view>
  18. <!-- 内容填写 -->
  19. <view class="item-con">
  20. <textarea placeholder="把使用心得分享给想买的他们吧" value="{{content}}" bindinput="onContentInput" data-index="{{index}}" maxlength="500">{{ content }}</textarea>
  21. </view>
  22. <!-- 添加图片 -->
  23. <view class="item-pics">
  24. <!-- 预览缩略图 -->
  25. <view class="question-images">
  26. <block wx:for="{{item.images}}" wx:key="*this" wx:for-index="idx" wx:for-item="imgItem">
  27. <view class="q-image-wrap">
  28. <!-- 图片缩略图 -->
  29. <image class="q-image" src="{{imgItem.url}}" mode="aspectFill" data-index="{{index}}" data-idx="{{idx}}" bindtap="comPicPreView"></image>
  30. <!-- 移除图片的按钮 -->
  31. <view class="q-image-remover" data-idx="{{idx}}" data-index="{{index}}" bindtap="removeImage">删除</view>
  32. </view>
  33. </block>
  34. <!-- 添加 -->
  35. <view class="add-pic" data-idx="{{index}}" bindtap="getUploadImg" wx:if="{{item.images.length < 9}}">+</view>
  36. </view>
  37. <!-- <view class="add-pic" bindtap="getUploadImg">+</view> -->
  38. </view>
  39. <!-- 匿名评价 -->
  40. <view class="img-tip">(最多可上传9张照片)</view>
  41. <view class="item-btm">
  42. <checkbox color="red" data-index="{{index}}" bindtap="onSelectedItem" checked="{{item.isAnonymous == 1}}">匿名评价</checkbox>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="comm-btn" bindtap="submitComm">
  47. 发表评价
  48. </view>
  49. </view>