constitutionDiagnosis.wxss 6.8 KB

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