shop-gift-suce.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <view class="suce">
  3. <image src="../../static/imgs/shop/change_suce.png" class="suce_icon"></image>
  4. <view class="suce_hint">恭喜您!兑换成功!</view>
  5. <view class="suce_intr">
  6. <text>
  7. 消耗积分:
  8. </text>
  9. <text style="color:#FB231F">{{integral}}积分</text>
  10. </view>
  11. <view class="suce_btn flexB">
  12. <view class="flexC" @click="skip(0)">继续兑换</view>
  13. <view class="flexC" @click="skip(1)">查看兑换记录</view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. data() {
  20. return {
  21. integral: 0
  22. }
  23. },
  24. onLoad(ops) {
  25. this.integral = ops.integral;
  26. },
  27. methods: {
  28. skip(type) {
  29. let url = '';
  30. switch (type) {
  31. case 0:
  32. url = '../integral-store/integral-store' //继续兑换
  33. break;
  34. case 1:
  35. url = '../shop-gift-record/shop-gift-record'
  36. break;
  37. default:
  38. break;
  39. }
  40. uni.redirectTo({
  41. url
  42. })
  43. }
  44. }
  45. }
  46. </script>
  47. <style lang="scss">
  48. .suce {
  49. width: 100%;
  50. min-height: 100%;
  51. background: #fff;
  52. display: flex;
  53. flex-direction: column;
  54. align-items: center;
  55. padding: 0 30rpx;
  56. box-sizing: border-box;
  57. .suce_hint {
  58. font-size: 46rpx;
  59. font-weight: bold;
  60. padding: 30rpx 0 56rpx;
  61. }
  62. .suce_intr {
  63. margin-bottom: 30rpx;
  64. text {
  65. font-size: 36rpx;
  66. font-weight: bold;
  67. }
  68. }
  69. .suce_icon {
  70. width: 338rpx;
  71. height: 261rpx;
  72. margin: 40rpx 0 30rpx;
  73. }
  74. .suce_btn {
  75. width: 100%;
  76. view {
  77. width: 300rpx;
  78. height: 88rpx;
  79. border-radius: 44px;
  80. font-size: 32rpx;
  81. }
  82. view:first-child {
  83. background: #FFF4F3;
  84. border: 2px solid $base-color;
  85. color: $base-color;
  86. }
  87. view:last-child {
  88. background: $base-line-bg;
  89. border: 2px solid $base-color;
  90. color: #fff
  91. }
  92. }
  93. }
  94. </style>