RefundDeliver.vue 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!-- OrderDetailBody.vue -->
  2. <template><page-meta :root-font-size="fontSize+'px'"></page-meta>
  3. <seller-base :show="false">
  4. <view class="div order-deliver">
  5. <view class="div common-header-wrap">
  6. <view :style="'height:'+navHeight+'px'"></view>
  7. <view class="common-header-holder"></view>
  8. <view class="common-header-fixed">
  9. <title-header />
  10. <uni-nav-bar title="物流跟踪" class="common-header" left-icon="back" @clickLeft="goBack()">
  11. </uni-nav-bar>
  12. </view>
  13. </view>
  14. <view class="div main-content">
  15. <view class="div">
  16. <flex-line :show-border="true"><text class="span line-name">物流公司</text><text class="span" slot="right">{{express_name}}</text></flex-line>
  17. <flex-line :show-border="true"><text class="span line-name">物流单号</text><text class="span" slot="right">{{shipping_code}}</text></flex-line>
  18. </view>
  19. <view class="div mt-5" v-if="deliver_info">
  20. <flex-line v-for="(item,index) in deliver_info" :key="index" :show-border="true"><text class="span line-name">{{item.AcceptTime}}</text><text class="span" slot="right">{{item.AcceptStation}}</text></flex-line>
  21. </view>
  22. </view>
  23. </view>
  24. </seller-base>
  25. </template>
  26. <script>
  27. import {getFontSize} from '@/util/common'
  28. import TitleHeader from '../../TitleHeader'
  29. import SellerBase from '../SellerBase'
  30. import { getRefundDeliver } from '../../../api/sellerRefund'
  31. import flexLine from '../../flexLine'
  32. export default {
  33. name: 'SellerRefundDeliver',
  34. computed:{
  35. fontSize(){
  36. return getFontSize()
  37. },
  38. },
  39. data(){
  40. return {
  41. navHeight: 0,
  42. deliver_info: false,
  43. express_name:'',
  44. shipping_code:''
  45. }
  46. },
  47. components:{TitleHeader,SellerBase,flexLine,},
  48. onLoad: function (option) {
  49. if (option.refund_id) {
  50. getRefundDeliver(option.refund_id).then(res => {
  51. this.deliver_info = res.result.deliver_info
  52. this.express_name=res.result.express_name
  53. this.shipping_code=res.result.shipping_code
  54. }).catch(function (error) {
  55. uni.showToast({icon:'none',title: error.message})
  56. })
  57. }
  58. },
  59. mounted(){
  60. // #ifdef MP-WEIXIN
  61. this.navHeight = uni.getMenuButtonBoundingClientRect().height
  62. // #endif
  63. },
  64. methods:{
  65. goBack(){uni.navigateBack({delta:1})},
  66. }
  67. }
  68. </script>
  69. <style lang="scss" scoped>
  70. .main-content{background: #fff;padding:0 $pageSpace}
  71. </style>