anthorhome.component.scss 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. .content {
  2. --padding-bottom: 25.641vw;
  3. --background: #f8f8f8;
  4. .header {
  5. padding: 5.1282vw 2.5641vw 2.5641vw;
  6. height: 41.0256vw;
  7. // border-radius: 0 0 12.8205vw 12.8205vw;
  8. background-size: 100% 100%;
  9. .top {
  10. display: flex;
  11. .search {
  12. --background: #353c4d;
  13. --cancel-button-color: #cccccc;
  14. --color: #cccccc;
  15. }
  16. ion-segment {
  17. justify-content: start;
  18. padding: 0 3.2vw;
  19. position: sticky;
  20. top: 0;
  21. background: #fd6f6a00;
  22. }
  23. ion-segment-button {
  24. color: white;
  25. --indicator-color: white;
  26. }
  27. // ::-webkit-scrollbar {
  28. // display: none; /* Chrome Safari */
  29. // }
  30. // .more {
  31. // width: 25.641vw;
  32. // margin: 0 2.5641vw;
  33. // display: flex;
  34. // align-items: center;
  35. // justify-content: space-around;
  36. // img {
  37. // width: 5.1282vw;
  38. // height: 5.1282vw;
  39. // }
  40. // }
  41. }
  42. }
  43. .hd-hei{
  44. height: 51.2821vw;
  45. }
  46. .banner {
  47. height: 46.1538vw;
  48. // width: calc(100% - 5.1282vw);
  49. padding: 2.5641vw;
  50. margin-top: -20.5128vw;
  51. img {
  52. width: 100%;
  53. height: 38.4615vw;
  54. object-fit: cover;
  55. }
  56. }
  57. .swiper {
  58. width: 100%;
  59. height: 41.0256vw;
  60. .swiper-slide {
  61. text-align: center;
  62. font-size: 4.6154vw;
  63. background: #fff;
  64. display: flex;
  65. justify-content: center;
  66. align-items: center;
  67. img {
  68. display: block;
  69. width: 100%;
  70. height: 100%;
  71. object-fit: cover;
  72. }
  73. }
  74. }
  75. .notice {
  76. display: flex;
  77. justify-content: space-between;
  78. align-items: center;
  79. border-bottom: 0.2564vw solid #dbdbdb;
  80. padding: 2.5641vw;
  81. .notice-icon {
  82. width: 5.1282vw;
  83. height: 5.1282vw;
  84. }
  85. .swiper-notice1 {
  86. width: 100%;
  87. height: 5.1282vw;
  88. }
  89. .swiper-wrapper {
  90. flex: 1;
  91. height: 5.1282vw;
  92. flex-shrink: 0;
  93. .notice-item {
  94. display: flex;
  95. justify-content: space-between;
  96. font-size: 3.5897vw;
  97. background: #ffffff00;
  98. .notice-item-title {
  99. display: flex;
  100. justify-content: start;
  101. .notice-item-text {
  102. flex-shrink: 0;
  103. }
  104. .notice-item-content {
  105. display: -webkit-box; //对象作为弹性伸缩盒子模型显示
  106. overflow: hidden; //溢出隐藏
  107. -webkit-box-orient: vertical; //设置伸缩盒子对象的子元素的排列方式
  108. -webkit-line-clamp: 1; //设置 块元素包含的文本行数
  109. margin: 0 1.5385vw 0 0;
  110. text-align: left;
  111. }
  112. }
  113. .notice-item-time {
  114. flex-shrink: 0;
  115. color: #cccccc;
  116. }
  117. }
  118. }
  119. }
  120. .bar {
  121. padding: 0 2.5641vw;
  122. font-size: 3.5897vw;
  123. display: flex;
  124. justify-content: space-between;
  125. ion-select {
  126. width: 33.3333vw;
  127. }
  128. label-text-wrapper {
  129. margin-right: 0 !important;
  130. }
  131. .bar-right {
  132. flex: 1;
  133. display: flex;
  134. align-items: center;
  135. justify-content: flex-end;
  136. .city {
  137. margin-right: 2.5641vw;
  138. display: flex;
  139. align-items: center;
  140. }
  141. }
  142. }
  143. .list {
  144. .list-item {
  145. background-color: white;
  146. display: flex;
  147. align-items: center;
  148. margin-bottom: 1.5385vw;
  149. padding: 1.0256vw 1.5385vw;
  150. .list-item-left {
  151. flex-shrink: 0;
  152. .avatar {
  153. width: 10.2564vw;
  154. height: 10.2564vw;
  155. border-radius: 50%;
  156. }
  157. }
  158. .list-item-right {
  159. display: flex;
  160. align-items: center;
  161. justify-content: space-between;
  162. margin-left: 2.5641vw;
  163. flex: 1;
  164. .user-detail {
  165. .user-name {
  166. font-size: 3.5897vw;
  167. }
  168. .user-tp {
  169. display: flex;
  170. align-items: center;
  171. margin-top: 1.0256vw;
  172. font-size: 3.0769vw;
  173. color: #7d7d7d;
  174. span {
  175. margin-left: 1.0256vw;
  176. }
  177. }
  178. }
  179. .user-btn {
  180. font-size: 3.5897vw;
  181. color: #0054e9;
  182. display: flex;
  183. align-items: center;
  184. }
  185. }
  186. }
  187. }
  188. .room-list {
  189. display: grid;
  190. grid-template-columns: repeat(2, 46.1538vw);
  191. // grid-column-gap: 2.5641vw;
  192. grid-row-gap: 2.5641vw;
  193. padding: 2.5641vw;
  194. justify-content: space-between;
  195. font-size: 3.5897vw;
  196. .list-row {
  197. // width: 46.1538vw;
  198. height: 64.1026vw;
  199. background-size: 100% 100%;
  200. position: relative;
  201. color: white;
  202. border-radius: 2.5641vw;
  203. .title-tag {
  204. background: linear-gradient(to bottom right, #9367fe, #d55bd9);
  205. position: absolute;
  206. top: 0;
  207. left: 0;
  208. border-radius: 2.5641vw 0;
  209. padding: 1.0256vw 2.0513vw;
  210. }
  211. .live-tag {
  212. position: absolute;
  213. top: 1.0256vw;
  214. right: 2.5641vw;
  215. border-radius: 5.1282vw;
  216. padding: 1.0256vw 2.5641vw;
  217. font-size: 2.5641vw;
  218. background: #1414147a;
  219. display: flex;
  220. align-items: center;
  221. justify-content: space-evenly;
  222. span {
  223. height: 1.0256vw;
  224. width: 1.0256vw;
  225. border-radius: 50%;
  226. background-color: #83f1dd;
  227. margin-right: 1.0256vw;
  228. }
  229. img {
  230. width: 3.0769vw;
  231. height: 3.5897vw;
  232. }
  233. }
  234. .room-footer {
  235. position: absolute;
  236. bottom: 0;
  237. width: calc(100%);
  238. padding: 1.0256vw 2.5641vw 2.5641vw;
  239. max-height: 25.641vw;
  240. background: linear-gradient(to bottom, #ffffff00, #434343);
  241. border-radius: 0 0 2.5641vw 2.5641vw;
  242. .user {
  243. font-size: 4.1026vw;
  244. }
  245. .desc {
  246. margin: 1.0256vw 0;
  247. }
  248. .city-block {
  249. display: flex;
  250. background: linear-gradient(to right, #ff92e3f0, #ff6a93);
  251. display: inline-flex;
  252. padding: 0.5128vw 1.5385vw;
  253. border-radius: 5.1282vw;
  254. align-items: center;
  255. .row-li {
  256. display: flex;
  257. align-items: center;
  258. img {
  259. width: 3.0769vw;
  260. height: 3.0769vw;
  261. margin-right: 0.5128vw;
  262. }
  263. }
  264. }
  265. }
  266. }
  267. }
  268. .room-list-column {
  269. display: block;
  270. .list-row-column {
  271. margin-bottom: 2.5641vw;
  272. height: 76.9231vw;
  273. background-size: cover;
  274. background-repeat: no-repeat;
  275. background-position: center;
  276. }
  277. }
  278. }
  279. ion-modal {
  280. --height: auto;
  281. align-items: end;
  282. }
  283. ion-picker {
  284. margin-bottom: var(--ion-safe-area-bottom);
  285. }
  286. .msg-modal {
  287. padding: 5.1282vw 0;
  288. height: 100%;
  289. display: flex;
  290. flex-direction: column;
  291. align-items: center;
  292. .msg-modal-item {
  293. margin-bottom: 3.5897vw;
  294. display: flex;
  295. align-items: center;
  296. color: #797979;
  297. }
  298. .msg-modal-item:active{
  299. color: #0054e9 !important;
  300. }
  301. }