outcome.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <view class="page">
  3. <view class="result">
  4. <view class="image">
  5. <image src="https://i.ringzle.com/file/20240225/1667bc4cf6fa41b48a0ad18ffe1aa7c2.png" mode="aspectFill">
  6. </image>
  7. </view>
  8. <text>核销成功</text>
  9. <view>¥<span>{{list.totalPrice}}</span></view>
  10. </view>
  11. <view class="btns">
  12. <view @tap="toDetails">查看账单 </view>
  13. <view @tap="toReturnHome">返回首页</view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. name: 'payResult',
  20. data() {
  21. return {
  22. list: {}
  23. }
  24. },
  25. onLoad(option) {
  26. // 从本地缓存中获取数据
  27. this.list = uni.getStorageSync('list');
  28. },
  29. methods: {
  30. toDetails() {
  31. console.log(this.orderId);
  32. uni.navigateTo({
  33. url: '/pagesHouse/home/bill'
  34. })
  35. },
  36. toReturnHome() {
  37. uni.reLaunch({
  38. url: '/pagesHouse/home/index'
  39. })
  40. }
  41. }
  42. }
  43. </script>
  44. <style scoped lang="less">
  45. .page {
  46. padding: 64rpx 40rpx;
  47. .result {
  48. padding-top: 50rpx;
  49. display: flex;
  50. flex-direction: column;
  51. align-items: center;
  52. .image {
  53. width: 320rpx;
  54. height: 200rpx;
  55. image {
  56. width: 100%;
  57. height: 100%;
  58. }
  59. }
  60. &>text {
  61. font-size: 32rpx;
  62. font-family: PingFang-SC-Bold, PingFang-SC;
  63. font-weight: bold;
  64. color: #111111;
  65. margin-top: 20rpx;
  66. }
  67. &>view {
  68. font-size: 36rpx;
  69. font-family: ArialMT;
  70. color: #333333;
  71. margin-top: 20rpx;
  72. span {
  73. font-size: 48rpx;
  74. font-family: Arial-BoldMT, Arial;
  75. font-weight: BoldMT;
  76. color: #333333;
  77. }
  78. }
  79. }
  80. .btns {
  81. display: flex;
  82. align-items: center;
  83. justify-content: space-between;
  84. margin-top: 268rpx;
  85. &>view {
  86. &:last-child {}
  87. }
  88. :nth-child(1) {
  89. width: calc(50% - 22rpx);
  90. height: 88rpx;
  91. border-radius: 46rpx;
  92. line-height: 88rpx;
  93. text-align: center;
  94. font-size: 32rpx;
  95. font-family: PingFangSC-Regular, PingFang SC;
  96. color: #fff;
  97. background-color: #007A69;
  98. }
  99. :nth-child(2) {
  100. width: calc(50% - 22rpx);
  101. height: 88rpx;
  102. border-radius: 46rpx;
  103. border: 2rpx solid #007A69;
  104. line-height: 88rpx;
  105. text-align: center;
  106. font-size: 32rpx;
  107. font-family: PingFangSC-Regular, PingFang SC;
  108. font-weight: 400;
  109. color: #007A69;
  110. }
  111. }
  112. }
  113. </style>