index.wxss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. page view {
  28. box-sizing: border-box;
  29. flex-shrink: 0;
  30. }
  31. page {
  32. font-family: PingFangSC-Regular, Roboto, Helvetica Neue, Helvetica, Tahoma,
  33. Arial, PingFang SC-Light, Microsoft YaHei;
  34. margin: 0;
  35. }
  36. button {
  37. margin: 0;
  38. padding: 0;
  39. border: 1px solid transparent;
  40. outline: none;
  41. background-color: transparent;
  42. }
  43. button:active {
  44. opacity: 0.6;
  45. }
  46. .flex-col {
  47. display: flex;
  48. flex-direction: column;
  49. }
  50. .flex-row {
  51. display: flex;
  52. flex-direction: row;
  53. }
  54. .flex-row-reverse {
  55. display: flex;
  56. flex-direction: row-reverse;
  57. }
  58. .bord{
  59. border: 1px solid red;
  60. }
  61. .justify-start {
  62. display: flex;
  63. justify-content: flex-start;
  64. }
  65. .justify-center {
  66. display: flex;
  67. justify-content: center;
  68. }
  69. .justify-end {
  70. display: flex;
  71. justify-content: flex-end;
  72. }
  73. .justify-evenly {
  74. display: flex;
  75. justify-content: space-evenly;
  76. }
  77. .justify-around {
  78. display: flex;
  79. justify-content: space-around;
  80. }
  81. .justify-between {
  82. display: flex;
  83. justify-content: space-between;
  84. }
  85. .align-start {
  86. display: flex;
  87. align-items: flex-start;
  88. }
  89. .align-center {
  90. display: flex;
  91. align-items: center;
  92. }
  93. .align-end {
  94. display: flex;
  95. align-items: flex-end;
  96. }
  97. .sticky {
  98. display: flex;
  99. position: -webkit-sticky;
  100. position: sticky;
  101. top: 0rpx;
  102. z-index: 99;
  103. }
  104. .bord{
  105. border: 1px solid red;
  106. }
  107. .swiper{
  108. height: 390rpx;
  109. }
  110. .swiperImgView{
  111. width: 750rpx;
  112. height: 390rpx;
  113. }
  114. .swiperImg{
  115. width: 750rpx;
  116. height: 390rpx;
  117. }
  118. .search{
  119. width: 500rpx;
  120. padding: 0 20rpx;
  121. }
  122. .banner{
  123. margin-top: 10rpx;
  124. }
  125. .goodsList{
  126. height:900rpx;
  127. }
  128. .goods{
  129. width: 375rpx;
  130. padding: 0 15rpx 20rpx 15rpx;
  131. }
  132. .goodsImgView{
  133. width: 350rpx;
  134. height: 350rpx;
  135. border-radius: 10rpx;
  136. overflow: hidden;
  137. }
  138. .goodsImg{
  139. width: 350rpx;
  140. height: 350rpx;
  141. }
  142. .goodsName{
  143. display: -webkit-box;
  144. -webkit-box-orient: vertical;
  145. -webkit-line-clamp: 2;
  146. overflow: hidden;
  147. text-overflow: ellipsis;
  148. margin-top: 10rpx;
  149. font-size: 30rpx;
  150. }
  151. .goodsImgTitle{
  152. display: -webkit-box;
  153. -webkit-box-orient: vertical;
  154. -webkit-line-clamp: 2;
  155. overflow: hidden;
  156. text-overflow: ellipsis;
  157. margin-top: 10rpx;
  158. font-size: 26rpx;
  159. color: #999999;
  160. }
  161. .goodsPrice{
  162. margin-top: 10rpx;
  163. font-size: 40rpx;
  164. color: red;
  165. }