orderDetail.wxml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <view class="content">
  2. <view class="item border-radius">
  3. <view class="item-top flex-align-center">
  4. <text class="flex1 ellipsis">{{ detailData.project_name }}</text>
  5. <text style="font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;color: #FF77B0;">{{ status[detailData.status] }}</text>
  6. </view>
  7. <view class="item-text flex-column">
  8. <text>预约客户:{{ detailData.user_name }}</text>
  9. <text>会员信息:{{ detailData.member_info }}</text>
  10. <text>预约时间:{{ detailData.order_time }}</text>
  11. <text>设备:{{ detailData.device_name }}</text>
  12. </view>
  13. <view class="flex-align-center price">
  14. <text>预约费用:</text>
  15. <text style="color: #FF77B0;">¥{{ detailData.order_price }}</text>
  16. </view>
  17. </view>
  18. <view class="item border-radius" style="padding-bottom: 30rpx;">
  19. <view class="item-top flex-align-center">
  20. <text class="flex1">订单信息</text>
  21. </view>
  22. <view class="item-text flex-column">
  23. <text>订单编号:{{ detailData.order_sn }}</text>
  24. <text>下单时间:{{ detailData.create_time }}</text>
  25. <text>支付方式:{{ detailData.pay_way }}</text>
  26. <text>支付时间:{{ detailData.pay_time }}</text>
  27. <view class="copy flex-center" bindtap="onCopyOrderNum" data-num="{{ detailData.order_sn }}">复制</view>
  28. </view>
  29. </view>
  30. <view class="item border-radius" style="padding-top: 30rpx;">
  31. <view class="item-text">
  32. <view class="flex-justify-space-between">
  33. <text>预约费用:</text>
  34. <text style="color: #333333;">¥{{ detailData.order_price }}</text>
  35. </view>
  36. <view class="flex-justify-space-between" wx:if="{{ detailData.discount_type == 2 }}">
  37. <text>优惠券:</text>
  38. <text style="color: #333333;">-¥{{ detailData.discount }}</text>
  39. </view>
  40. <view class="flex-justify-space-between" wx:if="{{ detailData.discount_type == 2 }}">
  41. <text>优惠券类型:</text>
  42. <text style="color: #333333;" >{{ detailData.coupon_type }}</text>
  43. </view>
  44. <view class="flex-justify-space-between">
  45. <text>会员时长抵扣:</text>
  46. <text style="color: #333333;">-¥{{ detailData.discount }}</text>
  47. </view>
  48. <view class="flex-justify-space-between">
  49. <text>会员类型:</text>
  50. <text style="color: #333333;">{{ detailData.member_type }}</text>
  51. </view>
  52. </view>
  53. <view class="flex-align-center price">
  54. <text>合计:</text>
  55. <text style="color: #FF77B0;">¥{{ detailData.total_price }}</text>
  56. </view>
  57. </view>
  58. <view class="list border-radius">
  59. <view class="item-top flex-align-center">
  60. <text class="flex1">反馈记录</text>
  61. <navigator url="/pages/feedback/feedback?orderId={{ id }}&cover={{ detailData.cover_url }}&name={{ detailData.project_name }}&score={{ detailData.score ? true : false }}" hover-class="none" wx:if="{{ detailData.allow_feedback == 1 }}">
  62. <view class="btn flex-center">新增反馈</view>
  63. </navigator>
  64. </view>
  65. <view class="detail rater" style="padding: 0 28rpx 28rpx;border-bottom: 2rpx solid #f2f2f2;" wx:if="{{ detailData && detailData.score }}">
  66. <view class="user-info flex-align-center">
  67. <image src="{{ detailData.score.avatar_url }}"></image>
  68. <view class="info flex-column flex1">
  69. <text style="font-size: 28rpx;margin-bottom: 6rpx;">{{ detailData.score.user_name }}</text>
  70. <text style="font-size: 20rpx;color: #999;">{{ detailData.score.update_time }}</text>
  71. </view>
  72. </view>
  73. <view class="rater-item flex-align-center" style="margin-top: 0;">
  74. <text class="text-01">整体满意度</text>
  75. <wux-rater slot="footer" disabled active-color="#FF77B0" margin="{{ 12 }}" font-size="{{ 18 }}" default-value="{{ detailData.score.score_whole }}" data-index="{{ index }}" bind:change="onChange" />
  76. <text class="text-02">{{ raterStatus[detailData.score.score_whole] }}</text>
  77. </view>
  78. <view class="rater-item flex-align-center" >
  79. <text class="text-01">效果认可度</text>
  80. <wux-rater slot="footer" disabled active-color="#FF77B0" margin="{{ 12 }}" font-size="{{ 18 }}" default-value="{{ detailData.score.score_effect }}" data-index="{{ index }}" bind:change="onChange" />
  81. <text class="text-02">{{ raterStatus[detailData.score.score_effect] }}</text>
  82. </view>
  83. <view class="rater-item flex-align-center" >
  84. <text class="text-01">价格接受度</text>
  85. <wux-rater slot="footer" disabled active-color="#FF77B0" margin="{{ 12 }}" font-size="{{ 18 }}" default-value="{{ detailData.score.score_price }}" data-index="{{ index }}" bind:change="onChange" />
  86. <text class="text-02">{{ raterStatus[detailData.score.score_price] }}</text>
  87. </view>
  88. <view class="rater-item flex-align-center" >
  89. <text class="text-01">类别满意度</text>
  90. <wux-rater slot="footer" disabled active-color="#FF77B0" margin="{{ 12 }}" font-size="{{ 18 }}" default-value="{{ detailData.score.score_kind }}" data-index="{{ index }}" bind:change="onChange" />
  91. <text class="text-02">{{ raterStatus[detailData.score.score_kind] }}</text>
  92. </view>
  93. <view class="rater-item flex-align-center" >
  94. <text class="text-01">安全认可度</text>
  95. <wux-rater slot="footer" disabled active-color="#FF77B0" margin="{{ 12 }}" font-size="{{ 18 }}" default-value="{{detailData.score.score_safe}}" data-index="{{ index }}" bind:change="onChange" />
  96. <text class="text-02">{{ raterStatus[detailData.score.score_safe] }}</text>
  97. </view>
  98. </view>
  99. <view class="item flex-column" wx:for="{{list}}" wx:for-index="idx" wx:key="index">
  100. <view class="user-info flex-align-center">
  101. <image src="{{ item.avatar_url }}"></image>
  102. <view class="info flex-column flex1">
  103. <text style="font-size: 28rpx;margin-bottom: 6rpx;">{{ item.nickname }}</text>
  104. <text style="font-size: 20rpx;color: #999;">{{ item.create_time }}</text>
  105. </view>
  106. <view class="more flex-align-center flex-justify-space-between" data-item="{{ item }}" bindtap="onEditItem" wx:if="{{ item.allow_edit == 1 }}">
  107. <text></text>
  108. <text></text>
  109. <text></text>
  110. </view>
  111. <!-- <view class="more">···</view> -->
  112. </view>
  113. <text style="font-size: 28rpx;color: #666;margin-bottom: 30rpx;">{{ item.content }}</text>
  114. <view class="box" wx:if="{{ item.media_list && item.media_list.length > 0 }}">
  115. <view class="item-media" wx:for="{{ item.media_list }}" wx:key="index">
  116. <block wx:if="{{ item.type == 'video' }}">
  117. <!-- <video src="{{ item.url }}"></video> -->
  118. <!-- <text>视频播放</text> -->
  119. <view class="flex-center" style="font-size: 28rpx;width: 100%;height: 100%;background-color: #ccc;" data-idx="{{ idx }}" data-index="{{index}}" bindtap="previewMedia">
  120. <!-- 这个是视频 -->
  121. <image class="icon-01" src="/images/icon_01.png"></image>
  122. <!-- <text style="position: absolute;">这个是视频</text> -->
  123. <image class="img-content" data-index="{{index}}" src="{{ item.thumb }}" alt=""></image>
  124. </view>
  125. </block>
  126. <block wx:if="{{ item.type == 'image' }}">
  127. <image class="img-content" data-idx="{{ idx }}" data-index="{{index}}" src="{{ item.url }}" alt="" bindtap="previewMedia"></image>
  128. </block>
  129. </view>
  130. <!-- <image src="{{item.url}}" data-index="{{item}}" bindtap="previewImage" wx:for="{{item.media_list}}" wx:key="index"></image> -->
  131. </view>
  132. </view>
  133. <view class="no-more-data" style="display: {{list.length == 0 ? 'block' : 'none'}};">暂无数据~</view>
  134. </view>
  135. <view class="no-more-data" style="display: {{list.length > 0 && list.length >= total ? 'block' : 'none'}};">已经到底啦~~</view>
  136. </view>
  137. <wux-popup class="popup-radius" position="bottom" catchtouchmove="isShow" visible="{{ visible }}" bind:close="onPopupState">
  138. <view class="btn-item flex-center" style="color: #FF77B0;" bindtap="onDelete">删除</view>
  139. <navigator url="/pages/feedback/feedback?orderId={{ currentItem.id }}&cover={{ detailData.cover_url }}&name={{ detailData.project_name }}&edit=true" hover-class="none">
  140. <view class="btn-item flex-center">编辑</view>
  141. </navigator>
  142. <view class="btn-item flex-center" style="color: #999999;" bindtap="onPopupState">取消</view>
  143. </wux-popup>