cardsend.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view class="cardsend-modal">
  3. <view class="modal-bg"></view>
  4. <view class="modal-box animated fast" :class="show ? 'slideInUp' : 'slideOutDown'">
  5. <view class="modal-main">
  6. <view class="closed">
  7. <text @click="closed()" class="iconfont ft20 cl-notice iconbtn_close"></text>
  8. </view>
  9. <view class="lh20 ft16 cl-main ftw600 text-center">赠送好友</view>
  10. <view class="text-center ft16 ftw600 text-over mt40">【VIP洗剪吹次卡】</view>
  11. <view class="mt32 plr15">
  12. <view class="box pd16_15">
  13. <input placeholder="输入对方手机号" type="number" placeholder-class="cl-info2" class="ft16 ftw600 text-center"/>
  14. </view>
  15. <view class="text-center mt16 ft14 cl-orange lh20">手机号不存在,请重新输入</view>
  16. </view>
  17. </view>
  18. <view class="pd10_15 bg-w mt60">
  19. <button class="btn-big" :style="getBtnStyle">确定赠送</button>
  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');
  41. },400);
  42. }
  43. }
  44. }
  45. </script>
  46. <style>
  47. .cardsend-modal{
  48. position: relative;
  49. z-index: 400;
  50. }
  51. .cardsend-modal .modal-bg{
  52. position: fixed;
  53. z-index: 400;
  54. left: 0;
  55. top: 0;
  56. width: 100%;
  57. height: 100vh;
  58. background: rgba(0,0,0,.5);
  59. }
  60. .cardsend-modal .modal-box{
  61. position: fixed;
  62. z-index: 401;
  63. background: #F5F6FA;
  64. left: 0;
  65. bottom: 0;
  66. width: 100%;
  67. padding-bottom:0rpx;
  68. padding-bottom:constant(safe-area-inset-bottom);
  69. padding-bottom:env(safe-area-inset-bottom);
  70. border-radius:32rpx 32rpx 0rpx 0rpx;
  71. }
  72. .cardsend-modal .modal-main{
  73. position: relative;
  74. height: auto;
  75. overflow: hidden;
  76. padding-top: 64rpx;
  77. padding-bottom: 40rpx;
  78. }
  79. .cardsend-modal .modal-main .closed{
  80. position: absolute;
  81. right: 40rpx;
  82. top: 40rpx;
  83. }
  84. </style>