index.module.less 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. .photoWrap {
  2. display: flex;
  3. flex-wrap: wrap;
  4. padding: 12px;
  5. box-sizing: border-box;
  6. justify-content: space-between;
  7. div {
  8. box-sizing: border-box;
  9. }
  10. }
  11. .gridImg {
  12. display: flex;
  13. justify-content: center;
  14. align-items: center;
  15. width: 100%;
  16. height: calc(100vw / 2);
  17. border-radius: 2px;
  18. overflow: hidden;
  19. position: relative;
  20. background-color: #eaeaea;
  21. background-repeat: no-repeat;
  22. background-position: center;
  23. background-image: url('../images/icon-photo-default.png');
  24. }
  25. .photoItem {
  26. position: relative;
  27. width: 49%;
  28. margin-bottom: 12px;
  29. .iconImage {
  30. display: flex;
  31. justify-content: center;
  32. }
  33. .gridName {
  34. font-size: 16px;
  35. font-weight: 500;
  36. color: #333;
  37. line-height: 22px;
  38. padding: 8px 0 4px 0;
  39. }
  40. .gridDes {
  41. color: #777;
  42. line-height: 17px;
  43. padding-left: 1px;
  44. font-size: 12px;
  45. }
  46. }
  47. .phoneListDetailWrap {
  48. min-height: calc(100vh - var(--header-height));
  49. }
  50. .phoneListDetail {
  51. position: relative;
  52. box-sizing: border-box;
  53. display: flex;
  54. flex-wrap: wrap;
  55. .gridItem {
  56. padding: 1.5px;
  57. width: calc(100% / 3);
  58. height: calc(100vw / 3);
  59. box-sizing: border-box;
  60. .gridImg {
  61. width: 100%;
  62. height: 100%;
  63. border-radius: 2px;
  64. }
  65. }
  66. }
  67. :global {
  68. .van-image-preview {
  69. .van-image-preview__close-icon,
  70. .van-image-preview__index {
  71. top: 50px;
  72. }
  73. }
  74. }
  75. .downBtn {
  76. position: fixed;
  77. right: 20px;
  78. bottom: 40px;
  79. width: 20px;
  80. height: 20px;
  81. border-radius: 50%;
  82. background: rgba(255, 255, 255, 1);
  83. padding: 8px;
  84. box-shadow: 0 2px 8px 0px rgba(0, 0, 0, 0.2);
  85. &:active {
  86. opacity: 0.8;
  87. }
  88. img {
  89. width: 100%;
  90. height: 100%;
  91. display: block;
  92. }
  93. }