handle.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <view>
  3. <view class="cmain">
  4. <view class="box order_detail" style="padding: 13px">
  5. <u-steps :current="current">
  6. <u-steps-item title="订单确认"></u-steps-item>
  7. <u-steps-item title="互助委托确认"></u-steps-item>
  8. <u-steps-item title="进口申报确"></u-steps-item>
  9. </u-steps>
  10. </view>
  11. <view class="box order_detail">
  12. <view class="item ctt">互助委托书</view>
  13. <view class="item desc">
  14. 边民 杨镇生(身份证号:4509231***12)委托代理边民互市(进口/入境)商品交易(进口/入境)商品交易信息如下:
  15. </view>
  16. <view class="item">
  17. <text class="label">订单编号</text>
  18. <text class="desc omit">45245741587</text>
  19. </view>
  20. <view class="item">
  21. <text class="label">商品名称</text>
  22. <text class="desc">河虾(活体)(沼虾属Macrobrachium)</text>
  23. </view>
  24. <view class="item">
  25. <text class="label">商品金额</text>
  26. <text class="desc">¥ 1000</text>
  27. </view>
  28. <view class="item">
  29. <text class="label">车牌号</text>
  30. <text class="desc">桂A66709</text>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="mfooter">
  35. <view class="flex">
  36. <view class="f">
  37. <button class="btn" @click="ok()">确定</button>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. export default {
  45. data() {
  46. return {
  47. current: 1,
  48. item: {}
  49. };
  50. },
  51. onLoad(e) {
  52. if (e.orderId) {
  53. this.http.request({
  54. url: '/level-two-server/app/TbOrders/getDetailById',
  55. method: 'POST',
  56. data: { ids: this.orderIds },
  57. success: res => {
  58. this.list = res.data.data;
  59. }
  60. });
  61. }
  62. },
  63. methods: {
  64. ok() {
  65. //根据不同的步骤提交不同的url或者状态参数
  66. if (this.current == 0) {
  67. this.item.state = 0;
  68. }
  69. uni.showModal({
  70. title: '提示',
  71. content: '我已核对信息无误',
  72. success: res => {
  73. if (res.confirm) {
  74. this.http.request({
  75. url: '/level-two-server/app/TbOrders/purchaserBuy',
  76. method: 'POST',
  77. data: { id: this.item.id },
  78. success: res => {
  79. //根据返回的状态进入那个步骤
  80. if (res.xxx == 1) {
  81. this.current = 1;
  82. uni.setNavigationBarTitle({
  83. title:'互助委托确认'
  84. })
  85. }
  86. if (res.xxx == 2) {
  87. this.current = 2;
  88. uni.setNavigationBarTitle({
  89. title:'进口申报确认'
  90. })
  91. }
  92. }
  93. });
  94. }
  95. }
  96. });
  97. }
  98. }
  99. };
  100. </script>
  101. <style lang="scss">
  102. page {
  103. background-color: $pg;
  104. }
  105. .ctt{
  106. text-align: center;
  107. font-weight: bold;
  108. }
  109. </style>