_card.scss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. /* ==================
  2. 卡片
  3. ==================== */
  4. .ui-cards {
  5. display: block;
  6. overflow: hidden;
  7. & .ui-btn.badge {
  8. top: 0;
  9. right: 0;
  10. font-size: 24rpx;
  11. padding: 0rpx 15rpx;
  12. height: 40rpx;
  13. }
  14. &.no-card > .ui-item {
  15. margin: 0rpx;
  16. border-radius: 0rpx;
  17. }
  18. & > .ui-item {
  19. display: block;
  20. overflow: hidden;
  21. border-radius: 10rpx;
  22. margin: 30rpx;
  23. }
  24. & > .ui-item.shadow-blur {
  25. overflow: initial;
  26. }
  27. .grid.grid-square {
  28. margin-bottom: -20rpx;
  29. }
  30. &.article {
  31. display: block;
  32. & > .ui-item {
  33. padding: 30rpx;
  34. background-color: var(--box-bg);
  35. display: flex;
  36. align-items: flex-start;
  37. }
  38. & > .time {
  39. padding: 30rpx 0 0 30rpx;
  40. }
  41. & > .ui-item .title {
  42. font-size: 30rpx;
  43. font-weight: 900;
  44. color: #333333;
  45. }
  46. & > .ui-item .content {
  47. flex: 1;
  48. }
  49. & > .ui-item > image {
  50. width: 240rpx;
  51. height: 6.4em;
  52. margin-left: 20rpx;
  53. border-radius: 6rpx;
  54. }
  55. & > .ui-item .content .desc {
  56. font-size: 12px;
  57. color: var(--text-c);
  58. }
  59. & > .ui-item .content .text-content {
  60. font-size: 28rpx;
  61. color: #888;
  62. }
  63. }
  64. &.case {
  65. .image {
  66. position: relative;
  67. image {
  68. width: 100%;
  69. display: block;
  70. }
  71. .ui-tag {
  72. position: absolute;
  73. right: 0;
  74. top: 0;
  75. }
  76. .ui-bar {
  77. position: absolute;
  78. bottom: 0;
  79. width: 100%;
  80. background-color: transparent;
  81. padding: 0rpx 30rpx;
  82. }
  83. .bg-black {
  84. position: absolute;
  85. bottom: 0;
  86. width: 100%;
  87. background-color: rgba(0, 0, 0, 0.6);
  88. }
  89. }
  90. &.no-card .image {
  91. margin: 30rpx 30rpx 0;
  92. overflow: hidden;
  93. border-radius: 10rpx;
  94. }
  95. }
  96. &.dynamic {
  97. display: block;
  98. & > .ui-item {
  99. display: block;
  100. overflow: hidden;
  101. & > .text-content {
  102. padding: 0 30rpx 0;
  103. font-size: 30rpx;
  104. margin-bottom: 20rpx;
  105. }
  106. & .square-img {
  107. width: 100%;
  108. height: 200rpx;
  109. border-radius: 6rpx;
  110. }
  111. & .only-img {
  112. width: 100%;
  113. height: 320rpx;
  114. border-radius: 6rpx;
  115. }
  116. }
  117. }
  118. &.goods {
  119. display: block;
  120. & > .ui-item {
  121. padding: 30rpx;
  122. display: flex;
  123. position: relative;
  124. background-color: var(--ui-BG);
  125. & + .ui-item {
  126. border-top: 1rpx solid #eeeeee;
  127. }
  128. .content {
  129. width: 410rpx;
  130. padding: 0rpx;
  131. }
  132. .title {
  133. font-size: 30rpx;
  134. font-weight: 900;
  135. color: #333333;
  136. line-height: 1.4;
  137. height: 1.4em;
  138. overflow: hidden;
  139. }
  140. }
  141. &.col-goods.col-twice {
  142. display: flex;
  143. flex-wrap: wrap;
  144. padding-bottom: 30rpx;
  145. & > .ui-item {
  146. width: calc(50% - 30rpx);
  147. margin: 20rpx 20rpx 0rpx 20rpx;
  148. .content {
  149. padding: 20rpx;
  150. }
  151. }
  152. & > .ui-item:nth-child(2n) {
  153. margin-left: 0rpx;
  154. }
  155. }
  156. &.col-goods > .ui-item {
  157. padding: 0rpx;
  158. display: block;
  159. border: 0px;
  160. .content {
  161. width: 100%;
  162. padding: 30rpx;
  163. }
  164. }
  165. &.no-card > .ui-item .content {
  166. width: 470rpx;
  167. padding: 0rpx;
  168. }
  169. &.no-card > .ui-item .title,
  170. &.col-goods > .ui-item .title {
  171. height: 3em;
  172. overflow: hidden;
  173. }
  174. & > .ui-item .text-linecut-2 {
  175. -webkit-line-clamp: 1;
  176. }
  177. &.no-card > .ui-item .text-linecut-2,
  178. &.col-goods > .ui-item .text-linecut-2 {
  179. -webkit-line-clamp: 2;
  180. line-height: 1.6em;
  181. height: 3.2em;
  182. }
  183. & > .ui-item > image {
  184. width: 200rpx;
  185. height: 200rpx;
  186. margin-right: 20rpx;
  187. border-radius: 6rpx;
  188. }
  189. &.no-card > .ui-item > image {
  190. width: 220rpx;
  191. height: 170rpx;
  192. }
  193. &.col-goods > .ui-item > image {
  194. width: 100%;
  195. height: 340rpx;
  196. border-bottom-left-radius: 0rpx;
  197. border-bottom-right-radius: 0rpx;
  198. display: block;
  199. }
  200. &.col-goods.col-twice > .ui-item > image {
  201. height: 236rpx;
  202. }
  203. }
  204. &.loan {
  205. display: block;
  206. & > .ui-item {
  207. padding: 30rpx 0 30rpx 30rpx;
  208. display: flex;
  209. position: relative;
  210. background-color: var(--box-bg);
  211. .content {
  212. width: 450rpx;
  213. padding: 0rpx;
  214. .tag-list {
  215. width: 450rpx;
  216. display: flex;
  217. flex-wrap: wrap;
  218. font-size: 12px;
  219. margin-top: 18rpx;
  220. }
  221. }
  222. .action {
  223. flex: 1;
  224. display: flex;
  225. align-items: center;
  226. justify-content: center;
  227. flex-direction: column;
  228. }
  229. }
  230. }
  231. &.houses {
  232. display: block;
  233. & > .ui-item {
  234. padding: 20rpx;
  235. display: flex;
  236. position: relative;
  237. background-color: var(--box-bg);
  238. .image {
  239. width: 230rpx;
  240. height: 180rpx;
  241. margin-right: 20rpx;
  242. border-radius: 6rpx;
  243. }
  244. .content {
  245. width: 400rpx;
  246. padding: 0rpx;
  247. .tag-list {
  248. width: 400rpx;
  249. display: flex;
  250. flex-wrap: wrap;
  251. font-size: 12px;
  252. margin-top: 10rpx;
  253. .ui-item {
  254. height: 20px;
  255. line-height: 20px;
  256. }
  257. }
  258. }
  259. .action {
  260. flex: 1;
  261. display: flex;
  262. align-items: center;
  263. justify-content: center;
  264. flex-direction: column;
  265. }
  266. }
  267. }
  268. &.product {
  269. display: flex;
  270. flex-wrap: wrap;
  271. padding-bottom: 30rpx;
  272. & > .ui-item {
  273. width: calc(100% - 15rpx);
  274. margin: 20rpx 20rpx 0rpx 20rpx;
  275. background-color: var(--box-bg);
  276. position: relative;
  277. box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  278. // display: flex;
  279. // flex-wrap: wrap;
  280. .content {
  281. padding: 20rpx;
  282. // width: calc(100% - 345rpx);
  283. .text-cut {
  284. font-size: 16px;
  285. }
  286. }
  287. .image {
  288. width: 100%;
  289. height: 240rpx;
  290. border-radius: 6rpx 0 0 6rpx;
  291. display: block;
  292. }
  293. .ui-progress-tag {
  294. width: 4em;
  295. text-align: right;
  296. font-size: 12px;
  297. }
  298. .border-top {
  299. width: 100%;
  300. }
  301. .ui-tag {
  302. position: absolute;
  303. top: 0;
  304. left: 0;
  305. border-radius: 6rpx 0 6rpx 0;
  306. }
  307. }
  308. // & > .ui-item:nth-child(2n) {
  309. // margin-left: 0rpx;
  310. // }
  311. }
  312. &.shop {
  313. display: flex;
  314. flex-wrap: wrap;
  315. padding-bottom: 30rpx;
  316. & > .ui-item {
  317. width: calc(50% - 30rpx);
  318. margin: 20rpx 20rpx 0rpx 20rpx;
  319. background-color: var(--box-bg);
  320. padding: 20rpx;
  321. .content {
  322. margin-top: 15rpx;
  323. }
  324. .image {
  325. width: 100%;
  326. height: 285rpx;
  327. border-radius: 6rpx;
  328. display: block;
  329. }
  330. }
  331. & > .ui-item:nth-child(2n) {
  332. margin-left: 0rpx;
  333. }
  334. }
  335. &.orders .ui-item {
  336. margin-top: 30rpx;
  337. .address-box {
  338. padding: 15rpx;
  339. margin: 0 30rpx 30rpx;
  340. border: 1px solid;
  341. border-color: var(--main-a);
  342. border-radius: 10px;
  343. position: relative;
  344. .ui-form-group {
  345. min-height: 10px;
  346. }
  347. }
  348. }
  349. }