service.wxml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <!--pages/my/service/service.wxml-->
  2. <view class="service-detail-container">
  3. <view class="header">
  4. <block wx:if="{{detail.groupWay == 1}}">
  5. <view class="title">
  6. <text class="label">拼团方式:<text class="text">拼团</text></text>
  7. <text class="label">拼团人数:<text class="text">{{groupList.length}}/{{detail.groupNumberPeople}}</text></text>
  8. </view>
  9. <view class="photo">
  10. <view class="img-box" wx:for="{{groupList}}" wx:key="{{item.memberId}}">
  11. <image class="img {{index == 0 ? 'first-img' : ''}}" src="{{item.headPortrait}}"></image>
  12. </view>
  13. </view>
  14. </block>
  15. <text wx:else class=" groupWay">拼团方式:<text class="text">1v1</text></text>
  16. </view>
  17. <view class="gary"></view>
  18. <view class="detail">
  19. <view class="title">请教流程</view>
  20. <view class="label tip">
  21. <text class="label-text">预约话题:</text>
  22. <text>#{{detail.topicName}}</text>
  23. </view>
  24. <view class="label">
  25. <text class="label-text">原价:</text>
  26. <text class="price">¥<text class="num">{{detail.meetPrice}}</text>元</text>
  27. </view>
  28. <view class="label">
  29. <text class="label-text">预约方式:</text>
  30. <text>{{detail.type == 0 ? '线下请教' : ''}}</text>
  31. </view>
  32. <view class="label">
  33. <text class="label-text">约见场地:</text>
  34. <text>{{detail.storeEntity.locationDescription}}</text>
  35. </view>
  36. <view class="label">
  37. <text class="label-text">预约时间:</text>
  38. <text>{{detail.meetTime}}</text>
  39. </view>
  40. <view class="label">
  41. <text class="label-text">预约内容:</text>
  42. <text>{{detail.content}}</text>
  43. </view>
  44. <view class="label">
  45. <text class="label-text">订单编号:</text>
  46. <text>{{detail.orderNumber}}</text>
  47. </view>
  48. <view class="label">
  49. <text class="label-text">订单时间:</text>
  50. <text>{{detail.payTime}}</text>
  51. </view>
  52. <view class="label">
  53. <text class="label-text">订单状态:</text>
  54. <text wx:if="{{detail.process == 0 || detail.process == 1}}">待处理</text>
  55. <text wx:if="{{detail.process == -1}}">已拒绝</text>
  56. <text wx:if="{{detail.process == 2}}">处理中</text>
  57. <text wx:if="{{detail.process == 3 || detail.process == 4}}">已完成</text>
  58. </view>
  59. <view class="label" wx:if="{{detail.process == 3 || detail.process == 4}}">
  60. <text class="label-text">支付时间:</text>
  61. <text>{{detail.payTime}}</text>
  62. </view>
  63. <block wx:if="{{detail.process == 2 || detail.process == 3 || detail.process == 4}}">
  64. <view class="label">
  65. <text class="label-text">确认时间:</text>
  66. <text>{{detail.verifyTime}}</text>
  67. </view>
  68. <view class="label">
  69. <text class="label-text">完成时间:</text>
  70. <text>{{detail.completeTime}}</text>
  71. </view>
  72. </block>
  73. <block wx:if="{{detail.process == -1}}">
  74. <view class="label">
  75. <text class="label-text">拒绝原因</text>
  76. <text>{{detail.denialReason}}</text>
  77. </view>
  78. <view class="label">
  79. <text class="label-text">拒绝时间:</text>
  80. <text>{{detail.denialTime}}</text>
  81. </view>
  82. </block>
  83. </view>
  84. <block wx:if="{{detail.groupWay == 1 && (detail.process == 3 || detail.process == 4)}}">
  85. <view class="gary"></view>
  86. <view class="share">
  87. <view class="title">心得分享</view>
  88. <view wx:for="{{lsit}}" wx:key="{{item.id}}">
  89. <view class="share-people">
  90. <image class="avater" src="{{item.memberphoto}}"></image>
  91. <text>{{item.vipName}}</text>
  92. <text class="time">{{item.createTime}}</text>
  93. </view>
  94. <view class="share-text">
  95. {{item.content}}
  96. </view>
  97. </view>
  98. </view>
  99. </block>
  100. <view class="footer">
  101. <view class="btn-box" wx:if="{{detail.process == 0 || detail.process == 1 || detail.process == 2}}">
  102. <block wx:if="{{detail.process == 0 || detail.process == 1}}">
  103. <button class="btn" bindtap="agreeHandle">同意请教</button>
  104. <button class="btn other-btn" bindtap="refuseHandle">拒绝请教</button>
  105. </block>
  106. <block wx:if="{{detail.process == 2}}">
  107. <button class="btn" bindtap="contactUser">联系用户</button>
  108. <button class="btn other-btn" bindtap="toCustomer">联系客服</button>
  109. </block>
  110. </view>
  111. <view class="text" wx:if="{{detail.process == -1 || detail.process == 3 || detail.process == 4}}">
  112. <text wx:if="{{detail.process == -1}}">服务已拒绝</text>
  113. <text wx:if="{{detail.process == 3 || detail.process == 4}}">感谢您,服务已完成</text>
  114. </view>
  115. </view>
  116. <view class="contactBox" wx:if="{{isShowContact}}">
  117. <view class="box">
  118. <view class="contactItem" wx:for="{{groupList}}" wx:key="{{item.memberId}}" data-phone="{{item.phone}}" bindtap="contactPhone">
  119. <text>{{item.name || '未知用户'}}</text>
  120. <text>{{item.phone}}</text>
  121. </view>
  122. <view class="gary"></view>
  123. <view class="cancel" bindtap="cancelContact">取消</view>
  124. </view>
  125. </view>
  126. <popup2 id='popup2' title='拒绝原因' content="{{['']}}" btn_no='返回' btn_ok='确定' bind:error="_error" bind:success="_success" data-name="popup">
  127. <view slot="content" style="width: 85%;padding: 44rpx 0 38rpx 0;">
  128. <textarea class="textarea" model:value="{{refuseContent}}" maxlength="50" name="" id="" cols="30" rows="10" placeholder="请输入拒绝原因,50字以内。"></textarea>
  129. </view>
  130. </popup2>
  131. </view>