index.wxml 1.1 KB

1234567891011121314151617181920212223242526
  1. <view wx:if="{{sku}}" 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="{{sku.image}}" />
  6. </view>
  7. <view class="goods-title-container">
  8. <view class="goods-title">{{sku.spu.name}}</view>
  9. <view class="goods-detail">{{sku.spec}}</view>
  10. </view>
  11. </view>
  12. <view class="rate-container">
  13. <text class="rate-title">商品评价</text>
  14. <view class="rate">
  15. <t-rate value="{{goodRateValue}}" bind:change="onRateChange" size="26" gap="6" color="{{['#ffc51c', '#ddd']}}" data-item="goodRateValue" />
  16. </view>
  17. </view>
  18. <view class="textarea-container">
  19. <t-textarea t-class="textarea" maxlength="{{500}}" indicator placeholder="对商品满意吗?评论一下" bind:change="onTextAreaChange" />
  20. </view>
  21. </view>
  22. </view>
  23. <view class="submit-button-container">
  24. <t-button content="提交" block shape="round" t-class="submit-button{{isAllowedSubmit ? '' : '-disabled'}}" bind:tap="onSubmitBtnClick" />
  25. </view>
  26. <t-toast id="t-toast" />