order-detail.wxml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <van-card
  2. price="{{ orderInfo.amount }}"
  3. title="{{ orderInfo.name }}"
  4. thumb="{{ orderInfo.pic }}"
  5. centered
  6. />
  7. <van-cell title="订单号" value="{{ orderInfo.orderNumber }}" />
  8. <van-cell title="回收价格" value="{{ orderInfo.amountRecycle }}" />
  9. <van-cell wx:if="{{ orderInfo.score }}" title="回收积分" value="{{ orderInfo.score }}" />
  10. <van-cell wx:if="{{ orderInfo.remark }}" title="备注" value="{{ orderInfo.remark }}" />
  11. <van-cell title="状态" value="{{ orderInfo.statusStr }}" value-class="statusStr" />
  12. <van-cell title="申请时间" value="{{ orderInfo.dateAdd }}" />
  13. <van-cell wx:if="{{ orderInfo.dateUpdate }}" title="更新时间" value="{{ orderInfo.dateUpdate }}" />
  14. <van-cell-group title="回收点">
  15. <van-cell title="回收方式" value="{{ orderInfo.logisticsType == 0 ? '自己货物送至回收点' : '快递至回收点' }}" />
  16. <van-cell wx:if="{{shopInfodetail}}" title="联系人" value="{{shopInfodetail.info.linkMan}}" />
  17. <van-cell wx:if="{{shopInfodetail}}" title="电话" value="{{shopInfodetail.info.linkPhone}}" is-link bind:click="callMobile" />
  18. <van-cell wx:if="{{shopInfodetail}}" title="地址" title-width="64rpx" value="{{shopInfodetail.info.address}}" is-link bind:click="goMap" />
  19. </van-cell-group>
  20. <van-cell-group wx:if="{{ orderInfo.logisticsType == 1 && (orderInfo.status == 2 || orderInfo.status == 3) }}" title="快递信息">
  21. <van-cell title="快递公司" value="{{orderInfo.shipperName}}" />
  22. <van-cell title="快递单号" value="{{orderInfo.trackingNumber}}" />
  23. </van-cell-group>
  24. <view wx:if="{{ orderInfo.logisticsType == 0}}" class="hx-qrcode">
  25. <view class="t">核销码</view>
  26. <view class="t2">工作人员扫描该码完成回收</view>
  27. <canvas class="hx-canvas" canvas-id="qrcode" />
  28. </view>
  29. <view wx:if="{{ orderInfo.logisticsType == 1 && (orderInfo.status == 1 || orderInfo.status == 2) }}" class="btn">
  30. <van-button type="primary" block bind:click="fahuo">填写快递信息</van-button>
  31. </view>
  32. <van-popup show="{{ popupShow }}" position="bottom" round bind:close="popupClose" custom-style="padding-top:32rpx;">
  33. <van-field label="快递公司" model:value="{{ shipperName }}" placeholder="填写快递公司" clearable />
  34. <van-field label="快递单号" model:value="{{ trackingNumber }}" placeholder="填写快递单号" clearable use-button-slot>
  35. <van-icon slot="button" name="scan" size="48rpx" color="green" bind:click="trackingNumberScan" />
  36. </van-field>
  37. <view class="submit-btn-box">
  38. <van-button type="primary" block loading="{{submitButtonLoading}}" bind:click="submit">确认</van-button>
  39. </view>
  40. </van-popup>