phone-popup.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. .popup-mask {
  2. position: fixed;
  3. top: 0;
  4. left: 0;
  5. right: 0;
  6. bottom: 0;
  7. background-color: rgba(0, 0, 0, 0.5);
  8. z-index: 999;
  9. display: flex;
  10. flex-direction: column;
  11. justify-content: flex-end;
  12. }
  13. .popup-content {
  14. background-color: #fff;
  15. border-radius: 40rpx 40rpx 0 0;
  16. padding: 60rpx 40rpx calc(120rpx + env(safe-area-inset-bottom));
  17. height: 650rpx;
  18. width: 100%;
  19. box-sizing: border-box;
  20. display: flex;
  21. flex-direction: column;
  22. animation: slide-up 0.3s ease-out;
  23. }
  24. @keyframes slide-up {
  25. from {
  26. transform: translateY(100%);
  27. }
  28. to {
  29. transform: translateY(0);
  30. }
  31. }
  32. .popup-header {
  33. display: flex;
  34. align-items: center;
  35. margin-bottom: 40rpx;
  36. .logo-circle {
  37. width: 48rpx;
  38. height: 48rpx;
  39. background-color: #1F6CFF;
  40. border-radius: 50%;
  41. margin-right: 16rpx;
  42. }
  43. .title {
  44. font-size: 28rpx;
  45. color: #333;
  46. font-weight: bold;
  47. }
  48. }
  49. .popup-body {
  50. margin-bottom: 50rpx;
  51. .phone-title {
  52. font-size: 36rpx;
  53. font-weight: bold;
  54. color: #333;
  55. margin-bottom: 30rpx;
  56. }
  57. .phone-row {
  58. display: flex;
  59. justify-content: space-between;
  60. align-items: center;
  61. border-bottom: 1rpx solid #eeeeee;
  62. padding-bottom: 30rpx;
  63. margin-bottom: 20rpx;
  64. .phone-info {
  65. display: flex;
  66. align-items: baseline;
  67. .phone-num {
  68. font-size: 40rpx;
  69. color: #333;
  70. margin-right: 20rpx;
  71. font-weight: 500;
  72. }
  73. .phone-desc {
  74. font-size: 24rpx;
  75. color: #999;
  76. }
  77. }
  78. }
  79. .use-other {
  80. font-size: 26rpx;
  81. color: #576b95; // Wechat link color is good here
  82. padding-top: 10rpx;
  83. }
  84. }
  85. .popup-footer {
  86. display: flex;
  87. justify-content: space-between;
  88. button {
  89. width: 48%;
  90. height: 88rpx;
  91. line-height: 88rpx;
  92. border-radius: 10rpx;
  93. font-size: 32rpx;
  94. margin: 0;
  95. &::after {
  96. border: none;
  97. }
  98. }
  99. .btn-cancel {
  100. background-color: #f2f2f2;
  101. color: #0cbb07; // green text, wait, image shows red/green/dark gray? Image shows grey btn with green text: "取消" in green color. Ah wait, looking closely at image 2: btn-cancel ("取消") has a grayish background and green text. Actually the text is just #07C160 or similar.
  102. color: #07c160;
  103. }
  104. .btn-allow {
  105. background-color: #07c160; // WeChat green
  106. color: #fff;
  107. }
  108. }