constitutionDiagnosis.wxss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  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 40rpx auto;
  180. background: linear-gradient(278deg, #0ABCA4 0%, rgba(11, 195, 170, 0.8) 100%);
  181. }
  182. .export-btn {
  183. line-height: 90rpx;
  184. border-radius: 45rpx;
  185. text-align: center;
  186. width: calc(100vw - 120rpx);
  187. display: block;
  188. color: #FFFFFF;
  189. font-size: 32rpx;
  190. margin: 0rpx auto 40rpx auto;
  191. background: linear-gradient(278deg, #0ABCA4 0%, rgba(11, 195, 170, 0.8) 100%);
  192. }
  193. .custom-radio-class {
  194. /* width: calc(100vw - 40rpx) !important; */
  195. /* padding: 15rpx 20rpx; */
  196. /* display: flex;
  197. align-items: flex-start !important;
  198. flex-direction: row; */
  199. }
  200. .van-radio__label,
  201. .van-checkbox__label {
  202. flex: 1;
  203. margin-right: 30rpx;
  204. }
  205. .van-radio-group {
  206. /* margin-top: 15rpx; */
  207. margin-bottom: 15tpx;
  208. }
  209. .bottom-view {
  210. display: flex;
  211. flex-direction: column;
  212. align-items: center;
  213. width: calc(100% - 60rpx);
  214. margin: 60rpx auto 30rpx auto;
  215. }
  216. .resultsAreShown-view {
  217. display: flex;
  218. flex-direction: column;
  219. align-items: center;
  220. }
  221. .resultsAreShown-content {
  222. width: 640rpx;
  223. margin-bottom: 30rpx;
  224. min-height: 516rpx;
  225. background: #FFFFFF;
  226. border-radius: 32rpx;
  227. overflow: hidden;
  228. display: flex;
  229. flex-direction: column;
  230. }
  231. .resultsAreShown-content-top {
  232. background: #23C983;
  233. width: 100%;
  234. position: relative;
  235. height: 186rpx;
  236. display: flex;
  237. justify-content: space-between;
  238. flex-direction: row;
  239. }
  240. .resultsAreShown-content-title {
  241. color: #FFFFFF;
  242. font-size: 36rpx;
  243. font-weight: bold;
  244. margin-top: 64rpx;
  245. position: absolute;
  246. margin-left: 40rpx;
  247. }
  248. .resultsAreShown-content-icon {
  249. width: 96rpx;
  250. margin-top: 52rpx;
  251. margin-right: 44rpx;
  252. height: 108rpx;
  253. }
  254. .resultsAreShown-content-bg {
  255. width: 100%;
  256. height: 186rpx;
  257. }
  258. .resultsAreShown-content-h {
  259. display: flex;
  260. flex-direction: row;
  261. align-items: baseline;
  262. width: 100%;
  263. }
  264. .resultsAreShown-content-desc {
  265. font-size: 28rpx;
  266. margin-left: 40rpx;
  267. margin-top: 30rpx;
  268. color: #333333;
  269. }
  270. .resultsAreShown-content-score {
  271. font-weight: 700;
  272. color: #1AC57D;
  273. font-size: 60rpx;
  274. }
  275. .resultsAreShown-content-units {
  276. font-size: 28rpx;
  277. color: #1AC57D;
  278. }
  279. .resultsAreShown-content-score-view {
  280. display: flex;
  281. flex-direction: row;
  282. margin-top: 22rpx;
  283. margin-left: 24rpx;
  284. align-items: center;
  285. width: calc(100% - 48rpx);
  286. }
  287. .resultsAreShown-content-score-item {
  288. flex: 1;
  289. display: flex;
  290. flex-direction: column;
  291. align-items: center;
  292. }
  293. .resultsAreShown-content-score-icon {
  294. width: 24rpx;
  295. opacity: 0;
  296. height: 16rpx;
  297. }
  298. .resultsAreShown-content-score-line {
  299. width: calc(100% - 32rpx);
  300. height: 12rpx;
  301. margin-top: 20rpx;
  302. border-radius: 12rpx;
  303. }
  304. .resultsAreShown-content-score-desc {
  305. font-size: 24rpx;
  306. margin-top: 16rpx;
  307. line-height: 32rpx;
  308. color: #666666;
  309. }
  310. .resultsAreShown-content-score-desc.active {
  311. color: #333333;
  312. margin-top: 16rpx;
  313. line-height: 32rpx;
  314. font-size: 28rpx;
  315. }
  316. /* .tips {
  317. margin: 20rpx auto;
  318. padding: 20rpx 35rpx;
  319. width: 600rpx;
  320. font-size: 24rpx;
  321. line-height: 40rpx;
  322. background: white;
  323. color: #5A5A5A;
  324. box-shadow: 4rpx 4rpx 0 #BAE2E0;
  325. } */
  326. .resultsAreShown-content-tips {
  327. color: #888888;
  328. margin: 30rpx;
  329. font-size: 20rpx;
  330. }