app.wxss 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. @import "/icon.wxss";
  2. @import "/common.wxss";
  3. page {
  4. background-color: #f6f6f6;
  5. font-size: 28rpx;
  6. font-weight: 400;
  7. color: #333;
  8. }
  9. .i-load-more {
  10. width: 65%;
  11. font-size: 24rpx;
  12. display: flex;
  13. align-items: center;
  14. justify-content: center;
  15. margin: 60rpx auto;
  16. }
  17. .i-load-more-loading {
  18. display: inline-block;
  19. margin-right: 24rpx;
  20. vertical-align: middle;
  21. width: 28rpx;
  22. height: 28rpx;
  23. background: 0 0;
  24. border-radius: 50%;
  25. border: 4rpx solid #e9eaec;
  26. border-color: #e9eaec #e9eaec #e9eaec #2d8cf0;
  27. animation: btn-spin 0.6s linear;
  28. animation-iteration-count: infinite;
  29. }
  30. .i-load-more-tip {
  31. display: inline-block;
  32. vertical-align: middle;
  33. color: #999;
  34. }
  35. .i-load-more-line {
  36. display: flex;
  37. border-top: 0;
  38. }
  39. .i-load-more-line .i-load-more-tip {
  40. position: relative;
  41. top: -.1em;
  42. padding: 0 0.55em;
  43. }
  44. .i-load-more-empty {
  45. width: 8rpx;
  46. height: 8rpx;
  47. border-radius: 50%;
  48. background-color: #e5e5e5;
  49. display: inline-block;
  50. position: relative;
  51. vertical-align: 0;
  52. top: -.16em;
  53. }
  54. @-webkit-keyframes btn-spin {
  55. 0% {
  56. transform: rotate(0);
  57. }
  58. 100% {
  59. transform: rotate(360deg);
  60. }
  61. }
  62. @keyframes btn-spin {
  63. 0% {
  64. transform: rotate(0);
  65. }
  66. 100% {
  67. transform: rotate(360deg);
  68. }
  69. }
  70. /**首页规格弹窗begin ***/
  71. .sku-content {
  72. position: fixed;
  73. bottom: 0px;
  74. z-index: 9999;
  75. }
  76. .sku-card {
  77. width: 750rpx;
  78. box-sizing: border-box;
  79. border-radius: 30rpx 30rpx 0 0;
  80. background: #fff;
  81. overflow: hidden;
  82. padding: 40rpx 40rpx 0 40rpx;
  83. padding-bottom: constant(safe-area-inset-bottom);
  84. padding-bottom: env(safe-area-inset-bottom);
  85. }
  86. .sku-card .close {
  87. position: absolute;
  88. right: 28rpx;
  89. top: 28rpx;
  90. width: 40rpx;
  91. height: 40rpx;
  92. display: flex;
  93. align-items: center;
  94. justify-content: center;
  95. }
  96. .sku-card .close image {
  97. width: 26rpx;
  98. height: 26rpx;
  99. }
  100. .sku-card .sku-header {
  101. display: flex;
  102. align-items: flex-start;
  103. margin-bottom: 40rpx;
  104. }
  105. .sku-card .sku-header .sku-img {
  106. width: 160rpx;
  107. height: 160rpx;
  108. border: 1rpx solid #e4e4e4;
  109. margin-right: 30rpx;
  110. }
  111. .sku-card .sku-header .sku-img image {
  112. border: none;
  113. }
  114. .sku-card .sku-header .sku-desc {
  115. display: flex;
  116. flex-direction: column;
  117. }
  118. .sku-card .sku-header .sku-desc .sku-title {
  119. width: 390rpx;
  120. min-height: 60rpx;
  121. margin-bottom: 16rpx;
  122. color: #444;
  123. font-weight: bold;
  124. position: relative;
  125. }
  126. .sku-card .sku-header .sku-desc .sku-title span {
  127. position: absolute;
  128. width: 390rpx;
  129. height: 60rpx;
  130. left: 0;
  131. top: 0;
  132. font-size: 26rpx;
  133. line-height: 31rpx;
  134. display: -webkit-box;
  135. -webkit-box-orient: vertical;
  136. -webkit-line-clamp: 2;
  137. overflow: hidden;
  138. text-overflow: initial;
  139. white-space: normal;
  140. }
  141. .sku-card .sku-header .sku-price {
  142. display: flex;
  143. align-items: flex-end;
  144. margin-bottom: 12rpx;
  145. font-size: 24rpx;
  146. line-height: 24rpx;
  147. }
  148. .sku-card .sku-header .sku-price .sale-price {
  149. color: #ff5344;
  150. margin-right: 12rpx;
  151. margin-bottom: -4rpx;
  152. }
  153. .sku-card .sku-header .sku-price .sale-price span {
  154. font-size: 56rpx;
  155. line-height: 56rpx;
  156. margin-left: 8rpx;
  157. font-weight: bold;
  158. }
  159. .sku-card .sku-header .sku-price .market-price {
  160. text-decoration: line-through;
  161. color: #999;
  162. margin-right: 30rpx;
  163. }
  164. .sku-card .sku-header .sku-switch-on {
  165. font-size: 24rpx;
  166. color: #444;
  167. }
  168. .sku-card .sku-msg {
  169. width: 670rpx;
  170. margin: 0 auto 60rpx;
  171. border-radius: 16rpx;
  172. background: linear-gradient(to right, #fff7f0, #fff4ec);
  173. display: flex;
  174. align-items: flex-start;
  175. padding: 20rpx;
  176. color: #ca7e57;
  177. box-sizing: border-box;
  178. }
  179. .sku-card .sku-msg .tag {
  180. border-radius: 16rpx;
  181. border: 1rpx solid #ffa49c;
  182. font-size: 20rpx;
  183. line-height: 28rpx;
  184. font-weight: 500;
  185. padding: 0 8rpx;
  186. margin-right: 8rpx;
  187. color: #ff5344;
  188. white-space: nowrap;
  189. vertical-align: middle;
  190. }
  191. .sku-card .sku-msg .sku-activity-msg {
  192. color: #ca7e57;
  193. font-size: 24rpx;
  194. line-height: 32rpx;
  195. width: 540rpx;
  196. font-weight: 500;
  197. }
  198. .sku-card .sku-spec {
  199. width: 670rpx;
  200. margin: 0 auto 40rpx;
  201. display: flex;
  202. align-items: flex-start;
  203. }
  204. .sku-card .sku-spec .title {
  205. font-size: 26rpx;
  206. line-height: 50rpx;
  207. margin-right: 8rpx;
  208. }
  209. .sku-card .sku-spec .spec-list {
  210. width: 600rpx;
  211. display: flex;
  212. flex: 1;
  213. flex-wrap: wrap;
  214. }
  215. .sku-card .sku-spec .spec-list span {
  216. position: relative;
  217. height: 46rpx;
  218. background: #f6f6f6;
  219. border: 2rpx solid #f6f6f6;
  220. text-align: center;
  221. line-height: 46rpx;
  222. font-size: 26rpx;
  223. margin: 0 8rpx 20rpx 0;
  224. color: #666;
  225. border-radius: 46rpx;
  226. padding: 0 30rpx;
  227. display: block;
  228. white-space: nowrap;
  229. }
  230. .sku-card .sku-spec .spec-list .on {
  231. border-color: #ffa49c;
  232. color: #ff5344;
  233. background: #fff;
  234. }
  235. .sku-card .sku-spec .spec-list .disabled {
  236. color: #ccc;
  237. }
  238. .sku-card .sku-num-content {
  239. width: 670rpx;
  240. margin: 0 auto 32rpx;
  241. display: flex;
  242. align-items: center;
  243. }
  244. .sku-card .sku-num-content .title {
  245. width: 80rpx;
  246. font-size: 26rpx;
  247. line-height: 50rpx;
  248. }
  249. .sku-card .sku-num-content .msg {
  250. width: 420rpx;
  251. color: #aaa;
  252. font-size: 26rpx;
  253. line-height: 50rpx;
  254. text-align: right;
  255. }
  256. .sku-card .sku-num-content .even-num {
  257. color: #ff5344;
  258. font-size: 20rpx;
  259. white-space: nowrap;
  260. }
  261. .sku-card .sku-confirm {
  262. width: 750rpx;
  263. height: 96rpx;
  264. background: linear-gradient(to right, #ff5041, #ff695c);
  265. line-height: 96rpx;
  266. text-align: center;
  267. color: #fff;
  268. font-size: 30rpx;
  269. margin: 0 0 0 -40rpx;
  270. padding: 0;
  271. border-radius: 0;
  272. font-weight: bold;
  273. }
  274. .sku-card button.sku-confirm::after{
  275. border: 0;
  276. }
  277. .sku-card button[disabled].sku-confirm{
  278. background: #f6f6f6;
  279. }
  280. .i-input-number {
  281. color: #495060;
  282. display: flex;
  283. align-items: center;
  284. position: relative;
  285. }
  286. .i-input-number view {
  287. width: 48rpx;
  288. height: 48rpx;
  289. display: inline-block;
  290. vertical-align: middle;
  291. }
  292. .i-input-number view image {
  293. width: 48rpx;
  294. height: 48rpx;
  295. }
  296. .i-input-number-minus {
  297. border-right: none;
  298. border-radius: 4rpx 0 0 4rpx;
  299. }
  300. .i-input-number-plus {
  301. border-left: none;
  302. border-radius: 0 4rpx 4rpx 0;
  303. }
  304. .i-input-number-text {
  305. text-align: center;
  306. height: 48rpx;
  307. width: 66rpx;
  308. font-size: 24rpx;
  309. line-height: 48rpx;
  310. color: #495060;
  311. z-index: 0;
  312. }
  313. /**首页规格弹出end***/
  314. .mask {
  315. width: 100%;
  316. height: 100%;
  317. background: #000;
  318. position: fixed;
  319. left: 0;
  320. top: 0;
  321. z-index: 99;
  322. line-height: 80rpx;
  323. opacity: 0.5;
  324. }
  325. /* 订单提醒begin */
  326. .order-notify {
  327. position: fixed;
  328. left: 0;
  329. top: 100rpx;
  330. z-index: 200;
  331. }
  332. /* 订单提醒end */
  333. image {
  334. will-change: transform;
  335. }
  336. .bgDisabled {
  337. background: #ccc!important;
  338. }
  339. /* 安全区域 */
  340. .safebottom {
  341. padding-bottom: env(safe-area-inset-bottom) !important;
  342. }