goods_info.wxss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. page{
  2. background-color: #f1f1f1;
  3. word-break: break-all;
  4. }
  5. .container{
  6. height: 100%;
  7. }
  8. .pics{
  9. width: 100%;
  10. height: 700rpx;
  11. }
  12. .pics .swiper_pics{
  13. width: 100%;
  14. height: 100%;
  15. }
  16. .pics .pic{
  17. width: 100%;
  18. height: 700rpx;
  19. }
  20. .introduce{
  21. margin-top: 15rpx;
  22. overflow: hidden;
  23. }
  24. .introduce .goods {
  25. /* width: 740rpx; */
  26. /* height: 100rpx; */
  27. margin: 0 auto;
  28. padding: 0 20rpx;
  29. background-color: rgb(254,254,254);
  30. }
  31. .introduce .goods .goods_price image{
  32. width: 30rpx;
  33. height: 30rpx;
  34. }
  35. .introduce .goods .goods_price{
  36. font-size: 50rpx;
  37. color: #ff0000;
  38. }
  39. .introduce .goods .goods_score{
  40. margin-top: 5rpx;
  41. font-size: 22rpx;
  42. color: gray;
  43. overflow: hidden;
  44. }
  45. .goods_score .sale_num{
  46. float: left;
  47. }
  48. .goods_score .like_num{
  49. float: left;
  50. }
  51. .goods_info_options{
  52. width: 700rpx;
  53. height: 80rpx;
  54. font-size: 25rpx;
  55. display: flex;
  56. justify-items: right;
  57. align-items: center;
  58. }
  59. .goods_info_options .toright{
  60. width: 30rpx;
  61. height: 30rpx;
  62. position: absolute;
  63. right: 30rpx;
  64. }
  65. .title_bar{
  66. margin: 10rpx 0;
  67. width: 100%;
  68. height: 45rpx;
  69. /* background-color: rgb(254,254,254); */
  70. }
  71. .title_bar .title{
  72. float: left;
  73. height: 100%;
  74. margin: 0 15rpx;
  75. }
  76. .title_bar .select{
  77. border-bottom:5rpx solid var(--themeColor) ;
  78. }
  79. .introduce .info{
  80. height: 360rpx;
  81. background-color: rgb(254,254,254);
  82. }
  83. .info .info_swiper{
  84. width: 100%;
  85. height: 100%;
  86. }
  87. .goods_info{
  88. padding: 15rpx;
  89. }
  90. .goods_info .goods_item{
  91. margin: 10rpx 0;
  92. overflow: hidden;
  93. display: flex;
  94. }
  95. .goods_info .goods_item .title{
  96. flex: 2;
  97. color: gray;
  98. /* float: left; */
  99. }
  100. .goods_info .goods_item .content{
  101. flex: 8;
  102. /* height: 100%; */
  103. /* float: left; */
  104. }
  105. .goods_info_add_cart{
  106. width: 740rpx;
  107. height: 80rpx;
  108. position: fixed;
  109. left: 5rpx;
  110. bottom: 10rpx;
  111. }
  112. .goods_info_add_cart .btn{
  113. width: 100%;
  114. height: 100%;
  115. background-color: var(--themeColor);
  116. border-radius: 50rpx;
  117. color: white;
  118. font-size: 30rpx;
  119. }
  120. .float-left{
  121. float: left;
  122. }
  123. .float-right{
  124. float: right;
  125. }
  126. /*
  127. 选规格页面
  128. */
  129. .mask-layer{
  130. width: 100vw;
  131. height: 100vh;
  132. background-color: rgba(0, 0, 0, 0.8);
  133. position: fixed;
  134. top: 0;
  135. z-index: 1000;
  136. }
  137. .select_view{
  138. position: fixed;
  139. bottom: 0vh;
  140. height: 80vh;
  141. padding: 20rpx 15rpx 0;
  142. background-color: #FFFFFF;
  143. z-index: 2000;
  144. }
  145. .selected_goods{
  146. height: 22vh;
  147. /* overflow: hidden; */
  148. }
  149. image{
  150. width: 100%;
  151. height: 100%;
  152. }
  153. .selected_goods .goods_info_item{
  154. margin: 0 10rpx 10rpx;
  155. width: 500rpx;
  156. }
  157. .selected_goods .selected_goods_img{
  158. width: 200rpx;
  159. height: 200rpx;
  160. }
  161. #goods_info_img{
  162. border-radius: 10rpx;
  163. }
  164. .selected_goods .goods_name{
  165. font-size: 35rpx;
  166. font-weight: 600;
  167. }
  168. .selected_goods .selected_options{
  169. color: gray;
  170. font-size: 25rpx;
  171. }
  172. .selected_goods .selected_options text{
  173. display:-webkit-box;
  174. -webkit-line-clamp:1;
  175. overflow:hidden;
  176. text-overflow:ellipsis;
  177. -webkit-box-orient:vertical;
  178. word-break:break-all;
  179. }
  180. .selected_goods .goods_price{
  181. font-size: 33rpx;
  182. color: red;
  183. }
  184. .select_goods_options{
  185. height: 46vh;
  186. /* overflow: hidden; */
  187. }
  188. .select_goods_options .goods_num{
  189. margin: 25rpx 0;
  190. width: 100%;
  191. height: 50rpx;
  192. overflow: hidden;
  193. }
  194. .select_goods_options .goods_num #gNum{
  195. color: gray;
  196. float: left;
  197. }
  198. .select_goods_options .goods_num .action{
  199. width: 150rpx;
  200. float: right;
  201. display: flex;
  202. justify-items: left;
  203. align-items: center;
  204. overflow: hidden;
  205. }
  206. .select_goods_options .scroll_options{
  207. width: 100%;
  208. height: 40vh;
  209. }
  210. .scroll_options .options .option_title{
  211. margin: 25rpx 0;
  212. width: 100%;
  213. height: 50rpx;
  214. color: gray;
  215. }
  216. .scroll_options .options .option_item{
  217. overflow: hidden;
  218. }
  219. .scroll_options .options .option_item .option_type{
  220. /* 30 +600 -750=120 */
  221. margin: 10rpx 20rpx;
  222. float: left;
  223. }
  224. .type{
  225. width: 200rpx;
  226. height: 80rpx;
  227. background-color: #F8F8F8;
  228. border-radius: 13rpx;
  229. text-align: center;
  230. font-size: 30rpx;
  231. line-height: 80rpx;
  232. }
  233. .selected{
  234. color: var(--themeColor);
  235. border: 2rpx solid var(--themeColor);
  236. background-color: #EBF8FE;
  237. }
  238. .add_cart{
  239. /* margin: 30rpx 0 0; */
  240. width: 720rpx;
  241. height: 80rpx;
  242. position: fixed;
  243. /* left: 5rpx; */
  244. bottom: 10rpx;
  245. }
  246. .add_cart .btn{
  247. width: 100%;
  248. height: 100%;
  249. background-color: var(--themeColor);
  250. border-radius: 50rpx;
  251. color: white;
  252. font-size: 30rpx;
  253. }