index.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>投票</title>
  8. <style>
  9. html,body{
  10. padding:0;
  11. margin:0;
  12. color:#333
  13. }
  14. .vote{
  15. /* width: 100%; */
  16. height: auto;
  17. background: #ededed;
  18. border:1px solid #ddd;
  19. box-sizing: border-box;
  20. padding:8px 16px;
  21. margin:8px 16px;
  22. }
  23. .vote-enddate{
  24. height: 56px;
  25. line-height: 56px;
  26. text-align: center;
  27. border-bottom: 1px solid #ddd;
  28. }
  29. .vote-item{
  30. height: 32px;
  31. line-height: 32px;
  32. }
  33. .title {
  34. padding:16px 0px;
  35. }
  36. .vote-button{
  37. height: 32px;
  38. width: 100%;
  39. box-sizing: border-box;
  40. margin: 8px 0px;
  41. }
  42. .process{
  43. height: 6px;
  44. width: 80%;
  45. display: inline-block;
  46. background: #ccc;
  47. position: relative;
  48. margin-right: 12px;
  49. }
  50. .result-title{
  51. height: 22px;
  52. line-height: 22px;
  53. display: block;
  54. }
  55. .run-process{
  56. background: rgb(115, 115, 184);
  57. height: 6px;
  58. position: absolute;
  59. }
  60. .result-item{
  61. margin: 8px auto;
  62. }
  63. </style>
  64. </head>
  65. <body>
  66. <div class="vote">
  67. <div class="vote-enddate">
  68. 2020-12-01 投票过期
  69. </div>
  70. <div class="title">
  71. 今年的年度候选作品中,你认为哪一步可以夺得年度冠军(单选)
  72. </div>
  73. {if condition="$total==false"}
  74. <div class="vote-list">
  75. <div class="vote-item">
  76. <input type="radio" name="n1" id="d1">
  77. <label for="d1">死亡循环</label>
  78. </div>
  79. <div class="vote-item">
  80. <input type="radio" name="n1" id="d2">
  81. <label for="d2">双人成行</label>
  82. </div>
  83. <div class="vote-item">
  84. <input type="radio" name="n1" id="d3">
  85. <label for="d3">白光贴</label>
  86. </div>
  87. <div class="vote-group-button">
  88. <button class="vote-button">投票</button>
  89. </div>
  90. </div>
  91. {else /}
  92. <div class="vote-result">
  93. <div class="result-item">
  94. <span class="result-title">死亡循环</span>
  95. <span class="process">
  96. <span class="run-process" style="width:50%;">
  97. </span>
  98. </span>
  99. <span>16票</span>
  100. <span>70%</span>
  101. </div>
  102. <div class="result-item">
  103. <span class="result-title">双人成行</span>
  104. <span class="process">
  105. <span class="run-process" style="width:50%;">
  106. </span>
  107. </span>
  108. <span>16票</span>
  109. <span>10%</span>
  110. </div>
  111. <div class="result-item">
  112. <span class="result-title">白光贴</span>
  113. <span class="process">
  114. <span class="run-process" style="width:50%;">
  115. </span>
  116. </span>
  117. <span>16票</span>
  118. <span>20%</span>
  119. </div>
  120. </div>
  121. {/if}
  122. </div>
  123. </body>
  124. </html>