comfirm-order-success.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <view class="comfirm-order-success">
  3. <image class="ok" src="../../static/icon/ok.png"></image>
  4. <text class="t1">提交成功</text>
  5. <text class="t2">订单编号:{{ order_num }}</text>
  6. <text class="t3">应付金额:¥{{ money }}</text>
  7. <view class="btn">
  8. <view class="big-btn" @click="back">查看订单</view>
  9. <!-- <navigator open-type="navigateBack" class="big-btn">返回</navigator> -->
  10. <!-- <navigator :url="'../pay-order/pay-order?fromS=1&order_id=' + order_id + '&money=' + money + '&order_num=' + order_num" class="big-btn bg">付款</navigator> -->
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. order_num: '',
  19. money: '',
  20. order_id: ''
  21. }
  22. },
  23. onLoad({
  24. order_num,
  25. money,
  26. order_id
  27. }) {
  28. this.order_num = order_num
  29. this.order_id = order_id
  30. this.money = money
  31. },
  32. methods: {
  33. back() {
  34. uni.redirectTo({
  35. url: '../my-order/my-order'
  36. })
  37. }
  38. }
  39. }
  40. </script>
  41. <style lang="scss">
  42. .comfirm-order-success {
  43. @include flex(column);
  44. height: 100vh;
  45. background: $app-base-bg;
  46. justify-content: flex-start;
  47. image {
  48. width: 176rpx;
  49. height: 176rpx;
  50. margin-top: 136rpx;
  51. }
  52. .t1 {
  53. font-size: 48rpx;
  54. margin-top: 63rpx;
  55. }
  56. .t2,
  57. .t3 {
  58. color: #858585;
  59. font-size: 32rpx;
  60. margin-top: 30rpx;
  61. }
  62. .btn {
  63. @include flex();
  64. justify-content: space-between;
  65. margin-top: 177rpx;
  66. height: 80rpx;
  67. width: 630rpx;
  68. navigator,
  69. view {
  70. width: 280rpx;
  71. font-size: 34rpx;
  72. }
  73. }
  74. }
  75. </style>