index.wxml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <view class="page-container">
  2. <view class="comment-card">
  3. <view class="goods-info-container">
  4. <view class="goods-image-container">
  5. <t-image t-class="goods-image" src="{{imgUrl}}" />
  6. </view>
  7. <view class="goods-title-container">
  8. <view class="goods-title">{{title}}</view>
  9. <view class="goods-detail">{{goodsDetail}}</view>
  10. </view>
  11. </view>
  12. <view class="rate-container">
  13. <text class="rate-title">商品评价</text>
  14. <view class="rate">
  15. <t-rate
  16. value="{{goodRateValue}}"
  17. bind:change="onRateChange"
  18. size="26"
  19. gap="6"
  20. color="{{['#ffc51c', '#ddd']}}"
  21. data-item="goodRateValue"
  22. />
  23. </view>
  24. </view>
  25. <view class="textarea-container">
  26. <t-textarea
  27. t-class="textarea"
  28. maxlength="{{500}}"
  29. indicator
  30. placeholder="对商品满意吗?评论一下"
  31. bind:change="onTextAreaChange"
  32. />
  33. </view>
  34. <view class="upload-container">
  35. <t-upload
  36. media-type="{{['image','video']}}"
  37. files="{{uploadFiles}}"
  38. bind:remove="handleRemove"
  39. bind:success="handleSuccess"
  40. gridConfig="{{gridConfig}}"
  41. imageProps="{{imageProps}}"
  42. />
  43. </view>
  44. <view class="anonymous-box">
  45. <t-checkbox bind:change="onAnonymousChange" checked="{{isAnonymous}}" color="#FA4126" />
  46. <view class="name">匿名评价</view>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="comment-card convey-card">
  51. <view class="convey-comment-title">物流服务评价</view>
  52. <view class="rate-container">
  53. <text class="rate-title">物流评价</text>
  54. <view class="rate">
  55. <t-rate
  56. value="{{conveyRateValue}}"
  57. bind:change="onRateChange"
  58. variant="filled"
  59. size="26"
  60. gap="6"
  61. color="{{['#ffc51c', '#ddd']}}"
  62. data-item="conveyRateValue"
  63. />
  64. </view>
  65. </view>
  66. <view class="rate-container">
  67. <text class="rate-title">服务评价</text>
  68. <view class="rate">
  69. <t-rate
  70. value="{{serviceRateValue}}"
  71. bind:change="onRateChange"
  72. size="26"
  73. gap="6"
  74. color="{{['#ffc51c', '#ddd']}}"
  75. data-item="serviceRateValue"
  76. />
  77. </view>
  78. </view>
  79. </view>
  80. <view class="submit-button-container">
  81. <t-button
  82. content="提交"
  83. block
  84. shape="round"
  85. t-class="submit-button{{isAllowedSubmit ? '' : '-disabled'}}"
  86. bind:tap="onSubmitBtnClick"
  87. />
  88. </view>
  89. <t-toast id="t-toast" />