index.module.scss 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. .A2_Goods {
  2. position: relative;
  3. :global {
  4. .logo {
  5. position: absolute;
  6. top: 20px;
  7. left: 50px;
  8. z-index: 3;
  9. width: 150px;
  10. pointer-events: none;
  11. }
  12. .toHomeBox {
  13. position: absolute;
  14. z-index: 3;
  15. right: 20px;
  16. bottom: 20px;
  17. cursor: pointer;
  18. width: 60px;
  19. height: 60px;
  20. background-image: url('../../assets/img/goods/toHome.png');
  21. background-size: 100% 100%;
  22. }
  23. .goodsMain {
  24. width: 100%;
  25. height: 100%;
  26. overflow-x: auto;
  27. overflow-y: hidden;
  28. &::-webkit-scrollbar {
  29. /*滚动条整体样式*/
  30. width: 0px;
  31. /*高宽分别对应横竖滚动条的尺寸*/
  32. height: 0px;
  33. }
  34. .goodsBox {
  35. width: 100%;
  36. height: 100%;
  37. display: flex;
  38. position: relative;
  39. .goodsRow {
  40. border-right: 2px solid #c09e87;
  41. height: 100%;
  42. background-size: 100% 100%;
  43. position: relative;
  44. .rowShow {
  45. opacity: 1;
  46. pointer-events: auto;
  47. transition: all 1s;
  48. position: absolute;
  49. width: 100%;
  50. height: 100%;
  51. background-color: rgba(236, 215, 167, 0.6);
  52. .rowName {
  53. position: absolute;
  54. bottom: 150px;
  55. left: 60px;
  56. writing-mode: vertical-lr;
  57. font-size: 18px;
  58. letter-spacing: 4px;
  59. &::before {
  60. content: '';
  61. position: absolute;
  62. top: -30px;
  63. left: 50%;
  64. transform: translateX(-50%);
  65. width: 15px;
  66. height: 15px;
  67. background-image: url('../../assets/img/home/Ldian.png');
  68. background-size: 100% 100%;
  69. }
  70. }
  71. .rowImg {
  72. position: absolute;
  73. bottom: 120px;
  74. right: 0;
  75. width: calc(100% - 100px);
  76. text-align: center;
  77. cursor: pointer;
  78. &>img {
  79. max-height: 450px;
  80. pointer-events: none;
  81. }
  82. }
  83. }
  84. .rowHover {
  85. opacity: 0;
  86. pointer-events: none;
  87. transition: all 1s;
  88. position: absolute;
  89. width: 100%;
  90. height: 100%;
  91. background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
  92. .rowName {
  93. color: #fff;
  94. position: absolute;
  95. bottom: 150px;
  96. left: 60px;
  97. writing-mode: vertical-lr;
  98. font-size: 18px;
  99. letter-spacing: 4px;
  100. &::before {
  101. content: '';
  102. position: absolute;
  103. top: -30px;
  104. left: 50%;
  105. transform: translateX(-50%);
  106. width: 15px;
  107. height: 15px;
  108. background-image: url('../../assets/img/home/Ldian.png');
  109. background-size: 100% 100%;
  110. }
  111. }
  112. .rowImg {
  113. position: absolute;
  114. bottom: 120px;
  115. right: 0;
  116. width: calc(100% - 100px);
  117. text-align: center;
  118. cursor: pointer;
  119. &>img {
  120. max-height: 450px;
  121. pointer-events: none;
  122. }
  123. }
  124. .rowTxt {
  125. color: #fff;
  126. position: absolute;
  127. top: 100px;
  128. left: 0;
  129. padding: 0 55px;
  130. .rowTxtRow {
  131. font-weight: 700;
  132. margin-bottom: 6px;
  133. }
  134. .rowTxtRowZ {
  135. font-size: 12px;
  136. margin-top: 20px;
  137. }
  138. }
  139. }
  140. &:nth-of-type(1n) {
  141. background-image: url('../../assets/img/goods/wenli1.jpg');
  142. }
  143. &:nth-of-type(2n) {
  144. background-image: url('../../assets/img/goods/wenli2.jpg');
  145. .rowImg {
  146. bottom: auto;
  147. top: 120px;
  148. }
  149. .rowHover {
  150. .rowName {
  151. bottom: auto;
  152. top: 120px;
  153. }
  154. .rowTxt {
  155. top: auto;
  156. bottom: 100px;
  157. left: 0;
  158. padding: 0 55px;
  159. }
  160. }
  161. }
  162. &:nth-of-type(3n) {
  163. background-image: url('../../assets/img/goods/wenli3.jpg');
  164. }
  165. &:nth-of-type(4n) {
  166. background-image: url('../../assets/img/goods/wenli4.jpg');
  167. }
  168. &:last-child {
  169. border: none;
  170. }
  171. &:nth-of-type(4) {
  172. .rowImg {
  173. bottom: auto;
  174. top: 200px;
  175. }
  176. }
  177. // 输入移入的效果
  178. &:hover {
  179. .rowShow {
  180. opacity: 0;
  181. pointer-events: none;
  182. }
  183. .rowHover {
  184. opacity: 1;
  185. pointer-events: auto;
  186. }
  187. }
  188. }
  189. }
  190. }
  191. .curTitBox {
  192. border-radius: 4px;
  193. position: absolute;
  194. top: 50%;
  195. left: 50%;
  196. transform: translate(-50%, -50%);
  197. width: 300px;
  198. height: 370px;
  199. background-color: #726b56;
  200. .curClose {
  201. position: absolute;
  202. right: 15px;
  203. top: 15px;
  204. cursor: pointer;
  205. color: #fff;
  206. font-size: 24px;
  207. }
  208. .curImg {
  209. margin: 70px auto 30px;
  210. width: 213px;
  211. height: 213px;
  212. position: relative;
  213. &>img {
  214. position: absolute;
  215. top: 0;
  216. left: 0;
  217. width: 100%;
  218. height: 100%;
  219. opacity: 1;
  220. transition: all 2s;
  221. }
  222. }
  223. &>p {
  224. font-size: 14px;
  225. color: #fff;
  226. text-align: center;
  227. }
  228. }
  229. }
  230. }