index.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <view class="success">
  3. <!-- <view class="bgc"></view> -->
  4. <view class="content">
  5. <!-- <view>
  6. <nav-bar title="none" icon="none" background="transparent" border-color="transparent"></nav-bar>
  7. </view> -->
  8. <view class="sur flex-column aic">
  9. <re-image imgSrc="/retail/mall/img_quancoin.png" width="240" height="240"></re-image>
  10. <view class="texts flex-column">
  11. <text class="suce-text">充值成功</text>
  12. <text>充值账号:{{phone}}</text>
  13. <text>套餐金额:¥{{price}}</text>
  14. <text>购买游戏币:{{gameCurrency}}</text>
  15. <text>充值时间:{{createTime}}</text>
  16. <text>订单号:{{orderNo}}</text>
  17. </view>
  18. <view class="btns">
  19. <u-button class="order" @click="toOrder">查看订单</u-button>
  20. <u-button class="home" @click="toHome">返回首页</u-button>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. data() {
  29. return {
  30. gameCurrency:'',
  31. phone:'',
  32. orderNo:'',
  33. price:'',
  34. createTime:''
  35. }
  36. },
  37. onLoad(params){
  38. this.gameCurrency = params.gameCurrency,
  39. this.price = params.price
  40. this.orderNo = params.orderNo
  41. this.phone = params.phone
  42. this.createTime = params.createTime
  43. },
  44. methods: {
  45. // 返回订单
  46. toOrder() {
  47. uni.redirectTo({
  48. url: '/pages/accountRecharge/index'
  49. })
  50. },
  51. toHome() {
  52. uni.switchTab({
  53. url: '/pages/gallery/index'
  54. })
  55. }
  56. },
  57. }
  58. </script>
  59. <style lang="scss" scoped>
  60. .success {
  61. width: 100%;
  62. position: relative;
  63. display: flex;
  64. flex-direction: column;
  65. height: 100%;
  66. // .bgc {
  67. // position: absolute;
  68. // }
  69. .content {
  70. // z-index: 9;
  71. width: 100%;
  72. height: 100%;
  73. // height: 544rpx;
  74. background: linear-gradient(180deg, #FFF4D6 0%, rgba(255, 251, 193, 0.62) 40%, rgba(255, 221, 202, 0.32) 100%);
  75. padding: 32rpx;
  76. .sur {
  77. height: 100%;
  78. width: 100%;
  79. padding: 56rpx 0 64rpx;
  80. background: #FFFFFF;
  81. border-radius: 24rpx;
  82. .texts {
  83. margin-top: 48rpx;
  84. font-weight: 500;
  85. font-size: 28rpx;
  86. color: #2C2B28;
  87. .suce-text {
  88. font-weight: bold;
  89. font-size: 40rpx;
  90. text-align: center;
  91. margin-bottom: 32rpx;
  92. }
  93. }
  94. .btns {
  95. margin-top: 64rpx;
  96. button {
  97. width: 414rpx;
  98. height: 96rpx;
  99. }
  100. .order {
  101. background: linear-gradient(140deg, #FF8500 0%, #FFA600 100%);
  102. border-radius: 48rpx;
  103. font-weight: bold;
  104. font-size: 40rpx;
  105. color: #FFFFFF;
  106. margin-bottom: 32rpx;
  107. }
  108. .home {
  109. background: #FFFFFF;
  110. border-radius: 48rpx;
  111. border: 2rpx solid #9FA2B2;
  112. font-weight: 500;
  113. font-size: 40rpx;
  114. color: #2C2B28;
  115. }
  116. }
  117. }
  118. }
  119. }
  120. </style>