success.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <view class="pay-success-page">
  3. <view class="main">
  4. <view class="section">
  5. <view class="money">¥{{money}}</view>
  6. <image src="@/static/success.png" mode="scaleToFill" class="success-icon" />
  7. <view class="success-text">支付成功</view>
  8. </view>
  9. <view class="button-box">
  10. <view class="button home" @click="goHomePage">返回首页</view>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. name: "pay-success",
  18. data() {
  19. return {
  20. money:0,
  21. };
  22. },
  23. onLoad(e) {
  24. if(e.money){
  25. this.money = e.money;
  26. }
  27. },
  28. methods: {
  29. goHomePage() {
  30. window.location.href = 'https://wap.jhcs888.com'
  31. },
  32. },
  33. };
  34. </script>
  35. <style lang="scss" scoped>
  36. .main {
  37. background-color: #fff;
  38. box-sizing: border-box;
  39. padding-top: 100rpx;
  40. .success-icon {
  41. width: 98rpx;
  42. height: 98rpx;
  43. }
  44. .success-text {
  45. font-size: 34rpx;
  46. margin-top: 14rpx;
  47. font-weight: 500;
  48. }
  49. .money {
  50. margin-top: 24rpx;
  51. margin-bottom: 24rpx;
  52. font-size: 36rpx;
  53. color: #666666;
  54. }
  55. .section {
  56. display: flex;
  57. flex-direction: column;
  58. align-items: center;
  59. padding: 18rpx 0 42rpx 0;
  60. border-bottom: 2rpx dashed #c6c6c6;
  61. }
  62. }
  63. .button-box {
  64. display: flex;
  65. justify-content: center;
  66. padding: 40rpx 176rpx;
  67. .button {
  68. width: 180rpx;
  69. height: 72rpx;
  70. font-size: 28rpx;
  71. border-radius: 72rpx;
  72. text-align: center;
  73. line-height: 72rpx;
  74. &:active {
  75. background-color: rgb(242, 242, 242);
  76. }
  77. }
  78. .home {
  79. border: 2rpx solid #6f6f6f;
  80. }
  81. .order {
  82. border: 2rpx solid #ed301d;
  83. color: #ed301d;
  84. }
  85. }
  86. </style>