common.scss 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. @mixin zj-card {
  2. background: #FFFFFF;
  3. border-radius: 20rpx;
  4. // box-shadow: -10rpx 12rpx 96rpx 2rpx rgba(31, 36, 99, 0.2);
  5. box-shadow: 18rpx 10rpx 16rpx 2rpx rgba(31, 36, 99, 0.1);
  6. overflow: hidden;
  7. position: relative;
  8. }
  9. @mixin flex_ac {
  10. display: flex;
  11. align-items: center;
  12. }
  13. @mixin flex_abc {
  14. display: flex;
  15. align-items: center;
  16. justify-content: center;
  17. }
  18. @mixin flex_abs {
  19. display: flex;
  20. align-items: center;
  21. justify-content: space-between;
  22. }
  23. .footer-btn-group {
  24. padding: 25rpx 30rpx;
  25. display: flex;
  26. align-items: center;
  27. ::v-deep .u-button {
  28. flex-shrink: 0;
  29. font-size: 32rpx;
  30. margin-right: 30rpx;
  31. // border-radius: 20rpx !important;
  32. flex: 1;
  33. &:last-child {
  34. min-width: 360rpx !important;
  35. margin-right: 0;
  36. }
  37. }
  38. }
  39. .footer-btn-group-end {
  40. padding: 25rpx 30rpx;
  41. display: flex;
  42. justify-content: flex-end;
  43. ::v-deep .u-button {
  44. width: unset;
  45. margin: unset;
  46. margin-left: 20rpx;
  47. }
  48. }
  49. .goods-item {
  50. @include zj-card;
  51. display: flex;
  52. image {
  53. width: 140rpx;
  54. height: 140rpx;
  55. border-radius: 12rpx;
  56. flex-shrink: 0;
  57. }
  58. .main {
  59. flex: 1;
  60. margin-left: 20rpx;
  61. .name {
  62. font-weight: 500;
  63. line-height: 36rpx;
  64. }
  65. .bottom {
  66. display: flex;
  67. justify-content: space-between;
  68. align-items: center;
  69. margin-top: 10rpx;
  70. .price {
  71. color: $minor-color;
  72. font-weight: 500;
  73. font-size: 32rpx;
  74. text {
  75. font-size: 24rpx;
  76. }
  77. }
  78. }
  79. ::v-deep .u-number-box {
  80. .ctrl {
  81. width: 40rpx;
  82. height: 40rpx;
  83. border-radius: 50%;
  84. display: flex;
  85. justify-content: center;
  86. align-items: center;
  87. }
  88. .minus {
  89. border: 1px solid $theme-color;
  90. box-sizing: border-box;
  91. }
  92. .plus {
  93. background-color: $theme-color;
  94. }
  95. .u-number-box__input {
  96. width: 60rpx !important;
  97. background: none !important;
  98. }
  99. }
  100. }
  101. }
  102. .goods-waterfall-list {
  103. padding: 20rpx 20rpx 0;
  104. box-sizing: border-box;
  105. display: flex;
  106. justify-content: space-between;
  107. .left, .right {
  108. display: flex;
  109. flex-direction: column;
  110. }
  111. .item {
  112. @include zj-card;
  113. width: 348rpx;
  114. background: #FFFFFF;
  115. box-sizing: border-box;
  116. margin-bottom: 20rpx;
  117. border-radius: 20rpx;
  118. overflow: hidden;
  119. // box-shadow: -10rpx 12rpx 96rpx 2rpx rgba(31,36,99,0.05);
  120. .image {
  121. width: 348rpx;
  122. height: 348rpx;
  123. position: relative;
  124. .img {
  125. width: 348rpx;
  126. height: 348rpx;
  127. display: block;
  128. }
  129. .water {
  130. width: 348rpx;
  131. height: 348rpx;
  132. display: block;
  133. position: absolute;
  134. left: 0;
  135. top: 0;
  136. z-index: 1;
  137. }
  138. }
  139. .content {
  140. padding: 15rpx 20rpx;
  141. .title {
  142. font-size: 30rpx;
  143. color: #333333;
  144. line-height: 36rpx;
  145. font-weight: 600;
  146. max-height: 72rpx;
  147. }
  148. .tags {
  149. display: flex;
  150. flex-wrap: wrap;
  151. .it {
  152. height: 28rpx;
  153. padding: 0 10rpx;
  154. line-height: 28rpx;
  155. border-radius: 10rpx;
  156. background: #e8e8e8;
  157. font-size: 20rpx;
  158. color: #666666;
  159. margin-right: 10rpx;
  160. margin-top: 10rpx;
  161. }
  162. }
  163. .tags2 {
  164. display: flex;
  165. flex-wrap: wrap;
  166. .it {
  167. font-size: 20rpx;
  168. height: 30rpx;
  169. line-height: 30rpx;
  170. padding: 0 6rpx;
  171. margin-right: 10rpx;
  172. border: 1px solid #FE781F;
  173. color: #FE781F;
  174. box-sizing: border-box;
  175. margin-top: 10rpx;
  176. display: flex;
  177. align-items: center;
  178. flex-direction: row;
  179. border-radius: 10rpx;
  180. }
  181. }
  182. .price {
  183. display: flex;
  184. align-items: flex-end;
  185. margin-top: 14rpx;
  186. .price-1 {
  187. font-size: 32rpx;
  188. color: $minor-color;
  189. line-height: 32rpx;
  190. font-weight: 500;
  191. }
  192. .price-2 {
  193. font-size: 26rpx;
  194. color: #666666;
  195. line-height: 26rpx;
  196. text-decoration: line-through;
  197. margin-left: 12rpx;
  198. }
  199. }
  200. .text {
  201. font-size: 24rpx;
  202. color: #999999;
  203. margin-top: 12rpx;
  204. }
  205. }
  206. }
  207. }
  208. .goods-row-list {
  209. padding: 20rpx 20rpx 0;
  210. box-sizing: border-box;
  211. .item {
  212. @include zj-card;
  213. padding: 20rpx;
  214. background: #FFFFFF;
  215. border-radius: 20rpx;
  216. display: flex;
  217. margin-bottom: 20rpx;
  218. // box-shadow: -10rpx 12rpx 96rpx 2rpx rgba(31,36,99,0.05);
  219. .image {
  220. width: 240rpx;
  221. height: 240rpx;
  222. display: block;
  223. flex-shrink: 0;
  224. border-radius: 20rpx;
  225. position: relative;
  226. .img {
  227. width: 240rpx;
  228. height: 240rpx;
  229. display: block;
  230. }
  231. .water {
  232. width: 240rpx;
  233. height: 240rpx;
  234. display: block;
  235. position: absolute;
  236. left: 0;
  237. top: 0;
  238. z-index: 1;
  239. }
  240. }
  241. .right {
  242. flex: 1;
  243. display: flex;
  244. flex-direction: column;
  245. justify-content: space-between;
  246. margin-left: 20rpx;
  247. .title {
  248. font-size: 30rpx;
  249. color: #333333;
  250. line-height: 36rpx;
  251. font-weight: 600;
  252. max-height: 72rpx;
  253. }
  254. .tags {
  255. display: flex;
  256. flex-wrap: wrap;
  257. .it {
  258. height: 28rpx;
  259. padding: 0 10rpx;
  260. line-height: 28rpx;
  261. border-radius: 10rpx;
  262. background: #e8e8e8;
  263. font-size: 20rpx;
  264. color: #666666;
  265. margin-right: 10rpx;
  266. margin-top: 10rpx;
  267. }
  268. }
  269. .tags2 {
  270. display: flex;
  271. flex-wrap: wrap;
  272. .it {
  273. font-size: 20rpx;
  274. height: 30rpx;
  275. line-height: 30rpx;
  276. padding: 0 6rpx;
  277. margin-right: 10rpx;
  278. border: 1px solid #FE781F;
  279. color: #FE781F;
  280. box-sizing: border-box;
  281. margin-top: 10rpx;
  282. display: flex;
  283. align-items: center;
  284. flex-direction: row;
  285. border-radius: 10rpx;
  286. }
  287. }
  288. .bottom {
  289. display: flex;
  290. align-items: flex-end;
  291. justify-content: space-between;
  292. .price {
  293. margin-top: 10rpx;
  294. display: flex;
  295. align-items: flex-end;
  296. .price-1 {
  297. font-size: 32rpx;
  298. color: $minor-color;
  299. line-height: 32rpx;
  300. font-weight: 500;
  301. }
  302. .price-2 {
  303. font-size: 26rpx;
  304. color: #666666;
  305. line-height: 26rpx;
  306. text-decoration: line-through;
  307. margin-left: 12rpx;
  308. }
  309. }
  310. .text {
  311. font-size: 24rpx;
  312. color: #999999;
  313. }
  314. }
  315. }
  316. }
  317. }
  318. .global-mask {
  319. position: fixed;
  320. top: 0;
  321. left: 0;
  322. z-index: 998;
  323. width: 100%;
  324. height: 100%;
  325. background: rgba($color: #000000, $alpha: 0.3);
  326. }
  327. .global-dialog {
  328. position: fixed;
  329. top: calc(50vh - 150rpx);
  330. left: 60rpx;
  331. z-index: 999;
  332. width: 630rpx;
  333. background: #FFFFFF;
  334. border-radius: 15rpx;
  335. overflow: hidden;
  336. .title {
  337. font-size: 36rpx;
  338. font-weight: 500;
  339. text-align: center;
  340. line-height: 100rpx;
  341. padding-bottom: 10rpx;
  342. }
  343. .content {
  344. .text {
  345. font-size: 32rpx;
  346. text-align: center;
  347. padding-bottom: 40rpx;
  348. }
  349. .form {
  350. padding: 0 40rpx;
  351. .item {
  352. display: flex;
  353. align-items: center;
  354. justify-content: space-between;
  355. margin-bottom: 40rpx;
  356. input {
  357. width: 340rpx;
  358. height: 60rpx;
  359. border: 1px solid #eaeaea;
  360. border-radius: 10rpx;
  361. padding: 0 20rpx;
  362. }
  363. }
  364. }
  365. }
  366. .btn {
  367. border-top: 1px solid #eaeaea;
  368. display: flex;
  369. &> view {
  370. flex: 1;
  371. text-align: center;
  372. line-height: 100rpx;
  373. font-size: 32rpx;
  374. &.left {
  375. color: #666666;
  376. }
  377. &.right {
  378. color: #FFFFFF;
  379. background: #FF3F42;
  380. }
  381. }
  382. }
  383. }