index.module.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. .container {
  2. width: 334px;
  3. .head{
  4. height: 42px;
  5. position: relative;
  6. .headTit{
  7. position: absolute;
  8. bottom: 0;
  9. left: 50%;
  10. transform: translateX(-50%);
  11. width: 157px;
  12. height: 32px;
  13. }
  14. .closeImg{
  15. position: absolute;
  16. top: 0;
  17. right: -38px;
  18. width: 32px;
  19. height: 32px;
  20. cursor: pointer;
  21. }
  22. }
  23. .pickerCon{
  24. margin-top: -26px;
  25. height: 290px;
  26. background: #FFFFFF;
  27. border-radius: 16px;
  28. padding: 36px 20px 12px 20px;
  29. .pickerBox{
  30. width: 100%;
  31. height: calc(100% - 40px);
  32. display: flex;
  33. flex-direction: column;
  34. overflow: hidden;
  35. .titCon{
  36. display: flex;
  37. align-items: center;
  38. margin-top: 10px;
  39. &:first-child{
  40. margin-top: 0;
  41. }
  42. .tit{
  43. font-weight: 600;
  44. font-size: 15px;
  45. color: #131415;
  46. line-height: 21px;
  47. }
  48. .tips{
  49. margin-left: 6px;
  50. font-weight: 400;
  51. font-size: 13px;
  52. color: #777777;
  53. line-height: 1;
  54. }
  55. }
  56. .content{
  57. margin-top: 10px;
  58. &.sheetCon{
  59. flex-grow: 1;
  60. overflow: hidden;
  61. position: relative;
  62. /* 解决iphonex 不能滚动 */
  63. .boxCon{
  64. position: absolute;
  65. left: 0;
  66. top: 0;
  67. bottom: 0;
  68. right: 0;
  69. overflow: hidden;
  70. }
  71. .con{
  72. width: 100%;
  73. height: calc(100% - 4px);
  74. overflow-y: auto;
  75. &::-webkit-scrollbar {
  76. width: 0;
  77. display: none;
  78. }
  79. }
  80. }
  81. .selBtn{
  82. width: 100%;
  83. height: 34px;
  84. line-height: 34px;
  85. background: #F6F6F6;
  86. border-radius: 6px;
  87. font-weight: 400;
  88. font-size: 14px;
  89. color: #333333;
  90. text-align: center;
  91. cursor: pointer;
  92. border:1px solid transparent;
  93. margin-top: 10px;
  94. &:first-child{
  95. margin-top: 0;
  96. }
  97. &.active{
  98. background: #F2FFFC;
  99. border-color: #01C1B5;
  100. color: #00B2A7;
  101. }
  102. }
  103. }
  104. }
  105. .btnCon{
  106. display: flex;
  107. justify-content: center;
  108. .btn{
  109. width: 118px;
  110. height: 39px;
  111. cursor: pointer;
  112. &:active,&:hover{
  113. opacity: 0.8;
  114. }
  115. & + img{
  116. margin-left: 20px;
  117. }
  118. }
  119. }
  120. }
  121. }