outcome.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. uni.navigateTo({
  32. url: '/pagesHouse/home/bill'
  33. })
  34. },
  35. toReturnHome() {
  36. uni.reLaunch({
  37. url: '/pagesHouse/home/index'
  38. })
  39. }
  40. }
  41. }
  42. </script>
  43. <style scoped lang="less">
  44. .page {
  45. padding: 64rpx 40rpx;
  46. .result {
  47. padding-top: 50rpx;
  48. display: flex;
  49. flex-direction: column;
  50. align-items: center;
  51. .image {
  52. width: 320rpx;
  53. height: 200rpx;
  54. image {
  55. width: 100%;
  56. height: 100%;
  57. }
  58. }
  59. &>text {
  60. font-size: 32rpx;
  61. font-family: PingFang-SC-Bold, PingFang-SC;
  62. font-weight: bold;
  63. color: #111111;
  64. margin-top: 20rpx;
  65. }
  66. &>view {
  67. font-size: 36rpx;
  68. font-family: ArialMT;
  69. color: #333333;
  70. margin-top: 20rpx;
  71. span {
  72. font-size: 48rpx;
  73. font-family: Arial-BoldMT, Arial;
  74. font-weight: BoldMT;
  75. color: #333333;
  76. }
  77. }
  78. }
  79. .btns {
  80. display: flex;
  81. align-items: center;
  82. justify-content: space-between;
  83. margin-top: 268rpx;
  84. &>view {
  85. &:last-child {}
  86. }
  87. :nth-child(1) {
  88. width: calc(50% - 22rpx);
  89. height: 88rpx;
  90. border-radius: 46rpx;
  91. line-height: 88rpx;
  92. text-align: center;
  93. font-size: 32rpx;
  94. font-family: PingFangSC-Regular, PingFang SC;
  95. color: #fff;
  96. background-color: #007A69;
  97. }
  98. :nth-child(2) {
  99. width: calc(50% - 22rpx);
  100. height: 88rpx;
  101. border-radius: 46rpx;
  102. border: 2rpx solid #007A69;
  103. line-height: 88rpx;
  104. text-align: center;
  105. font-size: 32rpx;
  106. font-family: PingFangSC-Regular, PingFang SC;
  107. font-weight: 400;
  108. color: #007A69;
  109. }
  110. }
  111. }
  112. </style>