cm-product.wxss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* 字体大小变量 */
  16. /* 行为相关颜色 */
  17. /* 文字基本颜色 */
  18. /* 背景颜色 */
  19. /* 边框颜色 */
  20. /* 尺寸变量 */
  21. /* 文字尺寸 */
  22. /* 图片尺寸 */
  23. /* Border Radius */
  24. /* 水平间距 */
  25. /* 垂直间距 */
  26. /* 透明度 */
  27. /* 文章场景相关 */
  28. .cm-product.data-v-359eeb24 {
  29. position: relative;
  30. width: 339rpx;
  31. height: 532rpx;
  32. background: #fff;
  33. border-radius: 16rpx;
  34. overflow: hidden;
  35. }
  36. .cm-product .recommend.data-v-359eeb24 {
  37. position: absolute;
  38. top: 0;
  39. left: 34rpx;
  40. width: 68rpx;
  41. height: 55rpx;
  42. background: url(https://static.caimei365.com/app/mini-hehe/icon/recommend.png) no-repeat center;
  43. background-size: 68rpx 55rpx;
  44. }
  45. .cm-product .cover.data-v-359eeb24 {
  46. width: 339rpx;
  47. height: 339rpx;
  48. }
  49. .cm-product .title.data-v-359eeb24,
  50. .cm-product .tags.data-v-359eeb24,
  51. .cm-product .footer.data-v-359eeb24 {
  52. padding: 0 24rpx;
  53. margin: 12rpx 0;
  54. }
  55. .cm-product .title.data-v-359eeb24 {
  56. height: 70rpx;
  57. font-size: 26rpx;
  58. line-height: 35rpx;
  59. color: #333333;
  60. overflow: hidden;
  61. text-overflow: ellipsis;
  62. display: -webkit-box;
  63. -webkit-line-clamp: 2;
  64. -webkit-box-orient: vertical;
  65. }
  66. .cm-product .tags.data-v-359eeb24 {
  67. display: flex;
  68. justify-content: flex-start;
  69. align-items: center;
  70. height: 24rpx;
  71. }
  72. .cm-product .tags .tag.data-v-359eeb24 {
  73. display: flex;
  74. justify-content: center;
  75. align-items: center;
  76. height: 30rpx;
  77. margin-right: 8rpx;
  78. font-size: 22rpx;
  79. }
  80. .cm-product .tags .tag.type1.data-v-359eeb24 {
  81. width: 56rpx;
  82. background: #ff457b;
  83. border-radius: 4rpx;
  84. color: #ffffff;
  85. }
  86. .cm-product .tags .tag.type2.data-v-359eeb24 {
  87. width: 80rpx;
  88. background: url(https://static.caimei365.com/app/mini-hehe/icon/icon-active.png) top center no-repeat;
  89. background-size: 80rpx 30rpx;
  90. color: #f83c6c;
  91. }
  92. .cm-product .footer.data-v-359eeb24 {
  93. display: flex;
  94. justify-content: space-between;
  95. align-items: center;
  96. }
  97. .cm-product .footer .add-cart.data-v-359eeb24 {
  98. display: flex;
  99. justify-content: center;
  100. align-items: center;
  101. width: 44rpx;
  102. height: 44rpx;
  103. background: #ff457b;
  104. color: #fff;
  105. border-radius: 50%;
  106. }
  107. .cm-product .footer .price.data-v-359eeb24 {
  108. flex: 1;
  109. font-size: 26rpx;
  110. font-weight: 600;
  111. color: #f83c6c;
  112. }