anthorhome.component.scss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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. object-fit: cover;
  157. }
  158. }
  159. .list-item-right {
  160. display: flex;
  161. align-items: center;
  162. justify-content: space-between;
  163. margin-left: 2.5641vw;
  164. flex: 1;
  165. .user-detail {
  166. .user-name {
  167. font-size: 3.5897vw;
  168. }
  169. .user-tp {
  170. display: flex;
  171. align-items: center;
  172. margin-top: 1.0256vw;
  173. font-size: 3.0769vw;
  174. color: #7d7d7d;
  175. span {
  176. margin-left: 1.0256vw;
  177. }
  178. }
  179. }
  180. .user-btn {
  181. font-size: 3.5897vw;
  182. color: #0054e9;
  183. display: flex;
  184. align-items: center;
  185. }
  186. }
  187. }
  188. }
  189. .room-list {
  190. display: grid;
  191. grid-template-columns: repeat(2, 46.1538vw);
  192. // grid-column-gap: 2.5641vw;
  193. grid-row-gap: 2.5641vw;
  194. padding: 2.5641vw;
  195. justify-content: space-between;
  196. font-size: 3.5897vw;
  197. .list-row {
  198. // width: 46.1538vw;
  199. height: 64.1026vw;
  200. // background-size: 100% 100%;
  201. background-size: cover;
  202. position: relative;
  203. color: white;
  204. border-radius: 2.5641vw;
  205. .title-tag {
  206. background: linear-gradient(to bottom right, #9367fe, #d55bd9);
  207. position: absolute;
  208. top: 0;
  209. left: 0;
  210. border-radius: 2.5641vw 0;
  211. padding: 1.0256vw 2.0513vw;
  212. }
  213. .live-tag {
  214. position: absolute;
  215. top: 1.0256vw;
  216. right: 2.5641vw;
  217. border-radius: 5.1282vw;
  218. padding: 1.0256vw 2.5641vw;
  219. font-size: 2.5641vw;
  220. background: #1414147a;
  221. display: flex;
  222. align-items: center;
  223. justify-content: space-evenly;
  224. span {
  225. height: 1.0256vw;
  226. width: 1.0256vw;
  227. border-radius: 50%;
  228. background-color: #83f1dd;
  229. margin-right: 1.0256vw;
  230. }
  231. img {
  232. width: 3.0769vw;
  233. height: 3.5897vw;
  234. }
  235. }
  236. .room-footer {
  237. position: absolute;
  238. bottom: 0;
  239. width: calc(100%);
  240. padding: 1.0256vw 2.5641vw 2.5641vw;
  241. max-height: 25.641vw;
  242. background: linear-gradient(to bottom, #ffffff00, #434343);
  243. border-radius: 0 0 2.5641vw 2.5641vw;
  244. .user {
  245. font-size: 4.1026vw;
  246. }
  247. .desc {
  248. margin: 1.0256vw 0;
  249. }
  250. .city-block {
  251. display: flex;
  252. background: linear-gradient(to right, #ff92e3f0, #ff6a93);
  253. display: inline-flex;
  254. padding: 0.5128vw 1.5385vw;
  255. border-radius: 5.1282vw;
  256. align-items: center;
  257. .row-li {
  258. display: flex;
  259. align-items: center;
  260. img {
  261. width: 3.0769vw;
  262. height: 3.0769vw;
  263. margin-right: 0.5128vw;
  264. }
  265. }
  266. }
  267. }
  268. }
  269. }
  270. .room-list-column {
  271. display: block;
  272. .list-row-column {
  273. margin-bottom: 2.5641vw;
  274. height: 76.9231vw;
  275. background-size: cover;
  276. background-repeat: no-repeat;
  277. background-position: center;
  278. }
  279. }
  280. }
  281. ion-modal {
  282. --height: auto;
  283. align-items: end;
  284. }
  285. ion-picker {
  286. margin-bottom: var(--ion-safe-area-bottom);
  287. }
  288. .msg-modal {
  289. padding: 5.1282vw 0;
  290. height: 100%;
  291. display: flex;
  292. flex-direction: column;
  293. align-items: center;
  294. .msg-modal-item {
  295. margin-bottom: 3.5897vw;
  296. display: flex;
  297. align-items: center;
  298. color: #797979;
  299. }
  300. .msg-modal-item:active{
  301. color: #0054e9 !important;
  302. }
  303. }