微信

page.scss 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. .mainPage{
  2. .top{
  3. position: relative;
  4. overflow: hidden;
  5. }
  6. >nav{
  7. width: 100%;
  8. position: relative;
  9. z-index: 10;
  10. background: #fff;
  11. box-shadow: 0 0 .1rem .02rem rgba(0, 0, 0, .1);
  12. a{
  13. text-align: center;
  14. line-height: .4rem;
  15. font-size: .14rem;
  16. color: #ccc;
  17. position: relative;
  18. &.active{
  19. color: #333;
  20. &::after{
  21. content: '';
  22. width: 50%;
  23. height: .02rem;
  24. background: #fc6243;
  25. position: absolute;
  26. bottom: 0;
  27. left: 50%;
  28. transform: translateX(-50%);
  29. -webkit-transform: translateX(-50%);
  30. }
  31. }
  32. }
  33. }
  34. .content{
  35. width: 100%;
  36. height: 100%;
  37. position: relative;
  38. &>div{
  39. width: 100%;
  40. position: absolute;
  41. left: 0;
  42. top: 0;
  43. bottom: 0;
  44. overflow: hidden;
  45. &>ul{
  46. width: 100%;
  47. height: 100%;
  48. position: relative;
  49. overflow: hidden;
  50. &>li{
  51. width: 100%;
  52. height: 100%;
  53. position: relative;
  54. overflow-y: scroll;
  55. -webkit-overflow-scrolling: touch;
  56. transform: translateZ(0);
  57. -webkit-transform: translateZ(0);
  58. &.placeOrder{
  59. .topInfo{
  60. align-items: center;
  61. margin: .1rem auto 0;
  62. >div{
  63. >div{
  64. width: 100%;
  65. position: relative;
  66. overflow: hidden;
  67. span{
  68. width: 100%;
  69. display: block;
  70. text-indent: .2rem;
  71. line-height: .3rem;
  72. font-size: .14rem;
  73. color: #666;
  74. }
  75. }
  76. }
  77. a{
  78. line-height: .22rem;
  79. font-size: .12rem;
  80. color: #fc6243;
  81. border: .01rem solid #fc6243;
  82. padding: 0 .15rem;
  83. border-radius: .05rem;
  84. margin-right: .2rem;
  85. }
  86. }
  87. .areaListParent{
  88. position: relative;
  89. overflow: visible;
  90. >div{
  91. margin: 0 .2rem;
  92. position: relative;
  93. overflow: visible;
  94. >div{
  95. width: 100%;
  96. position: relative;
  97. overflow: visible;
  98. .areaList{
  99. &:last-child{
  100. margin-bottom: .2rem;
  101. }
  102. .title{
  103. font-size: 0;
  104. white-space: nowrap;
  105. margin-top: .22rem;
  106. *{
  107. line-height: .26rem;
  108. font-size: .14rem;
  109. }
  110. i{
  111. color: red;
  112. margin-right: .05rem;
  113. }
  114. }
  115. .subAreaList{
  116. position: relative;
  117. overflow: visible;
  118. flex-wrap: wrap;
  119. -webkit-flex-wrap: wrap;
  120. &>li{
  121. position: relative;
  122. overflow: hidden;
  123. border-radius: .06rem;
  124. background: #fff;
  125. padding: .15rem 0;
  126. box-shadow: 0 0 .1rem .01rem rgba(0, 0, 0, .1);
  127. min-width: 40%;
  128. margin-top: .2rem;
  129. &:nth-child(2n){
  130. margin-left: .2rem;
  131. }
  132. &.noData{
  133. box-shadow: none;
  134. background: none;
  135. }
  136. }
  137. }
  138. }
  139. }
  140. }
  141. }
  142. }
  143. &.my-card, &.customer-card{
  144. .cardAndCouponInfo{
  145. align-items: center;
  146. margin: .1rem 0 .15rem;
  147. div{
  148. font-size: 0;
  149. white-space: nowrap;
  150. span{
  151. line-height: .3rem;
  152. font-size: .13rem;
  153. display: inline-block;
  154. margin-right: .05rem;
  155. &:nth-child(2){
  156. font-size: .16rem;
  157. color: #fc6243;
  158. }
  159. }
  160. }
  161. a{
  162. line-height: .24rem;
  163. padding: 0 .1rem;
  164. box-sizing: border-box;
  165. border: .01rem solid #333;
  166. color: #333;
  167. border-radius: .04rem;
  168. font-size: .12rem;
  169. }
  170. }
  171. .list-box{
  172. padding: .1rem .2rem .2rem;
  173. }
  174. }
  175. .search-bar{
  176. align-items: center;
  177. justify-content: space-between;
  178. padding: 0 .1rem .1rem;
  179. .search-icon{
  180. font-size: .18rem;
  181. color: #909090;
  182. }
  183. }
  184. }
  185. }
  186. }
  187. }
  188. .selectCase{
  189. width: 100%;
  190. position: absolute;
  191. left: 0;
  192. top: 0;
  193. bottom: 0;
  194. background: rgba(0, 0, 0, .3);
  195. z-index: 100;
  196. }
  197. }