| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361 |
- /* pages/survey/survey.wxss */
- /* 通用样式 */
- .container {
- width: 100%;
- display: block;
- background: #CCEDF5;
- }
- .section {
- width: calc(100%);
- padding: 30rpx 0;
- margin-top: 30rpx;
- background: #FBFDFC;
- border-radius: 24rpx;
- display: flex;
- flex-direction: column;
- }
- .section-top {
- margin: 0 auto;
- width: 672rpx;
- position: relative;
- }
- .tips {
- position: absolute;
- top: 40rpx;
- left: 40rpx;
- right: 40rpx;
- width: 592rpx;
- line-height: 40rpx;
- color: #5A5A5A;
- font-size: 24rpx;
- }
- .section text {
- margin: 0 30rpx;
- font-size: 32rpx;
- line-height: 48rpx;
- color: #333333;
- }
- .radio-view {
- width: 100vw;
- display: flex;
- margin-top: 30rpx;
- flex-direction: row;
- align-items: center;
- }
- .radio-icon {
- width: 36rpx;
- margin-left: 10rpx;
- height: 36rpx;
- }
- .radio-title {
- font-size: 28rpx;
- margin: 0 20rpx;
- }
- .title {
- text-align: center;
- font-size: 38rpx;
- color: #0BC3AA;
- font-weight: bold;
- margin: auto;
- margin-top: 10rpx;
- }
- .title_1 {
- width: 100%;
- text-align: center;
- color: #333333;
- font-size: 32rpx;
- margin: 60rpx auto auto;
- }
- /* 标题样式 */
- /* .title {
- font-size: 18px;
- font-weight: bold;
- margin-bottom: 10px;
- } */
- /* 输入框和选择器的样式 */
- .input-area,
- .picker-area {
- margin-bottom: 20px;
- }
- .input-area input,
- .picker-area picker {
- width: 100%;
- padding: 10px;
- box-sizing: border-box;
- /* 包括内边距和边框在总宽度内 */
- border: 1px solid #ccc;
- border-radius: 4px;
- font-size: 16px;
- }
- /* 特别是针对选择器的样式(微信小程序中没有原生的<picker>标签,这里仅作为示例) */
- /* 实际上,您可能会使用微信小程序的picker组件,并通过自定义类来样式化它周围的容器 */
- .picker-container {
- position: relative;
- }
- .picker-container picker {
- /* 注意:这里的picker是假设的,微信小程序中picker组件的样式需要通过其他方式控制,如自定义模态框 */
- /* 实际上,您可能不需要直接对picker进行样式化,而是样式化触发picker的按钮或容器 */
- }
- /* 提交按钮的样式 */
- .submit-btn {
- display: block;
- width: 100%;
- padding: 10px;
- background-color: #007aff;
- color: white;
- font-size: 16px;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- margin-top: 20px;
- }
- .submit-btn:hover {
- /* 注意:微信小程序中不支持:hover伪类,这里仅作为Web开发的参考 */
- background-color: #0056b3;
- }
- /* 如果有多选问题,可能需要为checkbox或radio列表添加样式 */
- .checkbox-group,
- .radio-group {
- margin-bottom: 20px;
- }
- .checkbox-group label,
- .radio-group label {
- display: block;
- margin-bottom: 10px;
- }
- .full-width-textarea {
- width: 690rpx;
- background: #F5F7FB;
- /* 使textarea宽度占满其父容器的宽度 */
- border: none;
- border-radius: 2px;
- /* 可选:添加轻微的边框圆角 */
- padding: 10px;
- margin: auto;
- font-size: 28rpx;
- line-height: 48rpx;
- margin-top: 30rpx;
- /* 可选:添加内边距,让文本不紧贴边框 */
- box-sizing: border-box;
- /* 确保padding不会增加textarea的总宽度 */
- }
- .custom-input {
- width: 100%;
- /* 使input宽度占满其父容器的宽度 */
- border: none;
- /* 移除默认的边框 */
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
- /* 只设置底部边框为半透明细线 */
- padding: 10px 0;
- /* 只在垂直方向上添加内边距,避免底部边框被内边距遮挡 */
- background-color: transparent;
- /* 移除背景色 */
- box-shadow: none;
- /* 移除可能的阴影效果(如果默认有的话) */
- }
- input {
- width: calc(100% - 200rpx);
- margin: 15rpx auto auto;
- padding: 0 20rpx;
- line-height: 70rpx;
- border-radius: 5rpx;
- color: #333333;
- font-size: 28rpx;
- height: 70rpx;
- border-bottom: 1rpx solid #666666;
- }
- .commit-btn {
- line-height: 90rpx;
- border-radius: 45rpx;
- text-align: center;
- width: calc(100vw - 120rpx);
- display: block;
- color: #FFFFFF;
- font-size: 32rpx;
- margin: 80rpx auto 80rpx auto;
- background: linear-gradient(278deg, #0ABCA4 0%, rgba(11, 195, 170, 0.8) 100%);
- }
- .custom-radio-class {
- /* width: calc(100vw - 40rpx) !important; */
- /* padding: 15rpx 20rpx; */
- /* display: flex;
- align-items: flex-start !important;
- flex-direction: row; */
- }
- .van-radio__label,
- .van-checkbox__label {
- flex: 1;
- margin-right: 30rpx;
- }
- .van-radio-group {
- /* margin-top: 15rpx; */
- margin-bottom: 15tpx;
- }
- .bottom-view {
- display: flex;
- flex-direction: column;
- align-items: center;
- width: calc(100% - 60rpx);
- margin: 60rpx auto 30rpx auto;
- }
- .resultsAreShown-view {
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .resultsAreShown-content {
- width: 640rpx;
- margin-bottom: 30rpx;
- min-height: 516rpx;
- background: #FFFFFF;
- border-radius: 32rpx;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- }
- .resultsAreShown-content-top {
- background: #23C983;
- width: 100%;
- position: relative;
- height: 186rpx;
- display: flex;
- justify-content: space-between;
- flex-direction: row;
- }
- .resultsAreShown-content-title {
- color: #FFFFFF;
- font-size: 36rpx;
- font-weight: bold;
- margin-top: 64rpx;
- position: absolute;
- margin-left: 40rpx;
- }
- .resultsAreShown-content-icon {
- width: 96rpx;
- margin-top: 52rpx;
- margin-right: 44rpx;
- height: 108rpx;
- }
- .resultsAreShown-content-bg {
- width: 100%;
- height: 186rpx;
- }
- .resultsAreShown-content-h {
- display: flex;
- flex-direction: row;
- align-items: baseline;
- width: 100%;
- }
- .resultsAreShown-content-desc {
- font-size: 28rpx;
- margin-left: 40rpx;
- margin-top: 30rpx;
- color: #333333;
- }
- .resultsAreShown-content-score {
- font-weight: 700;
- color: #1AC57D;
- font-size: 60rpx;
- }
- .resultsAreShown-content-units {
- font-size: 28rpx;
- color: #1AC57D;
- }
- .resultsAreShown-content-score-view {
- display: flex;
- flex-direction: row;
- margin-top: 22rpx;
- margin-left: 24rpx;
- align-items: center;
- width: calc(100% - 48rpx);
- }
- .resultsAreShown-content-score-item {
- flex: 1;
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .resultsAreShown-content-score-icon {
- width: 24rpx;
- opacity: 0;
- height: 16rpx;
- }
- .resultsAreShown-content-score-line {
- width: calc(100% - 32rpx);
- height: 12rpx;
- margin-top: 20rpx;
- border-radius: 12rpx;
- }
- .resultsAreShown-content-score-desc {
- font-size: 24rpx;
- margin-top: 16rpx;
- line-height: 32rpx;
- color: #666666;
- }
- .resultsAreShown-content-score-desc.active {
- color: #333333;
- margin-top: 16rpx;
- line-height: 32rpx;
- font-size: 28rpx;
- }
- .tips {
- margin: 20rpx auto;
- padding: 20rpx 35rpx;
- width: 600rpx;
- font-size: 24rpx;
- line-height: 40rpx;
- background: white;
- color: #5A5A5A;
- box-shadow: 4rpx 4rpx 0 #BAE2E0;
- }
- .resultsAreShown-content-tips {
- color: #888888;
- margin: 30rpx;
- font-size: 20rpx;
- }
|