WriteOffResults.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <template>
  2. <view class="page" :style="{'min-height':h+'px','padding-top':(mt)+'px'}">
  3. <c-nav-bar title="核销结果" showIcon="true" :titleStyle="titleStyle"></c-nav-bar>
  4. <view class="result">
  5. <image src="https://i.ringzle.com/file/20240319/331e202150fa4f328b8441db8dc0415e.png" mode="aspectFill">
  6. </image>
  7. <text>核销成功</text>
  8. <view>¥<span>{{price}}</span></view>
  9. </view>
  10. <view class="btns">
  11. <!-- <view @tap="toDetails">订单详情</view> -->
  12. <view @tap="toReturnHome">返回首页</view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. name: 'payResult',
  19. data() {
  20. return {
  21. price: '',
  22. orderId: '',
  23. titles: '安全收银台',
  24. h: uni.getSystemInfoSync().windowHeight,
  25. mt: uni.getSystemInfoSync().statusBarHeight + 44,
  26. }
  27. },
  28. onLoad(option) {
  29. this.price = option.price;
  30. },
  31. methods: {
  32. // toDetails() {
  33. // console.log(this.orderId);
  34. // uni.navigateTo({
  35. // url: '/pagesTrip/hotel/orderDetails/index?orderId=' + this.orderId
  36. // })
  37. // },
  38. toReturnHome() {
  39. uni.navigateTo({
  40. url: '/pagesMy/orderList/orderList'
  41. })
  42. }
  43. }
  44. }
  45. </script>
  46. <style scoped lang="less">
  47. .page {
  48. padding: 64rpx 40rpx;
  49. .result {
  50. padding-top: 50rpx;
  51. display: flex;
  52. flex-direction: column;
  53. align-items: center;
  54. image {
  55. width: 320rpx;
  56. height: 200rpx;
  57. }
  58. &>text {
  59. font-size: 32rpx;
  60. font-family: PingFang-SC-Bold, PingFang-SC;
  61. font-weight: bold;
  62. color: #111111;
  63. margin-top: 20rpx;
  64. }
  65. &>view {
  66. font-size: 36rpx;
  67. font-family: ArialMT;
  68. color: #333333;
  69. margin-top: 20rpx;
  70. span {
  71. font-size: 48rpx;
  72. font-family: Arial-BoldMT, Arial;
  73. font-weight: BoldMT;
  74. color: #333333;
  75. }
  76. }
  77. }
  78. .btns {
  79. display: flex;
  80. align-items: center;
  81. justify-content: space-between;
  82. margin-top: 268rpx;
  83. &>view {
  84. width: 100%;
  85. height: 88rpx;
  86. border-radius: 46rpx;
  87. // border: 2rpx solid #CCCCCC;
  88. background-color: #1372FF;
  89. line-height: 88rpx;
  90. text-align: center;
  91. font-size: 32rpx;
  92. font-family: PingFangSC-Regular, PingFang SC;
  93. font-weight: 400;
  94. color: #FFFFFF;
  95. // &:last-child {
  96. // border: 2rpx solid #007A69;
  97. // color: #007A69;
  98. // }
  99. }
  100. }
  101. }
  102. </style>