questionnaire.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. .page-container {
  2. background-color: #f5f5f5;
  3. height: calc(100vh - 64px);
  4. box-sizing: border-box;
  5. }
  6. .questionnaire-container {
  7. padding: 32rpx;
  8. padding-bottom: 180rpx; // 为底部固定按钮留出足够空间(按钮高度88rpx + padding 48rpx + 安全区域 + 额外空间)
  9. background-color: #fff;
  10. min-height: 100%;
  11. }
  12. /* 标题 */
  13. .questionnaire-title {
  14. font-size: 40rpx;
  15. font-weight: bold;
  16. color: #333;
  17. text-align: center;
  18. margin-bottom: 32rpx;
  19. }
  20. /* 介绍文字 */
  21. .questionnaire-intro {
  22. font-size: 28rpx;
  23. color: black;
  24. line-height: 1.8;
  25. margin-bottom: 32rpx;
  26. text-align: justify;
  27. }
  28. /* 分数说明 */
  29. .score-explanation {
  30. margin-bottom: 32rpx;
  31. }
  32. .score-explanation-text {
  33. font-size: 28rpx;
  34. color: #333;
  35. line-height: 1.6;
  36. font-weight: bold;
  37. }
  38. /* 问题组 */
  39. .question-groups {
  40. margin-bottom: 32rpx;
  41. }
  42. .question-group {
  43. margin-bottom: 32rpx;
  44. }
  45. .group-title {
  46. font-size: 35rpx;
  47. font-weight: bold;
  48. color: #333;
  49. }
  50. /* 问题列表 */
  51. .question-list {
  52. display: flex;
  53. flex-direction: column;
  54. gap: 32rpx;
  55. }
  56. .question-item {
  57. padding-bottom: 32rpx;
  58. border-bottom: 1px solid #f0f0f0;
  59. &:last-child {
  60. border-bottom: none;
  61. }
  62. }
  63. .question-name {
  64. font-size: 28rpx;
  65. color: #333;
  66. line-height: 1.6;
  67. font-weight: bold;
  68. margin: 20rpx 0 20rpx 0;
  69. }
  70. /* 分数选择 */
  71. .score-radio-group {
  72. width: 100%;
  73. }
  74. .score-options {
  75. display: flex;
  76. flex-direction: row;
  77. align-items: center;
  78. flex-wrap: wrap;
  79. }
  80. .score-radio-item {
  81. margin-right: 32rpx;
  82. &:last-child {
  83. margin-right: 0;
  84. }
  85. }
  86. /* 其他意见 */
  87. .other-comment-section {
  88. margin-top: 32rpx;
  89. margin-bottom: 32rpx;
  90. }
  91. .other-comment-title {
  92. font-size: 28rpx;
  93. color: #333;
  94. margin-bottom: 16rpx;
  95. }
  96. .other-comment-input {
  97. width: 100%;
  98. min-height: 200rpx;
  99. padding: 20rpx;
  100. background-color: #f8f8f8;
  101. border: 2rpx solid #e0e0e0;
  102. border-radius: 8rpx;
  103. font-size: 26rpx;
  104. color: #333;
  105. box-sizing: border-box;
  106. line-height: 1.6;
  107. }
  108. /* 结束语 */
  109. .questionnaire-end {
  110. font-size: 26rpx;
  111. color: black;
  112. margin-top: 22rpx;
  113. margin-bottom: 32rpx;
  114. padding-top: 32rpx;
  115. border-top: 1px solid #f0f0f0;
  116. }
  117. /* 加载状态 */
  118. .loading-container {
  119. display: flex;
  120. align-items: center;
  121. justify-content: center;
  122. min-height: 400rpx;
  123. padding: 32rpx;
  124. }
  125. .loading-text {
  126. font-size: 28rpx;
  127. color: #999;
  128. }
  129. /* 空数据状态 */
  130. .empty-container {
  131. display: flex;
  132. align-items: center;
  133. justify-content: center;
  134. min-height: 400rpx;
  135. padding: 32rpx;
  136. }
  137. .empty-text {
  138. font-size: 28rpx;
  139. color: #999;
  140. }
  141. /* 保存按钮 */
  142. .save-button-container {
  143. position: fixed;
  144. bottom: 0;
  145. left: 0;
  146. right: 0;
  147. padding: 24rpx 32rpx;
  148. padding-bottom: calc(env(safe-area-inset-bottom));
  149. background-color: #fff;
  150. border-top: 1px solid #f0f0f0;
  151. box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
  152. z-index: 100;
  153. box-sizing: border-box;
  154. }
  155. .save-button {
  156. width: 100%;
  157. height: 88rpx;
  158. line-height: 88rpx;
  159. background: linear-gradient(135deg, #1d6ff6 0%, #0d5dd8 100%);
  160. border-radius: 44rpx;
  161. color: #fff;
  162. font-size: 32rpx;
  163. font-weight: bold;
  164. border: none;
  165. display: block;
  166. text-align: center;
  167. transition: all 0.3s;
  168. &::after {
  169. border: none;
  170. }
  171. &[disabled] {
  172. background: #ccc;
  173. opacity: 0.6;
  174. }
  175. &:not([disabled]):active {
  176. opacity: 0.8;
  177. transform: scale(0.98);
  178. }
  179. }