confirm.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view>
  3. <view class="cmain">
  4. <view class="box" style="padding: 12px; margin-top: 0px">
  5. <u-steps :current="0">
  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. <u-divider text="订单信息"></u-divider>
  13. <view class="item" style="padding-top: 0px">
  14. <text class="label">收购商品</text>
  15. <text class="desc">越南榴莲</text>
  16. </view>
  17. <view class="item">
  18. <text class="label">商品编号</text>
  19. <text class="desc">25吨</text>
  20. </view>
  21. <view class="item">
  22. <text class="label">计价单位</text>
  23. <text class="desc">吨</text>
  24. </view>
  25. <view class="item">
  26. <text class="label">商品数量</text>
  27. <text class="desc">35</text>
  28. </view>
  29. <view class="item">
  30. <text class="label">发布时间</text>
  31. <text class="desc">2023-08 15:35</text>
  32. </view>
  33. <view class="item">
  34. <text class="label">订单状态</text>
  35. <text class="desc">待接单</text>
  36. </view>
  37. <view class="item">
  38. <text class="label">接单人</text>
  39. <text class="desc">张三</text>
  40. </view>
  41. <view class="item">
  42. <text class="label">出价金额(必填)</text>
  43. <text class="desc">
  44. <input type="number" placeholder="请输入" />
  45. </text>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="mfooter">
  50. <view class="flex">
  51. <view class="f">
  52. <button class="btn" @click="pay()">确认接单</button>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </template>
  58. <script>
  59. export default {
  60. data() {
  61. return {
  62. item: {}
  63. };
  64. },
  65. onLoad(e) {
  66. if (e.id) {
  67. /* this.http.request({
  68. url: '/level-one-server/app/TbPortNews/getPortNewsDetails',
  69. success: res => {
  70. this.content = res.data.data;
  71. }
  72. }); */
  73. }
  74. },
  75. methods: {
  76. pay() {
  77. uni.showModal({
  78. title: '提示',
  79. content: '我已核对订单信息无误',
  80. success: res => {
  81. if (res.confirm) {
  82. uni.navigateTo({ url: '/pages/market/two/leader/success' });
  83. }
  84. }
  85. });
  86. }
  87. }
  88. };
  89. </script>
  90. <style lang="scss">
  91. page {
  92. background-color: $pg;
  93. }
  94. </style>