No Description

index.css 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. /*@font-face
  2. {
  3. font-family: myFirstFont;
  4. src: url('https://kx-youhuiquan.oss-cn-beijing.aliyuncs.com/HanziPenSC.ttf')
  5. ,url('../HanziPenSC.eot'); IE9
  6. }*/
  7. body{
  8. width: 100%;
  9. height: 100vh;
  10. background: #3e0570;
  11. }
  12. .alert-info {
  13. position: fixed;
  14. top: 1.74rem;
  15. right: 0;
  16. left: 0;
  17. bottom: 0;
  18. text-align: center;
  19. z-index: 9;
  20. }
  21. .alert-info p {
  22. display: inline-block;
  23. height: 0.38rem;
  24. color: #fff;
  25. font-size: 0.14rem;
  26. line-height: 0.38rem;
  27. padding: 0 0.10rem;
  28. background-color: rgba(0, 0, 0, 0.7);
  29. border-radius: 5px;
  30. }
  31. #copy_1,#copy_2,#taokouling{
  32. position:absolute;
  33. left:-3000px;
  34. }
  35. #goApp{
  36. width: 1.6rem;
  37. height: 0.23rem;
  38. position: absolute;
  39. bottom: 0.4rem;
  40. left: 0;
  41. right: 0;
  42. margin: auto;
  43. animation: button 1s infinite ease-in-out;
  44. z-index: 3;
  45. display: none;
  46. }
  47. @keyframes button {
  48. 0% {transform: scale(1.2);}
  49. 50% {transform: scale(1);}
  50. 100% {transform: scale(1.2);}
  51. }
  52. #goApp img{
  53. width: 100%;
  54. }
  55. .container,.swiper-container,.swiper-wrapper{
  56. width: 100%;
  57. height: 100%;
  58. }
  59. .swiper-slide{
  60. position: relative;
  61. height: 100% !important;
  62. background: url(https://kx-youhuiquan.oss-cn-beijing.aliyuncs.com/shuangshiyi/commodityListFirst/bg.png);
  63. background-size:100% ;
  64. }
  65. .swiper-slide-one{
  66. /*background: url(../img/homeBg.png) no-repeat;
  67. background-size:100% ;*/
  68. }
  69. .swiper-slide-one-title{
  70. /*font-family: myFirstFont !important;*/
  71. width: 100%;
  72. height: 1.4rem;
  73. margin-top: 1.865rem;
  74. background: url(https://kx-youhuiquan.oss-cn-beijing.aliyuncs.com/shuangshiyi/commodityListFirst/swiper-slide-one-title.png) no-repeat;
  75. background-size: 100%;
  76. color: #0DFFE6;
  77. display: flex;
  78. flex-direction: column;
  79. justify-content: center;
  80. }
  81. .swiper-slide-one-title p:nth-of-type(1){
  82. font-size: 0.15rem;
  83. line-height: 0.21rem;
  84. padding-left: 0.4rem;
  85. }
  86. .swiper-slide-one-title p:nth-of-type(2){
  87. font-size: 0.22rem;
  88. line-height: 0.31rem;
  89. padding-left: 0.4rem;
  90. padding-top: 0.07rem;
  91. }
  92. #array{
  93. position:absolute;z-index:1;-webkit-animation: start 1.5s infinite ease-in-out;width: 0.33rem;bottom: 1rem;left: 0;right: 0;margin: auto;
  94. }
  95. @-webkit-keyframes start {
  96. 0% {opacity: 0;transform: translate(0,100px);}
  97. 50% {opacity: 1;transform: translate(0,0);}
  98. 100% {opacity: 0;transform: translate(0,-28px);}
  99. }
  100. @-moz-keyframes start {
  101. 0% {opacity: 0;transform: translate(0,100px);}
  102. 50% {opacity: 1;transform: translate(0,0);}
  103. 100% {opacity: 0;transform: translate(0,-28px);}
  104. }
  105. @keyframes start {
  106. 0% {opacity: 0;transform: translate(0,100px);}
  107. 50% {opacity: 1;transform: translate(0,0);}
  108. 100% {opacity: 0;transform: translate(0,-28px);}
  109. }
  110. .category{
  111. /*font-family: myFirstFont !important;*/
  112. display: flex;
  113. flex-wrap: wrap;
  114. justify-content: space-around;
  115. padding: 0 0.125rem;
  116. }
  117. .category li{
  118. width: 1.15rem;
  119. height: 0.875rem;
  120. text-align: center;
  121. line-height: 0.875rem;
  122. color: #0DFFE6;
  123. font-size: 0.18rem;
  124. background: url(https://kx-youhuiquan.oss-cn-beijing.aliyuncs.com/shuangshiyi/commodityListFirst/home-list.png) no-repeat;
  125. background-size:100% ;
  126. }
  127. .title-swiper-slide{
  128. /*font-family: myFirstFont !important;*/
  129. color: #00FEB3;
  130. font-size: 0.2rem;
  131. text-align: center;
  132. margin: auto;
  133. margin-top: 0.1rem;
  134. width: 1.3rem;
  135. height: 0.48rem;
  136. background: url(https://kx-youhuiquan.oss-cn-beijing.aliyuncs.com/shuangshiyi/commodityListFirst/titleBg.png) no-repeat;
  137. background-size:100%;
  138. line-height: 0.48rem;
  139. }
  140. #share{
  141. /*font-family: myFirstFont !important;*/
  142. position: absolute;
  143. top: 0.18rem;
  144. right: 0.22rem;
  145. animation: button 1s infinite ease-in-out;
  146. }
  147. #share img{
  148. width: 0.2rem;
  149. height: 0.2rem;
  150. display: block;
  151. margin: auto;
  152. margin-bottom: 0.03rem;
  153. }
  154. #share span{
  155. color: #15FFB3;
  156. line-height: 0.165rem;
  157. font-size: 0.12rem;
  158. }
  159. #home_bg{
  160. height: 100%;
  161. width: 100%;
  162. }
  163. #home_bg img{
  164. width: 100%;
  165. }
  166. #home_bg img:nth-of-type(1){
  167. position: absolute;
  168. top: 0;
  169. }
  170. #home_bg img:nth-of-type(2){
  171. position: absolute;
  172. bottom: 0;
  173. }
  174. .home_content{
  175. width: 100%;
  176. position: absolute;
  177. top: 0;
  178. }
  179. .commodityList{
  180. width: 3.52rem;
  181. display: flex;
  182. flex-wrap: wrap;
  183. margin: auto;
  184. margin-top: 0.25rem;
  185. }
  186. .commodityList li{
  187. width: 0.9rem;
  188. height: 1.26rem;
  189. /*background: red;*/
  190. margin: 0 0.08rem;
  191. /*margin-bottom: 0.03rem;*/
  192. box-sizing: border-box;
  193. }
  194. .commodityList li:nth-of-type(1),.commodityList li:nth-of-type(7){
  195. margin-left: 0.35rem;
  196. }
  197. .commodityList li:nth-of-type(4),.commodityList li:nth-of-type(10){
  198. margin-left: 0.15rem;
  199. }
  200. .commodityList .commodityImg{
  201. width: 0.9rem;
  202. height: 0.9rem;
  203. background: #FFFFFF;
  204. border-radius: 0.05rem;
  205. }
  206. .commodityList .title{
  207. width: 0.89rem;
  208. overflow: hidden;
  209. text-overflow:ellipsis;
  210. white-space: nowrap;
  211. font-size: 0.11rem;
  212. line-height: 0.15rem;
  213. margin-top: 0.05rem;
  214. color: #FFFFFF;
  215. }
  216. .commodityList .price{
  217. display: flex;
  218. align-items: center;
  219. justify-content: space-between;
  220. }
  221. .commodityList .price .newPrice{
  222. color: #0DFFE6;
  223. line-height: 0.165rem;
  224. font-size: 0.12rem;
  225. }
  226. .commodityList .price .oldPrice{
  227. color: #FFFFFF;
  228. line-height: 0.125rem;
  229. font-size: 0.1rem;
  230. text-decoration: line-through;
  231. }