searchEquipment.scss 4.93 KB
.page_box {
    display: flex;
    flex-direction: column;
    background: #F5F6F7;
    height: 100vh;
    overflow: hidden;
}

// 顶部菜单栏
.top_menu {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    background: #fff;

    .cell {
        position: relative;
        flex: 1;
        text-align: center;
        height: 44px;
        line-height: 44px;

        font-family: PingFangSC-Regular;
        font-weight: 400;
        font-size: 14px;
        color: #6c737a;
    }

    .cell_active {
        font-weight: 500;
        color: #111111;
    }

    .cell_active:after {
        display: block;
        content: "";
        position: absolute;
        width: 28px;
        height: 3px;
        background: #0077ff;
        border-radius: 1px;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
    }
}

.top_menu:after {
    display: block;
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #f2f2f2;
}

// 顶部搜索框
.search_box {
    padding: 6px 12px;
    height: 56px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    background: #fff;

    .input_box {
        flex: 1;
        height: 44px;
        background: #F5F6F7;
        border-radius: 6px;
        display: flex;
        align-items: center;
        padding: 12px;
        box-sizing: border-box;

        .img {
            width: 20px;
            height: 20px;
            margin-right: 8px;
        }

        .close {
            width: 20px;
            height: 20px;
        }

        .a_input {
            flex: 1;
            height: 100%;
            background: #F5F6F7;
            border: 0;
            font-family: PingFangSC-Regular;
            font-weight: 400;
            font-size: 14px;
        }
    }

    .btn {
        width: 60px;
        background: #0077FF;
        border-radius: 4px;
        font-family: PingFangSC-Regular;
        font-weight: 400;
        font-size: 14px;
        color: #FFFFFF;
        margin-left: 8px;
    }
}

.search_title {
    background: #fff;
    padding: 10px 20px;
    font-family: PingFangSC-Medium;
    font-weight: 500;
    font-size: 14px;
    color: #111111;
}

.result_list {
    flex: 1;
    overflow-y: auto;
}

.result_box {
    position: relative;
    padding: 8px 12px 6px 36px;

    .result {
        min-height: 148px;
        background: #FFFFFF;
        border-radius: 8px;
        padding: 0 16px;
        box-sizing: border-box;

        .head {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 0;

            .name {
                font-family: PingFangSC-Medium;
                font-weight: 500;
                font-size: 14px;
                color: #111111;
            }

            .icon {
                width: 16px;
                height: 16px;
            }
        }

        .head:after {
            display: block;
            content: "";
            height: 1px;
            background: #F5F6F7;
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
        }

        .cell_list {
            position: relative;
            padding: 0 0 10px 0;

            .cell {
                display: flex;
                margin: 8px 0;

                .name {
                    flex-shrink: 0;
                    width: 50px;
                    font-family: PingFangSC-Regular;
                    font-weight: 400;
                    font-size: 12px;
                    color: #9FA6AD;
                    line-height: 16px;
                }

                .txt {
                    font-family: PingFangSC-Regular;
                    font-weight: 400;
                    font-size: 12px;
                    color: #111111;
                    line-height: 16px;
                    margin-left: 16px;
                }
            }
        }

        .cell_list:after {
            display: block;
            content: "";
            height: 1px;
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            background: #F5F6F7;
        }

        .cell_list:last-child:after {
            display: none;
        }
    }
}

.result_box:first-child:after {
    top: 22px;
}

.result_box:after {
    display: block;
    content: "";
    position: absolute;
    left: 17px;
    top: 0px;
    bottom: 0;
    width: 1px;
    background: #000000;
    opacity: 0.1;
    z-index: 1;
}

.result_box:last-child:after {
    height: 20px;
    bottom: auto;
}

.result_box:before {
    position: absolute;
    display: block;
    content: "";
    width: 12px;
    height: 12px;
    background: #F5F6F7;
    border: 3px solid #0077FF;
    border-radius: 100%;
    left: 12px;
    top: 14px;
    box-sizing: border-box;
    z-index: 2;
}

.cred {
    color: #f00 !important;
}