shopPage.wxss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. /* pages/shopPage/shopPage.wxss */
  2. /* 颜色记录:背景色:#f8f8f8;店铺热卖背景色:#efefef;商品列表背景色:#fafafa */
  3. page {
  4. padding-bottom: 90rpx;
  5. background: #f8f8f8;
  6. }
  7. .shop-container {
  8. /* position: fixed; */
  9. width: 100%;
  10. height: 100%;
  11. /* overflow: auto; */
  12. background: #f8f8f8;
  13. }
  14. /* 店铺信息 */
  15. .shop {
  16. display: flex;
  17. padding: 20rpx;
  18. padding-top: 30rpx;
  19. box-sizing: border-box;
  20. background: linear-gradient( #121a2a ,#102b6a); /* 标准的语法(必须放在最后) */
  21. }
  22. .shopInfo {
  23. flex: 7;
  24. display: flex;
  25. }
  26. .shopInfo .shopLogo {
  27. display: inline-block;
  28. margin-right: 20rpx;
  29. vertical-align: middle;
  30. background: #ffffff;
  31. border-radius: 8rpx;
  32. width: 100rpx;
  33. height: 100rpx;
  34. min-width: 100rpx;
  35. min-height: 100rpx;
  36. }
  37. .shopInfo image {
  38. display: block;
  39. width: 100%;
  40. height: 100%;
  41. border-radius: 8rpx;
  42. }
  43. .shopInfo .shopTitle {
  44. padding: 13rpx 0;
  45. display: flex;
  46. flex-direction: column;
  47. justify-content: space-between;
  48. }
  49. .shopInfo .shopTitle .shopname {
  50. display: inline-block;
  51. vertical-align: middle;
  52. padding-right: 8rpx;
  53. font-size: 30rpx;
  54. line-height: 1em;
  55. color: #fff;
  56. font-weight: bold;
  57. }
  58. .self-operate {
  59. display: inline-block;
  60. vertical-align: middle;
  61. background: #e43130;
  62. color: #fff;
  63. font-size: 23rpx;
  64. padding: 5rpx 15rpx;
  65. margin-left: 15rpx;
  66. }
  67. .shopInfo .shopTitle .shopIntro {
  68. color: #fff;
  69. font-size: 24rpx;
  70. display: -webkit-box;
  71. line-height: 40rpx;
  72. word-break: break-all;
  73. -webkit-box-orient: vertical;
  74. -webkit-line-clamp: 1;
  75. overflow: hidden;
  76. text-overflow: ellipsis;
  77. }
  78. /* 搜索框 */
  79. .head-bg {
  80. width: 100%;
  81. height: 500rpx;
  82. background: linear-gradient( #102b6a ,#f8f8f8); /* 标准的语法(必须放在最后) */
  83. }
  84. .shop-container.bg-sear {
  85. position: fixed;
  86. z-index: 999;
  87. width: 100%;
  88. line-height: 56rpx;
  89. background: #fff;
  90. padding-bottom: 20rpx;
  91. text-align: center;
  92. top: 0;
  93. }
  94. .bg-search {
  95. /* background: #fff; */
  96. height: 90rpx;
  97. display: flex;
  98. justify-content: center;
  99. }
  100. .navtop {
  101. position: fixed;
  102. top: 0rpx;
  103. z-index: 99;
  104. width: 100%;
  105. height: 110rpx;
  106. background: linear-gradient(to top right,#151d2c , #102b6a); /* 标准的语法(必须放在最后) */
  107. }
  108. .bg-sear .section {
  109. display: flex;
  110. justify-content: center;
  111. align-items: center;
  112. height: 60rpx;
  113. background: #fff;
  114. z-index: 1;
  115. border-radius: 50rpx;
  116. width: 92%;
  117. margin: auto;
  118. left: 4%;
  119. background: #f7f7f7;
  120. }
  121. .bg-sear .section .placeholder {
  122. display: block;
  123. font-size: 24rpx;
  124. color: #999;
  125. }
  126. .bg-sear .section .search-img {
  127. width: 32rpx;
  128. height: 32rpx;
  129. margin-right: 10rpx;
  130. }
  131. /* 内容大盒子 */
  132. .prod-wrapper {
  133. position: absolute;
  134. top: 250rpx;
  135. box-sizing: border-box;
  136. display: block;
  137. margin-top: 15rpx;
  138. margin-left: 2.5%;
  139. margin-right: 2.5%;
  140. margin-bottom: 100rpx;
  141. /* background: #fff; */
  142. border-radius: 12rpx;
  143. background: transparent;
  144. width: 95%;
  145. }
  146. /* 导航分类 轮播图 */
  147. .content {
  148. /* background: #fff; */
  149. border-radius: 30rpx;
  150. background: transparent;
  151. }
  152. swiper {
  153. width: 100%;
  154. height: 350rpx;
  155. overflow: hidden;
  156. }
  157. swiper.pic-swiper {
  158. background: #fff;
  159. height: 780rpx;
  160. border-radius: 15rpx 15rpx 0 0;
  161. }
  162. swiper-item {
  163. font-size: 26rpx;
  164. font-weight: bold;
  165. }
  166. swiper.pic-swiper .img-box {
  167. font-size: 0;
  168. }
  169. .wx-swiper-dots {
  170. margin-bottom: 15rpx;
  171. }
  172. .banner-item {
  173. box-sizing: border-box;
  174. }
  175. swiper.pic-swiper .banner {
  176. position: absolute;
  177. width: 100%;
  178. height: 780rpx;
  179. display: inline-block;
  180. }
  181. .tit {
  182. padding: 40rpx 0;
  183. text-align: center;
  184. background: #fff;
  185. font-size: 28rpx;
  186. }
  187. .hotsell-tit {
  188. font-size: 27rpx;
  189. color: #000;
  190. font-weight: bold;
  191. vertical-align: middle;
  192. }
  193. .hotsell {
  194. display: inline-block;
  195. width: 55rpx;
  196. height: 50rpx;
  197. margin-right: .2em;
  198. vertical-align: middle;
  199. }
  200. .hotsell > image {
  201. width: 100%;
  202. height: 100%;
  203. }
  204. /* 商品列表 */
  205. .prodlist-item-cont {
  206. background: #ffffff;
  207. padding-top: 20rpx;
  208. }
  209. .prod-list .title {
  210. position: relative;
  211. height: 64rpx;
  212. line-height: 64rpx;
  213. font-size: 32rpx;
  214. padding: 30rpx 0 10rpx 30rpx;
  215. color: #333;
  216. background: #fff;
  217. }
  218. .title .more-prod-cont {
  219. color: #999;
  220. display: inline-block;
  221. text-align: right;
  222. }
  223. .title .more-prod-cont .more {
  224. position: absolute;
  225. right: 30rpx;
  226. top: 48rpx;
  227. color: #666;
  228. font-size: 24rpx;
  229. padding: 0 20rpx;
  230. height: 44rpx;
  231. line-height: 44rpx;
  232. }
  233. .title .more-prod-cont .arrow {
  234. width: 15rpx;
  235. height: 15rpx;
  236. transform: rotate(45deg);
  237. position: absolute;
  238. top: 58rpx;
  239. right: 30rpx;
  240. border-top: 2rpx solid #666;
  241. border-right: 2rpx solid #666;
  242. }
  243. .prod-list .prod-items {
  244. width: 345rpx;
  245. display: inline-block;
  246. background: #fff;
  247. padding-bottom: 20rpx;
  248. box-sizing: border-box;
  249. /* box-shadow: 0rpx 5rpx 15rpx rgba(58,134,185,0.2); */
  250. box-shadow: 0rpx 3rpx 12rpx rgba(23, 24, 26, 0.2);
  251. }
  252. .prod-list .prod-items:nth-child(2n-1) {
  253. margin: 0 12rpx 20rpx 0rpx;
  254. }
  255. .prod-list .prod-items:nth-child(2n) {
  256. margin: 0 0rpx 20rpx 11.5rpx;
  257. }
  258. .prod-items .hot-imagecont .hotsaleimg {
  259. width: 341rpx;
  260. height: 341rpx;
  261. }
  262. .prod-items .hot-text .prod-name {
  263. font-size: 28rpx;
  264. white-space: nowrap;
  265. overflow: hidden;
  266. text-overflow: ellipsis;
  267. }
  268. .prod-items .hot-imagecont {
  269. font-size: 0;
  270. text-align: center;
  271. }
  272. .prod-items .hot-text {
  273. margin-top: 20rpx;
  274. padding: 0 10rpx;
  275. }
  276. .prod-items .hot-text .prod-info, .more-prod .prod-text-right .prod-info {
  277. font-size: 22rpx;
  278. color: #999;
  279. white-space: nowrap;
  280. overflow: hidden;
  281. text-overflow: ellipsis;
  282. }
  283. .prod-items .hot-text .prod-text-info {
  284. position: relative;
  285. height: 70rpx;
  286. line-height: 70rpx;
  287. font-family: Arial;
  288. }
  289. .prod-items .hot-text .prod-text-info .hotprod-price {
  290. display: inline;
  291. font-size: 26rpx;
  292. color: #eb2444;
  293. }
  294. .prod-items .hot-text .prod-text-info .basket-img {
  295. width: 50rpx;
  296. height: 50rpx;
  297. position: absolute;
  298. right: 0;
  299. bottom: 2rpx;
  300. padding: 8rpx;
  301. }
  302. .singal-price {
  303. display: inline;
  304. font-size: 20rpx;
  305. text-decoration: line-through;
  306. color: #777;
  307. margin-left: 15rpx;
  308. }
  309. /* 查看更多 */
  310. .view-more {
  311. height: 60rpx;
  312. line-height: 60rpx;
  313. text-align: center;
  314. color: #999;
  315. padding: 20rpx 0;
  316. font-size: 24rpx;
  317. border-radius: 12rpx;
  318. }
  319. .display{
  320. display: none;
  321. }