You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
1.4 KiB

8 months ago
  1. <template>
  2. <view class="payment-success">
  3. <view class="payment-icon">
  4. <image src="@/static/payment/wchat-payment-icon.png" mode="aspectFit"></image>
  5. <view class="payment-title">支付成功</view>
  6. </view>
  7. <view class="amount-paid">
  8. <view class="amount-title">
  9. 上门服务平台
  10. </view>
  11. <view class="paid">
  12. {{ $route.query.price }}
  13. </view>
  14. </view>
  15. <view @click="toOrderList" class="complete">
  16. 完成
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. }
  25. },
  26. methods: {
  27. toOrderList(){ //跳转订单列表
  28. uni.switchTab ({
  29. url: '/pages/index/order'
  30. })
  31. }
  32. }
  33. }
  34. </script>
  35. <style lang="scss" scoped>
  36. .payment-success{
  37. width: 780rpx;
  38. margin: 0rpx auto;
  39. height: 100vh;
  40. display: flex;
  41. flex-direction: column;
  42. align-items: center;
  43. justify-content: space-around;
  44. image{
  45. width: 150rpx;
  46. height: 150rpx;
  47. margin-bottom: 20rpx;
  48. }
  49. .payment-icon , .amount-paid {
  50. display: flex;
  51. flex-direction: column;
  52. align-items: center;
  53. }
  54. .payment-icon{
  55. margin-top: 60rpx;
  56. .payment-title{
  57. font-size: 44rpx;
  58. color: #19AA16;
  59. }
  60. }
  61. .amount-paid{
  62. .amount-title{
  63. font-size: 36rpx;
  64. }
  65. .paid{
  66. font-size: 90rpx;
  67. margin-top: 20rpx;
  68. }
  69. }
  70. .complete{
  71. width: 400rpx;
  72. height: 80rpx;
  73. line-height: 80rpx;
  74. text-align: center;
  75. border: 1px solid #19AA16;
  76. font-size: 36rpx;
  77. color: #19AA16;
  78. }
  79. }
  80. </style>