estimate_select.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>选择机型</title>
  6. <style>
  7. body{
  8. margin:0;
  9. font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto;
  10. background:#f7f8fa;
  11. }
  12. .header{
  13. padding:12px 14px;
  14. background:#fff;
  15. border-bottom:1px solid #eee;
  16. font-size:16px;
  17. font-weight:600;
  18. }
  19. .tabs{
  20. display:flex;
  21. gap:10px;
  22. padding:10px 12px;
  23. background:#fff;
  24. border-bottom:1px solid #eee;
  25. }
  26. .tab{
  27. padding:6px 12px;
  28. border-radius:16px;
  29. background:#f1f3f5;
  30. font-size:13px;
  31. }
  32. .tab.active{
  33. background:#e6f0ff;
  34. color:#2563eb;
  35. font-weight:600;
  36. }
  37. .main{
  38. display:flex;
  39. height:calc(100vh - 96px);
  40. }
  41. .brand-col{
  42. width:90px;
  43. background:#fff;
  44. border-right:1px solid #eee;
  45. overflow-y:auto;
  46. }
  47. .brand-item{
  48. padding:12px 8px;
  49. text-align:center;
  50. font-size:13px;
  51. color:#333;
  52. }
  53. .brand-item a{
  54. text-decoration:none;
  55. color:inherit;
  56. }
  57. .brand-item.active{
  58. background:#f0f6ff;
  59. color:#2563eb;
  60. font-weight:600;
  61. }
  62. .machine-col{
  63. flex:1;
  64. background:#fff;
  65. overflow-y:auto;
  66. }
  67. .machine-item{
  68. padding:12px 14px;
  69. border-bottom:1px solid #f1f1f1;
  70. font-size:14px;
  71. }
  72. .machine-item a{
  73. text-decoration:none;
  74. color:#111;
  75. }
  76. .machine-item:hover{
  77. background:#f8fafc;
  78. }
  79. </style>
  80. </head>
  81. <body>
  82. <div class="header">选择旧机</div>
  83. <!-- 分类栏(只保留手机高亮,结构和你图一致) -->
  84. <div class="tabs">
  85. <div class="tab active">手机</div>
  86. <div class="tab">平板</div>
  87. <div class="tab">笔记本</div>
  88. <div class="tab">手表</div>
  89. </div>
  90. <div class="main">
  91. <!-- 左:品牌 -->
  92. <div class="brand-col">
  93. {% for b in brands %}
  94. <div class="brand-item {% if current_brand==b.brand_name %}active{% endif %}">
  95. <a href="/estimate/select?brand={{b.brand_name}}">
  96. {{ b.brand_name }}
  97. </a>
  98. </div>
  99. {% endfor %}
  100. </div>
  101. <!-- 右:机型 -->
  102. <div class="machine-col">
  103. {% for m in machines %}
  104. <div class="machine-item">
  105. <a href="/estimate/simulate_one?machine_id={{m.machine_id}}">
  106. {{ m.name }}
  107. </a>
  108. </div>
  109. {% endfor %}
  110. </div>
  111. </div>
  112. </body>
  113. </html>