success.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view class="">
  3. <view class="content">
  4. <view class="content-top">恭喜您!兑换成功!</view>
  5. <image src="../../static/gift/success.png" mode="widthFix" style="width: 310rpx;212rpx"></image>
  6. <text style="font-size: 28rpx;color: #999;margin-top: 54rpx">感觉你对大卫博士的支持,欢迎你继续兑换</text>
  7. <view class="content-middle">
  8. 消耗金额:<text style="color: #EA4A41;margin-left: 20rpx;">{{totalPrice}}</text>
  9. </view>
  10. <view class="content-bottom">
  11. <view class="goon" @click="goon">
  12. 继续兑换
  13. </view>
  14. <view class="check" @click="check">
  15. 查看兑换记录
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. totalPrice: ''
  26. }
  27. },
  28. computed: {
  29. userServerInfo() {
  30. //用户服务器信息
  31. return this.$store.state.userinfo;
  32. },
  33. },
  34. onLoad: function (option) { //option为object类型,会序列化上个页面传递的参数
  35. this.totalPrice = option.totalPrice
  36. },
  37. methods: {
  38. //继续兑换
  39. goon(){
  40. uni.reLaunch({
  41. url: '../zbs-exchange/exchange'
  42. })
  43. },
  44. //兑换记录
  45. check(){
  46. uni.navigateTo({ url: '../zbs-exchangerecord/exchangerecord' })
  47. }
  48. }
  49. }
  50. </script>
  51. <style lang="scss">
  52. // page{
  53. // background-color: #fff;
  54. // }
  55. .content {
  56. display: flex;
  57. flex-direction: column;
  58. align-items: center;
  59. justify-content: center;
  60. &-top{
  61. margin-top: 150rpx;
  62. color: #333;
  63. font-weight: bold;
  64. font-size: 36rpx;
  65. }
  66. image{
  67. margin-top: 30rpx;
  68. }
  69. &-middle{
  70. margin-top: 54rpx;
  71. font-size: 36rpx;
  72. color: #333;
  73. font-weight: bold;
  74. }
  75. &-bottom{
  76. display: flex;
  77. margin-top: 72rpx;
  78. .goon{
  79. width: 300rpx;
  80. line-height: 88rpx;
  81. color: #FB231F;
  82. border-radius: 44rpx;
  83. border: 2rpx #FB231F solid;
  84. background-color: #FFF4F3;
  85. text-align: center;
  86. }
  87. .check{
  88. width: 300rpx;
  89. color: #fff;
  90. line-height: 88rpx;
  91. margin-left: 40rpx;
  92. border-radius: 44rpx;
  93. background: linear-gradient(93deg, #F97C55 0%, #F44545 100%);
  94. text-align: center;
  95. }
  96. }
  97. }
  98. </style>