123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521 |
- /* ==================
- 表单
- ==================== */
- .form-group {
- /*background-color: var(--white);影响圆角*/
- padding: 1rpx 30rpx;
- display: flex;
- align-items: center;
- min-height: 100rpx;
- justify-content: space-between;
- }
- .form-group+.form-group {
- border-top: 1rpx solid #eee;
- }
- .form-group .title {
- text-align: justify;
- padding-right: 30rpx;
- font-size: 30rpx;
- position: relative;
- height: 60rpx;
- line-height: 60rpx;
- }
- .form-group input {
- flex: 1;
- font-size: 30rpx;
- color: #555;
- padding-right: 20rpx;
- }
- .form-group>text[class*="icon-"] {
- font-size: 36rpx;
- padding: 0;
- box-sizing: border-box;
- }
- .form-group textarea {
- margin: 32rpx 0 30rpx;
- height: 4.6em;
- width: 100%;
- line-height: 1.2em;
- flex: 1;
- font-size: 28rpx;
- padding: 0;
- text-align: left;
- }
- .form-group.align-start .title {
- height: 1em;
- margin-top: 32rpx;
- line-height: 1em;
- }
- .form-group picker {
- flex: 1;
- padding-right: 40rpx;
- overflow: hidden;
- position: relative;
- }
- .form-group picker .picker {
- line-height: 100rpx;
- font-size: 28rpx;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- width: 100%;
- text-align: right;
- }
- .form-group picker::after {
- font-family: "icon";
- display: block;
- content: "\e6a3";
- position: absolute;
- font-size: 34rpx;
- color: var(--grey);
- line-height: 100rpx;
- width: 60rpx;
- text-align: center;
- top: 0;
- bottom: 0;
- right: -20rpx;
- margin: auto;
- }
- .form-group textarea[disabled],
- .form-group textarea[disabled] .placeholder {
- color: transparent;
- }
- /* ==================
- 开关
- ==================== */
- switch,
- checkbox,
- radio {
- position: relative;
- }
-
- switch::after,
- switch::before {
- font-family: "icon";
- content: "\e645";
- position: absolute;
- color: var(--white) !important;
- top: 0%;
- left: 0rpx;
- font-size: 26rpx;
- line-height: 26px;
- width: 50%;
- text-align: center;
- pointer-events: none;
- transform: scale(0, 0);
- transition: all 0.3s ease-in-out 0s;
- z-index: 9;
- bottom: 0;
- height: 26px;
- margin: auto;
- }
-
- switch::before {
- content: "\e646";
- right: 0;
- transform: scale(1, 1);
- left: auto;
- }
-
- switch[checked]::after,
- switch.checked::after {
- transform: scale(1, 1);
- }
-
- switch[checked]::before,
- switch.checked::before {
- transform: scale(0, 0);
- }
-
- switch[checked]::before {
- transform: scale(0, 0);
- }
-
- radio::before,
- checkbox::before {
- font-family: "icon";
- content: "\e645";
- position: absolute;
- color: var(--white) !important;
- top: 50%;
- margin-top: -8px;
- right: 5px;
- font-size: 32rpx;
- line-height: 16px;
- pointer-events: none;
- transform: scale(1, 1);
- transition: all 0.3s ease-in-out 0s;
- z-index: 9;
- }
-
- radio .wx-radio-input,
- checkbox .wx-checkbox-input {
- margin: 0;
- width: 24px;
- height: 24px;
- }
-
- checkbox.round .wx-checkbox-input {
- border-radius: 100rpx;
- }
-
- switch .wx-switch-input {
- border: none;
- padding: 0 24px;
- width: 48px;
- height: 26px;
- margin: 0;
- border-radius: 100rpx;
- }
-
- switch .wx-switch-input:not([class*="bg-"]) {
- background: var(--grey) !important;
- }
-
- switch .wx-switch-input::after {
- margin: auto;
- width: 26px;
- height: 26px;
- border-radius: 100rpx;
- left: 0rpx;
- top: 0rpx;
- bottom: 0rpx;
- position: absolute;
- transform: scale(0.9, 0.9);
- transition: all 0.1s ease-in-out 0s;
- }
-
- switch .wx-switch-input.wx-switch-input-checked::after {
- margin: auto;
- left: 22px;
- box-shadow: none;
- transform: scale(0.9, 0.9);
- }
-
- radio-group {
- display: inline-block;
- }
-
-
-
- switch.radius .wx-switch-input::after,
- switch.radius .wx-switch-input,
- switch.radius .wx-switch-input::before {
- border-radius: 10rpx;
- }
-
- switch .wx-switch-input::before,
- radio.radio::before,
- checkbox .wx-checkbox-input::before,
- radio .wx-radio-input::before,
- radio.radio::before {
- display: none;
- }
-
- radio.radio[checked]::after {
- content: "";
- background-color: transparent;
- display: block;
- position: absolute;
- width: 8px;
- height: 8px;
- z-index: 999;
- top: 0rpx;
- left: 0rpx;
- right: 0;
- bottom: 0;
- margin: auto;
- border-radius: 200rpx;
- border: 8px solid var(--white) !important;
- }
-
- .switch-sex::after {
- content: "\e71c";
- }
-
- .switch-sex::before {
- content: "\e71a";
- }
-
- .switch-sex .wx-switch-input {
- background: var(--red) !important;
- border-color: var(--red) !important;
- }
-
- .switch-sex[checked] .wx-switch-input {
- background: var(--blue) !important;
- border-color: var(--blue) !important;
- }
-
- switch.red[checked] .wx-switch-input,
- checkbox.red[checked] .wx-checkbox-input,
- radio.red[checked] .wx-radio-input {
- border-color: var(--red) !important;
- }
-
- switch.orange[checked] .wx-switch-input,
- checkbox.orange[checked] .wx-checkbox-input,
- radio.orange[checked] .wx-radio-input {
- border-color: var(--orange) !important;
- }
-
- switch.yellow[checked] .wx-switch-input,
- checkbox.yellow[checked] .wx-checkbox-input,
- radio.yellow[checked] .wx-radio-input {
- border-color: var(--yellow) !important;
- }
-
- switch.olive[checked] .wx-switch-input,
- checkbox.olive[checked] .wx-checkbox-input,
- radio.olive[checked] .wx-radio-input {
- border-color: var(--olive) !important;
- }
-
- switch.green[checked] .wx-switch-input,
- checkbox.green[checked] .wx-checkbox-input,
- checkbox[checked] .wx-checkbox-input,
- radio.green[checked] .wx-radio-input {
- border-color: var(--green) !important;
- }
-
- switch.cyan[checked] .wx-switch-input,
- checkbox.cyan[checked] .wx-checkbox-input,
- radio.cyan[checked] .wx-radio-input {
- border-color: var(--cyan) !important;
- }
-
- switch.blue[checked] .wx-switch-input,
- checkbox.blue[checked] .wx-checkbox-input,
- radio.blue[checked] .wx-radio-input {
- border-color: var(--blue) !important;
- }
-
- switch.purple[checked] .wx-switch-input,
- checkbox.purple[checked] .wx-checkbox-input,
- radio.purple[checked] .wx-radio-input {
- border-color: var(--purple) !important;
- }
-
- switch.mauve[checked] .wx-switch-input,
- checkbox.mauve[checked] .wx-checkbox-input,
- radio.mauve[checked] .wx-radio-input {
- border-color: var(--mauve) !important;
- }
-
- switch.pink[checked] .wx-switch-input,
- checkbox.pink[checked] .wx-checkbox-input,
- radio.pink[checked] .wx-radio-input {
- border-color: var(--pink) !important;
- }
-
- switch.brown[checked] .wx-switch-input,
- checkbox.brown[checked] .wx-checkbox-input,
- radio.brown[checked] .wx-radio-input {
- border-color: var(--brown) !important;
- }
-
- switch.grey[checked] .wx-switch-input,
- checkbox.grey[checked] .wx-checkbox-input,
- radio.grey[checked] .wx-radio-input {
- border-color: var(--grey) !important;
- }
-
- switch.gray[checked] .wx-switch-input,
- checkbox.gray[checked] .wx-checkbox-input,
- radio.gray[checked] .wx-radio-input {
- border-color: var(--grey) !important;
- }
-
- switch.black[checked] .wx-switch-input,
- checkbox.black[checked] .wx-checkbox-input,
- radio.black[checked] .wx-radio-input {
- border-color: var(--black) !important;
- }
-
- switch.white[checked] .wx-switch-input,
- checkbox.white[checked] .wx-checkbox-input,
- radio.white[checked] .wx-radio-input {
- border-color: var(--white) !important;
- }
-
- switch.red[checked] .wx-switch-input.wx-switch-input-checked,
- checkbox.red[checked] .wx-checkbox-input,
- radio.red[checked] .wx-radio-input {
- background-color: var(--red) !important;
- color: var(--white) !important;
- }
-
- switch.orange[checked] .wx-switch-input,
- checkbox.orange[checked] .wx-checkbox-input,
- radio.orange[checked] .wx-radio-input {
- background-color: var(--orange) !important;
- color: var(--white) !important;
- }
-
- switch.yellow[checked] .wx-switch-input,
- checkbox.yellow[checked] .wx-checkbox-input,
- radio.yellow[checked] .wx-radio-input {
- background-color: var(--yellow) !important;
- color: var(--black) !important;
- }
-
- switch.olive[checked] .wx-switch-input,
- checkbox.olive[checked] .wx-checkbox-input,
- radio.olive[checked] .wx-radio-input {
- background-color: var(--olive) !important;
- color: var(--white) !important;
- }
-
- switch.green[checked] .wx-switch-input,
- switch[checked] .wx-switch-input,
- checkbox.green[checked] .wx-checkbox-input,
- checkbox[checked] .wx-checkbox-input,
- radio.green[checked] .wx-radio-input,
- radio[checked] .wx-radio-input {
- background-color: var(--green) !important;
- color: var(--white) !important;
- }
-
- switch.cyan[checked] .wx-switch-input,
- checkbox.cyan[checked] .wx-checkbox-input,
- radio.cyan[checked] .wx-radio-input {
- background-color: var(--cyan) !important;
- color: var(--white) !important;
- }
-
- switch.blue[checked] .wx-switch-input,
- checkbox.blue[checked] .wx-checkbox-input,
- radio.blue[checked] .wx-radio-input {
- background-color: var(--blue) !important;
- color: var(--white) !important;
- }
-
- switch.purple[checked] .wx-switch-input,
- checkbox.purple[checked] .wx-checkbox-input,
- radio.purple[checked] .wx-radio-input {
- background-color: var(--purple) !important;
- color: var(--white) !important;
- }
-
- switch.mauve[checked] .wx-switch-input,
- checkbox.mauve[checked] .wx-checkbox-input,
- radio.mauve[checked] .wx-radio-input {
- background-color: var(--mauve) !important;
- color: var(--white) !important;
- }
-
- switch.pink[checked] .wx-switch-input,
- checkbox.pink[checked] .wx-checkbox-input,
- radio.pink[checked] .wx-radio-input {
- background-color: var(--pink) !important;
- color: var(--white) !important;
- }
-
- switch.brown[checked] .wx-switch-input,
- checkbox.brown[checked] .wx-checkbox-input,
- radio.brown[checked] .wx-radio-input {
- background-color: var(--brown) !important;
- color: var(--white) !important;
- }
-
- switch.grey[checked] .wx-switch-input,
- checkbox.grey[checked] .wx-checkbox-input,
- radio.grey[checked] .wx-radio-input {
- background-color: var(--grey) !important;
- color: var(--white) !important;
- }
-
- switch.gray[checked] .wx-switch-input,
- checkbox.gray[checked] .wx-checkbox-input,
- radio.gray[checked] .wx-radio-input {
- background-color: #f0f0f0 !important;
- color: var(--black) !important;
- }
-
- switch.black[checked] .wx-switch-input,
- checkbox.black[checked] .wx-checkbox-input,
- radio.black[checked] .wx-radio-input {
- background-color: var(--black) !important;
- color: var(--white) !important;
- }
-
- switch.white[checked] .wx-switch-input,
- checkbox.white[checked] .wx-checkbox-input,
- radio.white[checked] .wx-radio-input {
- background-color: var(--white) !important;
- color: var(--black) !important;
- }
-
- .form-group .upload-img{
- display: flex;
- flex-wrap: wrap;
- overflow: hidden;
- flex: 1;
- }
- .form-group .upload-img>view{
- width: 25%;
- padding-bottom: calc((100% - 60rpx)/4);
- height: 0;
- width: calc((100% - 60rpx)/4);
- margin-right: 12rpx;
- margin-bottom: 20rpx;
- border-radius: 6rpx;
- position: relative;
- overflow: hidden;
- }
- .form-group .upload-img .bg-img {
- background-size: cover;
- background-position: center;
- background-repeat: no-repeat;
- }
- .form-group .upload-img .bg-img image {
- width: 100%;
- height: 100%;
- position: absolute;
- }
- .form-group .upload-img>view>text[class*="icon-"] {
- font-size: 52rpx;
- position: absolute;
- color: var(--grey);
- margin: auto;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: column;
- }
- .form-group .upload-img .tag {
- position: absolute;
- right: 0;
- top: 0;
- border-bottom-left-radius: 6rpx;
- padding: 6rpx 12rpx;
- height: auto;
- background-color: rgba(0, 0, 0, 0.5);
- }
- .phc{
- color: rgba(206, 206, 206, 100);
- }
|