index.wxml 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. <nav type="back" background-color="#46a9a4" title="评论详情" />
  2. <view class="page-section border-trans">
  3. <view class=" page-section-spacing" wx:if="{{order}}">
  4. <view class="order-number order-row text">
  5. <view class="number ">订单号:{{order.orderNum}}</view>
  6. </view>
  7. <view class="order-content" >
  8. <view class="order-shop order-row">
  9. <image class="order-shop-img " src="{{order.images[0]}}" />
  10. <view class="order-shop-text">
  11. <view class="order-shop-name text">{{order.goods.name}}</view>
  12. <view class="order-price red">¥{{order.price}}</view>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="comment-detail">
  18. <comment-list comments="{{[order]}}"></comment-list>
  19. </view>
  20. <view class="reply page-section-spacing text" wx:if="{{order.reply}}">
  21. 商家回复:{{order.reply}}
  22. </view>
  23. </view>
  24. <view class="footer" wx:if="{{!order.reply}}">
  25. <van-button class="btn" size="large" color="#46a9a4" bindtap="showModal" round><text class="black">回复</text></van-button>
  26. </view>
  27. <modal width="90%" height="700rpx" show="{{showReplyModal}}" closeable title="回复评论" bind:close="closeModal" bind:enter="replyComment">
  28. <view slot="content" class="reply-modal">
  29. <textarea name="" id="" cols="30" rows="12" bind:input="replyChange" class="reply-textarea">{{reply}}</textarea>
  30. </view>
  31. </modal>