product.wxss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. .popup {
  2. position: fixed;
  3. left: 0;
  4. top: 0;
  5. right: 0;
  6. bottom: 0;
  7. z-index: 99;
  8. }
  9. .popup.show {
  10. display: block;
  11. }
  12. .popup.show .mask {
  13. animation: showPopup .2s linear both;
  14. }
  15. .popup.show .layer {
  16. animation: showLayer .2s linear both;
  17. }
  18. .popup.hide .mask {
  19. animation: hidePopup .2s linear both;
  20. }
  21. .popup.hide .layer {
  22. animation: hideLayer .2s linear both;
  23. }
  24. .popup.none {
  25. display: none;
  26. }
  27. .popup .mask {
  28. position: fixed;
  29. top: 0;
  30. width: 100%;
  31. height: 100%;
  32. z-index: 1;
  33. background-color: rgba(0,0,0,.4);
  34. }
  35. .popup .layer {
  36. position: fixed;
  37. z-index: 99;
  38. bottom: 0;
  39. width: 100%;
  40. min-height: 35vh;
  41. border-radius: 10rpx 10rpx 0 0;
  42. background-color: #fff;
  43. }
  44. .popup .layer .btn {
  45. height: 66rpx;
  46. line-height: 66rpx;
  47. border-radius: 100rpx;
  48. background: #dd524d;
  49. font-size: 30rpx;
  50. color: #fff;
  51. margin: 30rpx auto 20rpx;
  52. }
  53. @-webkit-keyframes showPopup {
  54. 0% {
  55. opacity: 0;
  56. }
  57. 100% {
  58. opacity: 1;
  59. }
  60. }
  61. @keyframes showPopup {
  62. 0% {
  63. opacity: 0;
  64. }
  65. 100% {
  66. opacity: 1;
  67. }
  68. }
  69. @-webkit-keyframes hidePopup {
  70. 0% {
  71. opacity: 1;
  72. }
  73. 100% {
  74. opacity: 0;
  75. }
  76. }
  77. @keyframes hidePopup {
  78. 0% {
  79. opacity: 1;
  80. }
  81. 100% {
  82. opacity: 0;
  83. }
  84. }
  85. @-webkit-keyframes showLayer {
  86. 0% {
  87. transform: translateY(120%);
  88. }
  89. 100% {
  90. transform: translateY(0);
  91. }
  92. }
  93. @keyframes showLayer {
  94. 0% {
  95. transform: translateY(120%);
  96. }
  97. 100% {
  98. transform: translateY(0);
  99. }
  100. }
  101. @-webkit-keyframes hideLayer {
  102. 0% {
  103. transform: translateY(0);
  104. }
  105. 100% {
  106. transform: translateY(120%);
  107. }
  108. }
  109. @keyframes hideLayer {
  110. 0% {
  111. transform: translateY(0);
  112. }
  113. 100% {
  114. transform: translateY(120%);
  115. }
  116. }
  117. .attr-content {
  118. padding: 25rpx 30rpx;
  119. }
  120. .attr-content .a-t {
  121. display: flex;
  122. }
  123. .attr-content .a-t image {
  124. width: 170rpx;
  125. height: 170rpx;
  126. flex-shrink: 0;
  127. border-radius: 8rpx;
  128. }
  129. .attr-content .a-t .right {
  130. display: flex;
  131. -webkit-box-orient: vertical;
  132. -webkit-box-direction: normal;
  133. flex-direction: column;
  134. padding-left: 24rpx;
  135. font-size: 26rpx;
  136. color: #606266;
  137. line-height: 42rpx;
  138. width: 75%;
  139. }
  140. .attr-content .a-t .right .price {
  141. font-size: 32rpx;
  142. color: #dd524d;
  143. margin: 10rpx 0rpx;
  144. }
  145. .attr-content .a-t .right .name {
  146. font-size: 32rpx;
  147. color: #303133;
  148. height: 50rpx;
  149. overflow: hidden;
  150. text-overflow: ellipsis;
  151. white-space: nowrap;
  152. display: block;
  153. }
  154. .attr-content .a-t .right .selected-text {
  155. margin-right: 10rpx;
  156. }
  157. .attr-content .attr-list {
  158. -webkit-box-orient: vertical;
  159. -webkit-box-direction: normal;
  160. flex-direction: column;
  161. font-size: 30rpx;
  162. color: #606266;
  163. padding-top: 30rpx;
  164. padding-left: 10rpx;
  165. }
  166. .attr-content .attr-list,.attr-content .item-list {
  167. display: flex;
  168. }
  169. .attr-content .item-list {
  170. padding: 20rpx 0 0;
  171. flex-wrap: wrap;
  172. }
  173. .attr-content .item-list text {
  174. display: flex;
  175. -webkit-box-align: center;
  176. align-items: center;
  177. -webkit-box-pack: center;
  178. justify-content: center;
  179. background: #eee;
  180. margin-right: 20rpx;
  181. margin-bottom: 20rpx;
  182. border-radius: 100rpx;
  183. min-width: 60rpx;
  184. height: 60rpx;
  185. padding: 0 20rpx;
  186. font-size: 34rpx;
  187. color: #303133;
  188. }
  189. .attr-content .item-list .selected {
  190. font-weight:bold;
  191. background: #ff0000;
  192. color: #ffffff;
  193. }
  194. page {
  195. background: #f0f0f0;
  196. }
  197. .contentBottomHeight {
  198. height: 110rpx;
  199. }
  200. .goodsBottom {
  201. height: 160rpx;
  202. }
  203. .iconenter {
  204. font-size: 30rpx;
  205. color: #888;
  206. }
  207. .con_image {
  208. width: 130rpx;
  209. height: 130rpx;
  210. display: inline-block;
  211. padding: 15rpx;
  212. }
  213. .con_image image {
  214. width: 100%;
  215. height: 100%;
  216. }
  217. .rich-img {
  218. width: 100%!important;
  219. height: auto;
  220. }