index.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <!-- 下单结果页面 -->
  3. <view class="content">
  4. <image :src="getFileUrl('img/icon/success.png')" mode="widthFix" class="result-img"></image>
  5. <view class="result-title">下单成功</view>
  6. <view class="result-desc">您的菜马上就来,坐等开吃</view>
  7. <view class="result-btns">
  8. <view class="result-btn1" hover-class="hover-active" @click="handleGoAddFood">去加餐</view>
  9. <view class="result-btn2" hover-class="hover-active" @click="handleGoSettle">去结算</view>
  10. </view>
  11. </view>
  12. </template>
  13. <script setup>
  14. import { onLoad } from "@dcloudio/uni-app";
  15. import { ref } from "vue";
  16. import { go } from "@/utils/utils.js";
  17. import { getFileUrl } from "@/utils/file.js";
  18. const handleGoAddFood = () => {
  19. go('/pages/orderFood/index');
  20. };
  21. const handleGoSettle = () => {
  22. go('/pages/placeOrder/index?payType=confirmPay');
  23. };
  24. onLoad((e) => {
  25. });
  26. </script>
  27. <style lang="scss" scoped>
  28. .content {
  29. background-color: #fff;
  30. width: 100%;
  31. height: 100vh;
  32. overflow: hidden;
  33. text-align: center;
  34. }
  35. .result-img {
  36. width: 84rpx;
  37. height: 84rpx;
  38. margin-top: 64rpx;
  39. }
  40. .result-title {
  41. font-weight: bold;
  42. font-size: 34rpx;
  43. color: #151515;
  44. margin-top: 30rpx;
  45. }
  46. .result-desc {
  47. font-size: 30rpx;
  48. color: #666666;
  49. margin-top: 10rpx;
  50. margin-top: 40rpx;
  51. }
  52. .result-btns {
  53. display: flex;
  54. justify-content: space-around;
  55. align-items: center;
  56. margin-top: 40rpx;
  57. width: 100%;
  58. margin-top: 52rpx;
  59. padding: 0 60rpx;
  60. .result-btn1 {
  61. width: 252rpx;
  62. height: 80rpx;
  63. box-shadow: 0rpx -11rpx 46rpx 0rpx rgba(86, 125, 244, 0.05);
  64. border-radius: 19rpx 19rpx 19rpx 19rpx;
  65. border: 2rpx solid #F47D1F;
  66. font-weight: bold;
  67. font-size: 27rpx;
  68. color: #F47D1F;
  69. display: flex;
  70. align-items: center;
  71. justify-content: center;
  72. }
  73. .result-btn2 {
  74. width: 252rpx;
  75. height: 80rpx;
  76. background: linear-gradient(90deg, #FCB73F 0%, #FC743D 100%);
  77. box-shadow: 0rpx -11rpx 46rpx 0rpx rgba(86, 125, 244, 0.05);
  78. border-radius: 19rpx 19rpx 19rpx 19rpx;
  79. font-weight: bold;
  80. font-size: 27rpx;
  81. color: #FFFFFF;
  82. display: flex;
  83. align-items: center;
  84. justify-content: center;
  85. }
  86. }
  87. </style>