recharge_result.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <template name="rechargeResult">
  2. <view class="container flex_column_between_center">
  3. <view class="top_bg" :style="{backgroundImage: 'url('+imgUrl +'recharge_result_bg.png)'}">
  4. </view>
  5. <view class="top_content flex_column_start_center">
  6. <view class="nav flex_row_center_center">
  7. <text class="iconfont iconziyuan2"></text>
  8. <text class="title">充值结果</text>
  9. </view>
  10. <view class="detail flex_column_start_center">
  11. <image class="result_icon" :src='rechargeData.icon' />
  12. <text class="result">{{rechargeData.title}}</text>
  13. <view v-for="(item,key,index) in rechargeData.detail" :key='index' class="item flex_row_between_center">
  14. <text class="left">{{item.name}}</text>
  15. <text class="right">{{item.value}}</text>
  16. </view>
  17. </view>
  18. </view>
  19. <view v-if="rechargeData.resule=='success'" class="operate flex_row_center_center">
  20. 确认
  21. </view>
  22. <view v-if="rechargeData.resule=='fail'" class="flex_column_end_center">
  23. <view class="operate flex_row_center_center">
  24. 再次充值
  25. </view>
  26. <view class="go_back flex_row_center_center">
  27. 返回
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. name: "rechargeResult",
  35. data() {
  36. return {
  37. imgUrl: getApp().globalData.imgUrl
  38. }
  39. },
  40. props: {
  41. rechargeData: {
  42. type: Object,
  43. value: {}
  44. }
  45. },
  46. onLoad(){
  47. },
  48. methods: {
  49. }
  50. }
  51. </script>
  52. <style lang="scss">
  53. page {
  54. background: $bg-color-split;
  55. .container {
  56. width: 750rpx;
  57. height: 100vh;
  58. .top_bg {
  59. position: absolute;
  60. top: 0;
  61. left: 0;
  62. right: 0;
  63. width: 750rpx;
  64. height: 533rpx;
  65. background-size: contain;
  66. z-index: 0;
  67. }
  68. .top_content {
  69. width: 100%;
  70. .nav {
  71. width: 100%;
  72. padding: 20rpx;
  73. height: 90rpx;
  74. position: relative;
  75. margin-bottom: 40rpx;
  76. .iconfont {
  77. position: absolute;
  78. font-size: 26rpx;
  79. left: 20rpx;
  80. top: 37rpx;
  81. color: #fff;
  82. }
  83. .title {
  84. color: #fff;
  85. font-size: 36rpx;
  86. }
  87. }
  88. .detail {
  89. width: 670rpx;
  90. background: #fff;
  91. box-shadow: 0px 0px 20px 0px rgba(86, 86, 86, 0.15);
  92. border-radius: 10rpx;
  93. z-index: 1;
  94. padding: 30rpx 30rpx 50rpx;
  95. .result_icon {
  96. width: 146rpx;
  97. height: 146rpx;
  98. margin-top: 60rpx;
  99. }
  100. .result {
  101. color: $main-third-color;
  102. font-size: 28rpx;
  103. width: 100%;
  104. text-align: center;
  105. border-bottom: 1rpx solid rgba(0,0,0,.1);
  106. padding-bottom: 50rpx;
  107. }
  108. .item {
  109. width: 100%;
  110. color: $main-third-color;
  111. font-size: 26rpx;
  112. margin-top: 30rpx;
  113. }
  114. }
  115. }
  116. .operate {
  117. width: 670rpx;
  118. height: 88rpx;
  119. margin-bottom: 40rpx;
  120. background: linear-gradient(-90deg, rgba(252, 29, 28, 1) 0%, rgba(255, 122, 24, 1) 100%);
  121. box-shadow: 0px 3rpx 20rpx 0px rgba(252, 30, 28, 0.26);
  122. border-radius: 44rpx;
  123. color: #fff;
  124. font-size: 36rpx;
  125. }
  126. .go_back{
  127. width:670rpx;
  128. height:88rpx;
  129. background:#fff;
  130. border:1rpx solid $main-color;
  131. border-radius:44rpx;
  132. color: $main-color;
  133. font-size: 36rpx;
  134. margin-bottom: 40rpx;
  135. }
  136. }
  137. }
  138. </style>