exchangeSuccess.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <template>
  2. <view>
  3. <u-popup :custom-style="popupStyle" :closeable="true" close-icon-size="40" close-icon-color="#fff" close-icon="close-circle"
  4. class="auth-point" v-model="show" mode="center" width="70%" border-radius="28">
  5. <view class="auth-bg">
  6. <image style="width: 100%;" src="../../static/poster/votesuccess.png" mode="widthFix"></image>
  7. <view class="avatar-vote flex justify-center align-center">
  8. <u-avatar size="159" :src="avatar"></u-avatar>
  9. </view>
  10. <view class="info-box">
  11. <view class="main-info">兑换商品成功</view>
  12. <view class="sub-info" style="padding: 0 50rpx;">
  13. 您可以在个人中心的我的兑换里查看所兑换的商品
  14. </view>
  15. <view class="flex justify-center" style="margin-top: 90rpx;">
  16. <u-button @click="show=false" shape="circle" :custom-style="customStyle">继续兑换</u-button>
  17. <u-button shape="circle" :custom-style="customStyle" @click="view">立即查看</u-button>
  18. </view>
  19. </view>
  20. </view>
  21. </u-popup>
  22. </view>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. show: false,
  29. avatar: '',
  30. popupStyle: {
  31. 'u-mode-center-box': 'red'
  32. },
  33. customStyle: {
  34. color: 'white',
  35. background: "#E72226",
  36. width: '200rpx',
  37. margin: '10rpx',
  38. height: "60rpx",
  39. fontSize: "26rpx"
  40. }
  41. };
  42. },
  43. methods: {
  44. toIndex() {
  45. uni.switchTab({
  46. url: "/pages/index/home"
  47. })
  48. },
  49. showSuccess(avatar) {
  50. this.avatar = avatar;
  51. this.show = true;
  52. },
  53. hide() {
  54. this.show = false;
  55. },
  56. support() {
  57. this.hide()
  58. this.$emit('support')
  59. },
  60. view(){
  61. uni.navigateTo({
  62. url:"/pages/mine/order/order"
  63. })
  64. }
  65. }
  66. }
  67. </script>
  68. <style lang="scss" scoped>
  69. .auth-bg {
  70. width: 100%;
  71. background: transparent;
  72. }
  73. .auth-msg {
  74. padding: 40rpx 40rpx 20rpx 40rpx;
  75. display: flex;
  76. align-items: center;
  77. justify-content: left;
  78. }
  79. .avatar-vote {
  80. position: absolute;
  81. width: 200rpx;
  82. height: 200rpx;
  83. top: 100rpx;
  84. left: calc(50% - 100rpx);
  85. border: 2px dashed #E8E8E8;
  86. border-radius: 50%;
  87. }
  88. .info-box {
  89. position: absolute;
  90. width: 100%;
  91. height: auto;
  92. top: 360rpx;
  93. left: 0;
  94. .main-info {
  95. margin: 10rpx;
  96. font-size: 30rpx;
  97. color: #353535;
  98. font-weight: 800;
  99. text-align: center;
  100. }
  101. .sub-info {
  102. margin: 15rpx auto 40rpx auto;
  103. text-align: center;
  104. color: #AAAAAA;
  105. font-size: 24rpx;
  106. font-weight: 400;
  107. }
  108. }
  109. </style>