detail.wxml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <view class="container">
  2. <view class="sec-wrap">
  3. <block wx:if="{{orderDetail.logistics}}">
  4. <view class="wuliu-box">
  5. <view class="icon-box">
  6. <image class="icon" src="/images/order-details/icon-wuliu.png"></image>
  7. </view>
  8. <view class="right-text">
  9. <view class="order-number">配送订单:{{orderDetail.logistics.trackingNumber}}</view>
  10. <!-- <view class="wuliu-text">服务地址</view> -->
  11. </view>
  12. </view>
  13. <view class="address-sec" bindtap="goMap">
  14. <view class="icon-box">
  15. <image class="icon" src="/images/order-details/icon-address.png"></image>
  16. </view>
  17. <view class="right-box">
  18. <view class="text">
  19. {{orderDetail.logistics.address}}
  20. <view class="item" wx:for="{{orderDetail.extJson}}" wx:for-index='key' wx:key="index">
  21. <text class="n" style="font-weight:bold;">{{ key }}: </text>
  22. <text class="v">{{ item }}</text>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </block>
  28. </view>
  29. <view class="vant-contaner">
  30. <van-cell-group title="顾客信息">
  31. <van-cell title="姓名" value="{{orderDetail.logistics.linkMan}}" />
  32. <van-cell title="手机" value="{{orderDetail.logistics.mobile}}" bindtap="callMobile2" />
  33. </van-cell-group>
  34. </view>
  35. <view wx:if="{{orderDetail.peisongMember}}" class="vant-contaner">
  36. <van-cell-group title="服务人员">
  37. <van-cell title="姓名" value="{{orderDetail.peisongMember.name}}" />
  38. <van-cell title="手机" value="{{orderDetail.peisongMember.mobile}}" bindtap="callMobile" />
  39. <van-cell wx:if="{{orderDetail.peisongOrderInfo.estimatedCompletionTime}}" title="预计完成时间" value="{{orderDetail.peisongOrderInfo.estimatedCompletionTime}}" />
  40. </van-cell-group>
  41. </view>
  42. <view class="goods-list">
  43. <view class="list-title">服务内容</view>
  44. <form bindsubmit="submitReputation" report-submit="true">
  45. <block wx:for="{{orderDetail.goods}}" wx:key="id">
  46. <navigator url="/pages/goods-details/index?id={{item.goodsId}}">
  47. <view class="a-goods">
  48. <view class="img-box">
  49. <image src="{{item.pic}}" class="img" />
  50. </view>
  51. <view class="text-box">
  52. <view class="arow arow01">
  53. <view class="goods-name">{{item.goodsName}}</view>
  54. <view class="goods-price">¥ {{item.amount}}</view>
  55. </view>
  56. <view class="arow">
  57. <view class="goods-label">{{item.property}}</view>
  58. <view class="goods-num">x {{item.number}}</view>
  59. </view>
  60. </view>
  61. </view>
  62. </navigator>
  63. </block>
  64. </form>
  65. <block wx:if="{{orderDetail.orderInfo.refundStatus == 1}}">
  66. <view class="btn-row">
  67. <van-button type="danger" block disabled>客户已申请退款</van-button>
  68. </view>
  69. </block>
  70. <block wx:else>
  71. <view class="btn-row" wx:if="{{!peisongOrderDetail}}">
  72. <van-field
  73. type="text"
  74. clearable
  75. required
  76. placeholder="填写预计完成时间,如: 12:30"
  77. bind:change="estimatedCompletionTimeChange"
  78. />
  79. <van-button type="primary" block bind:click="peisongOrderGrab">抢单</van-button>
  80. </view>
  81. <view class="btn-row" wx:if="{{peisongOrderDetail.orderInfo.status==1}}">
  82. <picker bindchange="bindPickerChange" value="{{membersSelectIndex}}" range="{{peisongMembers}}" range-key="showStr">
  83. <van-cell title="配送员" is-link value="{{membersSelectStr}}" custom-class="select-peisong-member" />
  84. </picker>
  85. <van-button type="danger" block bind:click="paidan">派单</van-button>
  86. </view>
  87. <view class="btn-row" wx:if="{{peisongOrderDetail.orderInfo.status==2 && peisongOrderDetail.orderInfo.uid == peisongMemberInfo.id && !peisongOrderDetail.orderInfo.estimatedCompletionTime}}">
  88. <van-field
  89. type="text"
  90. clearable
  91. required
  92. placeholder="填写预计完成时间,如: 12:30"
  93. bind:change="estimatedCompletionTimeChange"
  94. />
  95. <van-button type="primary" block bind:click="estimatedCompletionTime">设置预计完成时间</van-button>
  96. </view>
  97. <view class="btn-row" wx:if="{{peisongOrderDetail.orderInfo.status==2 && peisongOrderDetail.orderInfo.uid == peisongMemberInfo.id && peisongOrderDetail.orderInfo.estimatedCompletionTime}}">
  98. <!-- <van-uploader multiple file-list="{{ fileList }}" bind:after-read="afterRead" bind:delete="deletePic" /> -->
  99. <van-button type="primary" block bind:click="startService">开始配送</van-button>
  100. </view>
  101. <view class="btn-row" wx:if="{{peisongOrderDetail.orderInfo.status==3 && peisongOrderDetail.orderInfo.uid == peisongMemberInfo.id}}">
  102. <van-uploader multiple file-list="{{ fileList }}" bind:after-read="afterRead" bind:delete="deletePic" />
  103. <van-button type="danger" block bind:click="endService">配送完成</van-button>
  104. </view>
  105. </block>
  106. </view>
  107. <view class="peisong-way" hidden="true">
  108. <view class="row-box">
  109. <view class="row-label">配送方式</view>
  110. <view class="right-text">顺丰快递</view>
  111. </view>
  112. <view class="row-box">
  113. <view class="row-label">留言</view>
  114. <view class="right-text">
  115. <input name="remark" type="text" class="liuyan" placeholder="如需留言请输入" />
  116. </view>
  117. </view>
  118. </view>
  119. <view wx:if="{{orderDetail.goodsCoupons}}" class="goods-info" style="margin-bottom:32rpx;">
  120. <view wx:for="{{orderDetail.goodsCoupons}}" wx:key="{{item.id}}" class="row-box">
  121. <view wx:if="{{item.type == 0}}" class="row-label">优惠券</view>
  122. <view wx:if="{{item.type == 0}}" class="right-text">{{item.coupon}}</view>
  123. <image mode="widthFix" wx:if="{{item.type == 1}}" src="{{item.coupon}}" style="max-width:100%;"></image>
  124. </view>
  125. </view>
  126. <view class="goods-info">
  127. <view class="row-box">
  128. <view class="row-label">商品金额</view>
  129. <view class="right-text">¥ {{orderDetail.orderInfo.amount}}</view>
  130. </view>
  131. <view class="row-box">
  132. <view class="row-label">配送费</view>
  133. <!-- 运费 -->
  134. <view class="right-text">+ ¥ {{orderDetail.orderInfo.amountLogistics}}</view>
  135. </view>
  136. <view class="row-box">
  137. <view class="row-label">应付总额</view>
  138. <view class="right-text">¥ {{orderDetail.orderInfo.amountReal}}</view>
  139. </view>
  140. </view>
  141. <view class="vant-contaner">
  142. <van-cell-group title="服务记录">
  143. <block wx:for="{{peisongOrderDetail.logs}}" wx:key="id">
  144. <van-cell title="{{item.typeStr}}" value="{{item.dateAdd}}" />
  145. <van-grid wx:if="{{item.type == 3 || item.type == 4}}">
  146. <van-grid-item wx:for="{{item.extJson}}" wx:for-item="picpic" wx:for-index='key' wx:key="*this" use-slot>
  147. <image
  148. style="width: 100%; height: 90px;"
  149. src="{{picpic}}"
  150. mode="aspectFill"
  151. bindtap="previewImage"
  152. data-logid="{{item.id}}"
  153. data-current="{{picpic}}"
  154. />
  155. </van-grid-item>
  156. </van-grid>
  157. </block>
  158. </van-cell-group>
  159. </view>
  160. </view>