123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298 |
- .page-background{
- display: block;
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- }
- .body{
- width: 100%;
- height: 100%;
- position: relative;
- z-index: 1;
- }
- .title{
- font-size: 16px;
- font-weight: bold;
- }
- .subtitle{
- font-size: 12px;
- color: #aaa;
- margin-top: 10px;
- }
- /* 面包屑 */
- .crumbs{
- display: flex;
- align-items: center;
- height: 60px;
- border-radius: 8px;
- background-color: #fff;
- margin: 15px 0;
- }
- .crumbs .item{
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- }
- .crumbs .item .value{
- font-size: 16px;
- font-weight: bold;
- color: #3EB6F8;
- }
- .crumbs .item .name{
- font-size: 12px;
- }
- /* 切换 */
- .switch{
- display: flex;
- align-items: center;
- justify-content: space-between;
- width: 100%;
- height: 44px;
- background-color: #fff;
- border-radius: 100pc;
- position: relative;
- }
- .switch .bg{
- width: 50%;
- height: 40px;
- background-color: #3EB6F8;
- border-radius: 100pc;
- position: absolute;
- top: 2px;
- left: 2px;
- transition: all 200ms ease;
- }
- .switch .contet{
- display: flex;
- align-items: center;
- justify-content: space-between;
- width: 100%;
- }
- .switch .text{
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 14px;
- position: relative;
- z-index: 2;
- transition: color 200ms ease;
- }
- .switch .text:first-child,
- .switch.another .text:last-child{
- color: #fff;
- }
- .switch.another .text:first-child{
- color: inherit;
- }
- .switch.another .bg{
- transform: translateX(100%);
- }
- .list{
- height: var(--list-height);
- overflow: auto;
- padding: 10px 0;
- }
- .list::-webkit-scrollbar{
- display: none;
- }
- /* 设备列表 */
- .terminals{
- margin-top: 10px;
- }
- .terminal-item{
- display: flex;
- align-items: center;
- justify-content: space-between;
- background-color: #fff;
- border-radius: 8px;
- height: 78px;
- padding: 10px;
- }
- .terminal-item+.terminal-item{
- margin-top: 10px;
- }
- .terminal-item .state{
- display: flex;
- width: 58px;
- height: 58px;
- border-radius: 100%;
- margin-right: 10px;
- padding: 4px;
- background-image: linear-gradient(to right, #ccc 0%, #ccc 35.8%, #c7cccf 65.9%, #e8e8e8 80.4%, #c8c8c8 100%);
- }
- .terminal-item .state .cake{
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- width: 100%;
- height: 100%;
- border-radius: 100%;
- background-color: #eee;
- }
- .terminal-item .state .icon{
- display: block;
- width: 20px;
- height: 20px;
- }
- .terminal-item .state .name{
- font-size: 12px;
- margin-top: 3px;
- }
- .terminal-item .info{
- flex: 1;
- }
- .terminal-item .info .name{
- font-size: 14px;
- font-weight: bold;
- margin-bottom: 5px;
- }
- .terminal-item .info .subinfo{
- font-size: 12px;
- color: #aaa;
- }
- .terminal-item .state.green{
- background-image: linear-gradient(to right, #73e6a0 0%, #3eff8a 30%, #4edc86 60%, #b4ffd1 75%, #6be49a 100%);
- }
- .terminal-item .state.green .cake{
- background-color: #ECFFF4;
- }
- .terminal-item .state.blue{
- background-image: linear-gradient(to right, #3eb6f8 0%, #81d8ff 35%, #75ceff 65%, #94e2ff 80%, #2cb5ff 100%);
- }
- .terminal-item .state.blue .cake{
- background-color: #E9F9FF;
- }
- .terminal-item .state.orange{
- background-image: linear-gradient(to right, #FFE9BC 0%, #FFD070 35%, #FFD887 65%, #FFD887 80%, #FFC246 100%);
- }
- .terminal-item .state.orange .cake{
- background-color: #FFF8EB;
- }
- .terminal-item .state.err{
- background-image: linear-gradient(to right, #FFC4C4 0%, #F77474 35%, #FFAAAA 65%, #FFAAAA 80%, #F55B5B 100%);
- }
- .terminal-item .state.err .cake{
- background-color: #FFE9E9;
- }
- /* 价格列表 */
- .price{
- padding: 10px;
- background-color: #fff;
- border-radius: 8px;
- border: 1px solid transparent;
- position: relative;
- overflow: hidden;
- }
- .price + .price{
- margin-top: 10px;
- }
- .price .header{
- display: flex;
- align-items: center;
- }
- .price .header .icon{
- display: flex;
- align-items: center;
- justify-content: center;
- width: 20px;
- height: 20px;
- font-size: 14px;
- color: #fff;
- border-radius: 4px;
- background-color: #ccc;
- margin-right: 14px;
- }
- .price .header .value{
- font-size: 14px;
- font-weight: bold;
- }
- .price .info{
- background-color: #F6F6F6;
- border-radius: 8px;
- padding: 10px;
- font-size: 14px;
- margin: 10px 0;
- }
- .price .info .row{
- display: flex;
- align-items: center;
- justify-content: space-between;
- height: 30px;
- }
- .price .info .row .unit{
- color: #aaa;
- margin-left: 5px;
- }
- .price .footer{
- display: flex;
- align-items: center;
- justify-content: space-between;
- font-size: 14px;
- }
- .price.active{
- border-color: #47B9F8;
- }
- .price.active .footer,
- .price.active .header{
- color: #47B9F8;
- }
- .price.active .header .icon{
- background: linear-gradient(to right,#8FF8FB,#47AEFF);
- }
- .price.active::after{
- content: '当前时段';
- display: flex;
- width: 76px;
- height: 30px;
- font-size: 14px;
- align-items: center;
- justify-content: center;
- color: #fff;
- background: linear-gradient(to right,#8FF8FB,#47AEFF);
- position: absolute;
- top: 0;
- right: 0;
- border-radius: 0 0 0 8px;
- text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
- }
- .price.active .row .name{
- font-weight: bolder;
- }
- .price.active .row .value,.price.active .row .unit{
- font-size: 18px;
- font-weight: bolder;
- color: #FF5D50;
- }
- /* 底部 */
- .underside{
- position: fixed;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 10;
- padding: 10px;
- padding-bottom: 0;
- }
- .underside .scan{
- display: flex;
- align-items: center;
- justify-content: center;
- width: 100%;
- height: 50px;
- border-radius: 8px;
- font-size: 14px;
- background: linear-gradient(to right,#8FF8FB,#47AEFF);
- }
|