commentinfo.wxml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!--pages/commentinfo/commentinfo.wxml-->
  2. <view class="container">
  3. <view class="shop-stars card">
  4. <view class="title">店铺评分</view>
  5. <view class="info">
  6. <view class="star" data-i="1" bindtap="changeShopStars">
  7. <mp-icon icon="star" color="#E15F3D" size="25" type="{{shopStars>0?'filled':'outline'}}"></mp-icon>
  8. </view>
  9. <view class="star" data-i="2" bindtap="changeShopStars">
  10. <mp-icon icon="star" color="#E15F3D" size="25" type="{{shopStars>1?'filled':'outline'}}"></mp-icon>
  11. </view>
  12. <view class="star" data-i="3" bindtap="changeShopStars">
  13. <mp-icon icon="star" color="#E15F3D" size="25" type="{{shopStars>2?'filled':'outline'}}"></mp-icon>
  14. </view>
  15. <view class="star" data-i="4" bindtap="changeShopStars">
  16. <mp-icon icon="star" color="#E15F3D" size="25" type="{{shopStars>3?'filled':'outline'}}"></mp-icon>
  17. </view>
  18. <view class="star" data-i="5" bindtap="changeShopStars">
  19. <mp-icon icon="star" color="#E15F3D" size="25" type="{{shopStars>4?'filled':'outline'}}"></mp-icon>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="product-stars card">
  24. <view class="title">产品评分</view>
  25. <view class="info">
  26. <view class="star" data-i="1" bindtap="changeProductStars">
  27. <mp-icon icon="star" color="#E15F3D" size="25" type="{{productStars>0?'filled':'outline'}}"></mp-icon>
  28. </view>
  29. <view class="star" data-i="2" bindtap="changeProductStars">
  30. <mp-icon icon="star" color="#E15F3D" size="25" type="{{productStars>1?'filled':'outline'}}"></mp-icon>
  31. </view>
  32. <view class="star" data-i="3" bindtap="changeProductStars">
  33. <mp-icon icon="star" color="#E15F3D" size="25" type="{{productStars>2?'filled':'outline'}}"></mp-icon>
  34. </view>
  35. <view class="star" data-i="4" bindtap="changeProductStars">
  36. <mp-icon icon="star" color="#E15F3D" size="25" type="{{productStars>3?'filled':'outline'}}"></mp-icon>
  37. </view>
  38. <view class="star" data-i="5" bindtap="changeProductStars">
  39. <mp-icon icon="star" color="#E15F3D" size="25" type="{{productStars>4?'filled':'outline'}}"></mp-icon>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="comment-text">
  44. <view class="words f14">
  45. <textarea bindblur="setCommenText" style="height: 200rpx;width: {{textWidth}}rpx;" auto-focus="true"
  46. class="comm-text" placeholder="对产品跟服务满意吗?(评论限制{{limitNum}}字以内)" bindinput="changeComment" />
  47. <view class="words-num">
  48. <view class="word {{outLimit?'red':''}}">
  49. {{wordsNum}}
  50. </view>
  51. <view >
  52. /{{limitNum}}
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="comment-img">
  58. <view class="weui-uploader">
  59. <view class="img-v weui-uploader__bd">
  60. <view class='pic' wx:for="{{imgs}}" wx:for-item="item" wx:key="*this">
  61. <image class='weui-uploader__img '
  62. src="{{item}}"
  63. data-index="{{index}}" mode="aspectFill" bindtap="previewImg">
  64. <icon type='cancel' class="delete-btn" data-index="{{index}}" catchtap="deleteImg"></icon>
  65. </image>
  66. </view>
  67. <!-- 用来提示用户上传图片 -->
  68. <view class="weui-uploader__input-box pic" bindtap="chooseImg"> </view>
  69. </view>
  70. <button class="upload-img-btn" bindtap="chooseImg" type='primary'>拍照 / 上传</button>
  71. </view>
  72. </view>
  73. <view class="comment-btn"></view>
  74. </view>