constitutionDiagnosis.wxss 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. /* pages/survey/survey.wxss */
  2. /* 通用样式 */
  3. .container {
  4. width: 100%;
  5. display: block;
  6. background: #CCEDF5;
  7. }
  8. .section {
  9. width: calc(100%);
  10. padding: 30rpx 0;
  11. margin-top: 30rpx;
  12. background: #FBFDFC;
  13. border-radius: 24rpx;
  14. display: flex;
  15. flex-direction: column;
  16. }
  17. .section-top {
  18. margin: 0 auto;
  19. width: 672rpx;
  20. position: relative;
  21. }
  22. .tips {
  23. position: absolute;
  24. top: 40rpx;
  25. left: 40rpx;
  26. right: 40rpx;
  27. width: 592rpx;
  28. line-height: 40rpx;
  29. color: #5A5A5A;
  30. font-size: 24rpx;
  31. }
  32. .section text {
  33. margin: 0 30rpx;
  34. font-size: 32rpx;
  35. line-height: 48rpx;
  36. color: #333333;
  37. }
  38. .radio-view {
  39. width: 100vw;
  40. display: flex;
  41. margin-top: 30rpx;
  42. flex-direction: row;
  43. align-items: center;
  44. }
  45. .radio-icon {
  46. width: 36rpx;
  47. margin-left: 10rpx;
  48. height: 36rpx;
  49. }
  50. .radio-title {
  51. font-size: 28rpx;
  52. margin: 0 20rpx;
  53. }
  54. .title {
  55. text-align: center;
  56. font-size: 38rpx;
  57. color: #0BC3AA;
  58. font-weight: bold;
  59. margin: auto;
  60. margin-top: 10rpx;
  61. }
  62. .title_1 {
  63. width: 100%;
  64. text-align: center;
  65. color: #333333;
  66. font-size: 32rpx;
  67. margin: 60rpx auto auto;
  68. }
  69. /* 标题样式 */
  70. /* .title {
  71. font-size: 18px;
  72. font-weight: bold;
  73. margin-bottom: 10px;
  74. } */
  75. /* 输入框和选择器的样式 */
  76. .input-area,
  77. .picker-area {
  78. margin-bottom: 20px;
  79. }
  80. .input-area input,
  81. .picker-area picker {
  82. width: 100%;
  83. padding: 10px;
  84. box-sizing: border-box;
  85. /* 包括内边距和边框在总宽度内 */
  86. border: 1px solid #ccc;
  87. border-radius: 4px;
  88. font-size: 16px;
  89. }
  90. /* 特别是针对选择器的样式(微信小程序中没有原生的<picker>标签,这里仅作为示例) */
  91. /* 实际上,您可能会使用微信小程序的picker组件,并通过自定义类来样式化它周围的容器 */
  92. .picker-container {
  93. position: relative;
  94. }
  95. .picker-container picker {
  96. /* 注意:这里的picker是假设的,微信小程序中picker组件的样式需要通过其他方式控制,如自定义模态框 */
  97. /* 实际上,您可能不需要直接对picker进行样式化,而是样式化触发picker的按钮或容器 */
  98. }
  99. /* 提交按钮的样式 */
  100. .submit-btn {
  101. display: block;
  102. width: 100%;
  103. padding: 10px;
  104. background-color: #007aff;
  105. color: white;
  106. font-size: 16px;
  107. border: none;
  108. border-radius: 4px;
  109. cursor: pointer;
  110. margin-top: 20px;
  111. }
  112. .submit-btn:hover {
  113. /* 注意:微信小程序中不支持:hover伪类,这里仅作为Web开发的参考 */
  114. background-color: #0056b3;
  115. }
  116. /* 如果有多选问题,可能需要为checkbox或radio列表添加样式 */
  117. .checkbox-group,
  118. .radio-group {
  119. margin-bottom: 20px;
  120. }
  121. .checkbox-group label,
  122. .radio-group label {
  123. display: block;
  124. margin-bottom: 10px;
  125. }
  126. .full-width-textarea {
  127. width: 690rpx;
  128. background: #F5F7FB;
  129. /* 使textarea宽度占满其父容器的宽度 */
  130. border: none;
  131. border-radius: 2px;
  132. /* 可选:添加轻微的边框圆角 */
  133. padding: 10px;
  134. margin: auto;
  135. font-size: 28rpx;
  136. line-height: 48rpx;
  137. margin-top: 30rpx;
  138. /* 可选:添加内边距,让文本不紧贴边框 */
  139. box-sizing: border-box;
  140. /* 确保padding不会增加textarea的总宽度 */
  141. }
  142. .custom-input {
  143. width: 100%;
  144. /* 使input宽度占满其父容器的宽度 */
  145. border: none;
  146. /* 移除默认的边框 */
  147. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  148. /* 只设置底部边框为半透明细线 */
  149. padding: 10px 0;
  150. /* 只在垂直方向上添加内边距,避免底部边框被内边距遮挡 */
  151. background-color: transparent;
  152. /* 移除背景色 */
  153. box-shadow: none;
  154. /* 移除可能的阴影效果(如果默认有的话) */
  155. }
  156. input {
  157. width: calc(100% - 200rpx);
  158. margin: 15rpx auto auto;
  159. padding: 0 20rpx;
  160. line-height: 70rpx;
  161. border-radius: 5rpx;
  162. color: #333333;
  163. font-size: 28rpx;
  164. height: 70rpx;
  165. border-bottom: 1rpx solid #666666;
  166. }
  167. .commit-btn {
  168. line-height: 90rpx;
  169. border-radius: 45rpx;
  170. text-align: center;
  171. width: calc(100vw - 120rpx);
  172. display: block;
  173. color: #FFFFFF;
  174. font-size: 32rpx;
  175. margin: 80rpx auto 80rpx auto;
  176. background: linear-gradient(278deg, #0ABCA4 0%, rgba(11, 195, 170, 0.8) 100%);
  177. }
  178. .custom-radio-class {
  179. /* width: calc(100vw - 40rpx) !important; */
  180. /* padding: 15rpx 20rpx; */
  181. /* display: flex;
  182. align-items: flex-start !important;
  183. flex-direction: row; */
  184. }
  185. .van-radio__label,
  186. .van-checkbox__label {
  187. flex: 1;
  188. margin-right: 30rpx;
  189. }
  190. .van-radio-group {
  191. /* margin-top: 15rpx; */
  192. margin-bottom: 15tpx;
  193. }
  194. .bottom-view {
  195. display: flex;
  196. flex-direction: column;
  197. align-items: center;
  198. width: calc(100% - 60rpx);
  199. margin: 60rpx auto 30rpx auto;
  200. }
  201. .resultsAreShown-view {
  202. display: flex;
  203. flex-direction: column;
  204. align-items: center;
  205. }
  206. .resultsAreShown-content {
  207. width: 640rpx;
  208. margin-bottom: 30rpx;
  209. min-height: 516rpx;
  210. background: #FFFFFF;
  211. border-radius: 32rpx;
  212. overflow: hidden;
  213. display: flex;
  214. flex-direction: column;
  215. }
  216. .resultsAreShown-content-top {
  217. background: #23C983;
  218. width: 100%;
  219. position: relative;
  220. height: 186rpx;
  221. display: flex;
  222. justify-content: space-between;
  223. flex-direction: row;
  224. }
  225. .resultsAreShown-content-title {
  226. color: #FFFFFF;
  227. font-size: 36rpx;
  228. font-weight: bold;
  229. margin-top: 64rpx;
  230. position: absolute;
  231. margin-left: 40rpx;
  232. }
  233. .resultsAreShown-content-icon {
  234. width: 96rpx;
  235. margin-top: 52rpx;
  236. margin-right: 44rpx;
  237. height: 108rpx;
  238. }
  239. .resultsAreShown-content-bg {
  240. width: 100%;
  241. height: 186rpx;
  242. }
  243. .resultsAreShown-content-h {
  244. display: flex;
  245. flex-direction: row;
  246. align-items: baseline;
  247. width: 100%;
  248. }
  249. .resultsAreShown-content-desc {
  250. font-size: 28rpx;
  251. margin-left: 40rpx;
  252. margin-top: 30rpx;
  253. color: #333333;
  254. }
  255. .resultsAreShown-content-score {
  256. font-weight: 700;
  257. color: #1AC57D;
  258. font-size: 60rpx;
  259. }
  260. .resultsAreShown-content-units {
  261. font-size: 28rpx;
  262. color: #1AC57D;
  263. }
  264. .resultsAreShown-content-score-view {
  265. display: flex;
  266. flex-direction: row;
  267. margin-top: 22rpx;
  268. margin-left: 24rpx;
  269. align-items: center;
  270. width: calc(100% - 48rpx);
  271. }
  272. .resultsAreShown-content-score-item {
  273. flex: 1;
  274. display: flex;
  275. flex-direction: column;
  276. align-items: center;
  277. }
  278. .resultsAreShown-content-score-icon {
  279. width: 24rpx;
  280. opacity: 0;
  281. height: 16rpx;
  282. }
  283. .resultsAreShown-content-score-line {
  284. width: calc(100% - 32rpx);
  285. height: 12rpx;
  286. margin-top: 20rpx;
  287. border-radius: 12rpx;
  288. }
  289. .resultsAreShown-content-score-desc {
  290. font-size: 24rpx;
  291. margin-top: 16rpx;
  292. line-height: 32rpx;
  293. color: #666666;
  294. }
  295. .resultsAreShown-content-score-desc.active {
  296. color: #333333;
  297. margin-top: 16rpx;
  298. line-height: 32rpx;
  299. font-size: 28rpx;
  300. }
  301. .tips {
  302. margin: 20rpx auto;
  303. padding: 20rpx 35rpx;
  304. width: 600rpx;
  305. font-size: 24rpx;
  306. line-height: 40rpx;
  307. background: white;
  308. color: #5A5A5A;
  309. box-shadow: 4rpx 4rpx 0 #BAE2E0;
  310. }
  311. .resultsAreShown-content-tips {
  312. color: #888888;
  313. margin: 30rpx;
  314. font-size: 20rpx;
  315. }