success.vue 1.5 KB

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