couponshare.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <view class="couponshare-modal-middle">
  3. <view class="bg"></view>
  4. <view class="couponshare-modal-middle-main" :class=" show ? 'animated fast zoomInUp' :'animated fast zoomOutDown'">
  5. <view class="middle-main">
  6. <view @click="closed" class="middle-closed">
  7. <text class="iconfont iconbtn_close ft20"></text>
  8. </view>
  9. <view class="pd20_15">
  10. <view class="ft14 cl-w">恭喜您!支付成功</view>
  11. <view class="ft16 ftw500 cl-yellow mt8">分享好友一起领券吧</view>
  12. </view>
  13. <view class="text-center">
  14. <image :src="statics.couponAlert[0]" style="width: 260rpx; height: 260rpx;"></image>
  15. </view>
  16. <image :src="statics.couponAlert[2]" class="footer-bg"></image>
  17. <view class="footer-act-main">
  18. <button open-type="share" class="share-btn">邀好友领券</button>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. export default{
  26. props:{
  27. },
  28. data(){
  29. return {
  30. show:false,
  31. }
  32. },
  33. created(){
  34. this.show = true;
  35. },
  36. methods:{
  37. closed(){
  38. this.show = false;
  39. setTimeout(()=>{
  40. this.$emit('closed',true);
  41. },400)
  42. }
  43. }
  44. }
  45. </script>
  46. <style>
  47. .couponshare-modal-middle{
  48. width: 100%;
  49. height: 100vh;
  50. position: fixed;
  51. z-index: 200;
  52. left: 0;
  53. top: 0;
  54. }
  55. .couponshare-modal-middle .bg{
  56. position: fixed;
  57. width: 100%;
  58. height: 100vh;
  59. background: rgba(0,0,0,.5);
  60. z-index: 201;
  61. left: 0;
  62. top: 0;
  63. }
  64. .couponshare-modal-middle-main{
  65. width: 630rpx;
  66. background: #FD4E4A;
  67. border-radius: 32rpx;
  68. position: fixed;
  69. top: 50%;
  70. left: calc(50% - 315rpx);
  71. transform:translateY(-50%);
  72. z-index: 202;
  73. overflow: hidden;
  74. }
  75. .couponshare-modal-middle-main .middle-main{
  76. position: relative;
  77. height: 576rpx;
  78. width: 100%;
  79. }
  80. .couponshare-modal-middle-main .middle-closed{
  81. position: absolute;
  82. width: 80rpx;
  83. height: 80rpx;
  84. right:0rpx;
  85. top: 0rpx;
  86. text-align: center;
  87. line-height: 80rpx;
  88. text-align: center;
  89. background: rgba(0,0,0,0.5);
  90. color:#FFFFFF;
  91. border-radius: 0rpx 0rpx 0rpx 32rpx;
  92. }
  93. .couponshare-modal-middle-main .footer-bg{
  94. width: 100%;
  95. height: 160rpx;
  96. position: absolute;
  97. left: 0;
  98. bottom: 0;
  99. }
  100. .couponshare-modal-middle-main .footer-act-main{
  101. width: 100%;
  102. height: 160rpx;
  103. position: absolute;
  104. left: 0;
  105. bottom: 0;
  106. display: flex;
  107. justify-content: center;
  108. align-items: center;
  109. }
  110. .couponshare-modal-middle-main .footer-act-main .share-btn{
  111. width: 330rpx;
  112. height: 80rpx;
  113. background: linear-gradient(180deg, #FFF6D6 0%, #FFE388 100%);
  114. box-shadow: 0rpx 8rpx 24rpx 0rpx rgba(0, 0, 0, 0.08);
  115. border-radius: 40rpx;
  116. color:#F14844;
  117. font-size: 32rpx;
  118. font-weight: 500;
  119. display: flex;
  120. justify-content: center;
  121. align-items: center;
  122. margin: 0;
  123. padding: 0;
  124. }
  125. </style>