prodComm.wxml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <view class="">
  2. <view class="box">
  3. <!-- 内容填写 -->
  4. <view class="item-con">
  5. <textarea placeholder="把使用心得分享给想买的他们吧" value="{{content}}" bindinput="onContentInput" data-index="{{index}}" maxlength="150">{{ content }}</textarea>
  6. <!-- 添加图片 -->
  7. <view class="img-box">
  8. <view class="img-item" wx:for="{{prodCommInfo.pics}}" wx:key="*this" wx:for-index="idx" wx:for-item="imgItem">
  9. <image src="../../images/icon/del.png" data-idx="{{idx}}" bindtap="removeImage" mode="" class="del"/>
  10. <image src="{{imgItem.url}}" mode="aspectFill" class="img" data-idx="{{idx}}" bindtap="comPicPreView"/>
  11. </view>
  12. <view class="upload" bindtap="getUploadImg">
  13. <image src="../../images/icon/photo.png" mode="" class="photo"/>
  14. </view>
  15. </view>
  16. </view>
  17. <!-- 匿名评价 -->
  18. <!-- <view class="img-tip">(最多可上传9张照片)</view> -->
  19. <view class="item-btm">
  20. <checkbox bindtap="onSelectedItem" checked="{{item.isAnonymous == 1}}">匿名评价</checkbox>
  21. <view class="desc">隐藏头像和昵称</view>
  22. </view>
  23. </view>
  24. <view class="box">
  25. <!-- 评价星级 -->
  26. <view class="item-star">
  27. <view class="label">商品评价</view>
  28. <comm-star value="5" type="write" data-key="score" bind:onStarChange="onStarChange"></comm-star>
  29. <view class="num">{{prodCommInfo.score}}.0</view>
  30. </view>
  31. <view class="item-star">
  32. <view class="label">配送打包</view>
  33. <comm-star value="5" type="write" data-key="deliveryPack" bind:onStarChange="onStarChange"></comm-star>
  34. <view class="num">{{prodCommInfo.deliveryPack}}.0</view>
  35. </view>
  36. <view class="item-star">
  37. <view class="label">送货速度</view>
  38. <comm-star value="5" type="write" data-key="deliverySpeed" bind:onStarChange="onStarChange"></comm-star>
  39. <view class="num">{{prodCommInfo.deliverySpeed}}.0</view>
  40. </view>
  41. <view class="item-star">
  42. <view class="label">配送员服务</view>
  43. <comm-star value="5" type="write" data-key="deliveryService" bind:onStarChange="onStarChange"></comm-star>
  44. <view class="num">{{prodCommInfo.deliveryService}}.0</view>
  45. </view>
  46. </view>
  47. <view class="comm-btn" bindtap="submitComm">
  48. 发布
  49. </view>
  50. </view>