爱简收旧衣按件回收前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
2.0 KiB

2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
1 month ago
2 months ago
  1. <template>
  2. <view class="email-popup" v-if="show">
  3. <view class="popup-mask" @tap="onClose"></view>
  4. <view class="popup-content">
  5. <view class="popup-header">
  6. <text class="close" @tap="onClose">关闭</text>
  7. <text class="title">客服邮箱</text>
  8. </view>
  9. <view class="email-content" >
  10. <text>hanhaihuishouhf@hh.com</text>
  11. <uni-icons type="email" size="23" class="copy-icon" @tap="copyEmail"></uni-icons>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. name: 'email-popup',
  19. props: {
  20. show: {
  21. type: Boolean,
  22. default: false
  23. }
  24. },
  25. methods: {
  26. onClose() {
  27. this.$emit('close')
  28. },
  29. copyEmail() {
  30. this.$emit('copyEmail')
  31. }
  32. }
  33. }
  34. </script>
  35. <style lang="scss" scoped>
  36. .email-popup {
  37. position: fixed;
  38. top: 0;
  39. left: 0;
  40. right: 0;
  41. bottom: 0;
  42. z-index: 999;
  43. .popup-mask {
  44. position: absolute;
  45. top: 0;
  46. left: 0;
  47. right: 0;
  48. bottom: 0;
  49. background: rgba(0, 0, 0, 0.4);
  50. }
  51. .popup-content {
  52. position: absolute;
  53. left: 0;
  54. right: 0;
  55. bottom: 0;
  56. background: #fff;
  57. border-radius: 20rpx 20rpx 0 0;
  58. overflow: hidden;
  59. transform: translateY(0);
  60. transition: transform 0.3s ease-out;
  61. .popup-header {
  62. position: relative;
  63. height: 160rpx;
  64. display: flex;
  65. align-items: center;
  66. justify-content: center;
  67. border-bottom: 1rpx solid #f5f5f5;
  68. .title {
  69. font-size: 34rpx;
  70. color: #333;
  71. font-weight: 500;
  72. }
  73. .close {
  74. position: absolute;
  75. left: 30rpx;
  76. font-size: 32rpx;
  77. color: #333;
  78. }
  79. }
  80. .email-content {
  81. height: 140rpx;
  82. display: flex;
  83. align-items: center;
  84. justify-content: center;
  85. padding: 0 40rpx;
  86. margin-bottom: env(safe-area-inset-bottom);
  87. text {
  88. font-size: 36rpx;
  89. color: #333;
  90. font-weight: 400;
  91. }
  92. .copy-icon {
  93. background: #f5f5f5;
  94. padding: 20rpx;
  95. border-radius: 50%;
  96. }
  97. }
  98. }
  99. }
  100. </style>