index.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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: 10px;
  63. align-content: center;
  64. align-items: center;
  65. van-button {
  66. width: 80%;
  67. color: white;
  68. }
  69. }
  70. .result {
  71. display: flex;
  72. flex-direction: column;
  73. align-items: center;
  74. align-content: center;
  75. width: 95%1;
  76. &__top {
  77. display: flex;
  78. flex-direction: row;
  79. justify-content: space-between;
  80. align-items: center;
  81. align-content: center;
  82. width: 95%;
  83. }
  84. .value {
  85. font-size: 28rpx;
  86. color: #333;
  87. text-align: left;
  88. padding: 5px 0px;
  89. width: 95%;
  90. }
  91. }
  92. }