index.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. .container {
  2. display: flex;
  3. flex-direction: column;
  4. width: 100%;
  5. .cell-view {
  6. display: flex;
  7. border-bottom: 1px solid #f0f0f0;
  8. align-items: center;
  9. margin: 5px 10px;
  10. text {
  11. width: 90px;
  12. text-align: left;
  13. color: #333;
  14. font-size: 22rpx;
  15. }
  16. .content {
  17. display: flex;
  18. flex-direction: row;
  19. flex-wrap: wrap;
  20. width: 100%;
  21. align-content: center;
  22. button {
  23. margin: 5px;
  24. height: 30px;
  25. color: #333;
  26. width: 21.3%;
  27. border-radius: 5px;
  28. }
  29. /* 选中时添加这个 样式 */
  30. .active {
  31. background: #dae9fd;
  32. }
  33. /* 三角形 */
  34. .active::before {
  35. content: '';
  36. display: inline-block;
  37. position: absolute;
  38. right: 0;
  39. bottom: 0;
  40. width: 0;
  41. height: 0;
  42. border-bottom: 15px solid rebeccapurple;
  43. border-left: 14px solid transparent;
  44. }
  45. }
  46. button {
  47. color: #000;
  48. font-size: 22rpx;
  49. }
  50. }
  51. .rate view, .weight view, .discount view {
  52. flex-wrap: nowrap;
  53. text-align: center;
  54. }
  55. .zsshape, .weight, .rate, .discount {
  56. height: 50px
  57. }
  58. .buttom_view {
  59. display: flex;
  60. flex-direction: row;
  61. justify-content: center;
  62. margin-top: 20px;
  63. width: 95%;
  64. align-content: center;
  65. align-items: center;
  66. van-button {
  67. width: 90%;
  68. color: white;
  69. }
  70. }
  71. .result {
  72. display: flex;
  73. flex-direction: column;
  74. align-items: center;
  75. align-content: center;
  76. width: 95%1;
  77. &__top {
  78. display: flex;
  79. flex-direction: row;
  80. justify-content: space-between;
  81. align-items: center;
  82. align-content: center;
  83. width: 95%;
  84. }
  85. .value {
  86. font-size: 28rpx;
  87. color: #333;
  88. text-align: left;
  89. padding: 5px 0px;
  90. width: 95%;
  91. }
  92. }
  93. }