<template>
    <div id="app">
        <router-view></router-view>
    </div>
</template>

<script>
export default {
    name: 'App',
    data() {
        return {
        }
    },
    mounted () {
        //this.getWxSign()
    },
    methods: {
        getWxSign() {
            this.$http.get(`/scrm/v1/ct-share/p/getSignature`, {
                params: {
                    url: 'https://call.wefanbot.com'//window.location.href
                }
            }).then((res) => {
                if (res.code === 1) {
                    wx.config({
                        debug: false,
                        appId: res.data.appId, // 必填，企业号的唯一标识，此处填写企业号corpid
                        timestamp: res.data.timestamp, // 必填，生成签名的时间戳
                        nonceStr: res.data.nonceStr, // 必填，生成签名的随机串
                        signature: res.data.signature, // 必填，签名，见附录1
                        jsApiList: ['updateAppMessageShareData', 'updateTimelineShareData', 'wx-open-launch-weapp'] // 必填，需要使用的JS接口列表
                    })
                    // 分享接口仅激活的成员数超过200人且已经认证的企业才可在微信上调用。
                    wx.ready(() => {
                        let shareData = {
                            link: window.location.href,
                            title: '', // 分享标题
                            desc: '', // 分享描述
                            imgUrl: '',
                        }
                        // 分享到朋友圈
                        wx.updateAppMessageShareData(shareData)
                        // 分享给朋友
                        wx.updateTimelineShareData(shareData)
                        // 配置失败的回调函数
                        wx.error(function (res) {
                            // 配置失败
                            console.log('配置失败', res)
                        })
                    })
                }
            })
        },
    },
}
</script>

<style lang="less">
.size {
    width: 100%;
    height: 100%;
}

html,
body {
    font-family: 'Helvetica Neue', Helvetica, sans-serif;
    .size;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#app {
    .size;
    overflow: auto;
}

#app::-webkit-scrollbar {
    width: 0px;
}

.demo-spin-icon-load {
    animation: ani-demo-spin 1s linear infinite;
}

.ivu-table-tip {
    overflow-x: hidden !important;
}

.ivu-date-picker-cells-focused em {
    box-shadow: 0 0 0 1px #35E89A inset;
}

.ivu-date-picker-cells-cell-today em:after {
    background: #35E89A !important;
}

.ivu-date-picker-cells-cell-selected em,
.ivu-date-picker-cells-cell-selected:hover em {
    background: #35E89A;
}
.ivu-time-picker-cells-cell-selected,
.ivu-time-picker-cells-cell-selected:hover,
.ivu-btn-text:hover{
    color: #35E89A;
}
.ivu-date-picker-cells span em {
    border-radius: 5px;
    font-size: 12px;
}
.ivu-checkbox-wrapper{
    font-size: 12px;
    display: flex;
    align-items: center;
}
.ivu-checkbox-checked .ivu-checkbox-inner{
    border-color: #fff;
    background-color: #35E89A;
}
.ivu-checkbox-focus {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}
.ivu-upload-drag:hover{
    border-color: #35E89A !important;
}
.ivu-checkbox-checked:hover .ivu-checkbox-inner{
    border-color: #fff !important;
}
.ivu-checkbox-inner{
    width: 15px;
    height: 15px;
    border: 1px solid #E8E7ED;
    border-radius: 3px;
    background-color: #fff;
}
.ivu-checkbox-checked .ivu-checkbox-inner:after{
    transform: rotate(45deg) scale(0.8);
    top: 1px;
    left: 4px;
}
.ivu-checkbox{
    width: 15px;
    height: 15px;
    margin-right: 8px;
    display: flex;
    align-items: center;
}
.ivu-checkbox+span, .ivu-checkbox-wrapper+span{
    margin-right: 0;
    line-height: 17px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ivu-btn-default:hover {
    color: #35E89A;
    border-color: #35E89A;
}
.ivu-btn-primary{
    background-color: #35E89A !important;
}
.ivu-btn-primary:hover{
    border-color: #35E89A;
    color: #fff;
}
.ivu-modal-content{
    border-radius: 10px;
}
.ivu-notice-desc{
    text-align:left
}
.filter_time_list {
    display: flex;
    align-items: center;
    height: 40px;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 0 3px;

    .filter_time_item {
        padding: 0 20px;
        flex: 1;
        height: 36px;
        line-height: 36px;
        border-radius: 18px;
        font-weight: bold;
        font-size: 14px;
        color: #666666;
        text-align: center;
        white-space: nowrap;
        cursor: pointer;
    }

    .filter_time_item.current_date {
        background: #F5F7FA;
        color: #35E89A;
    }
}

.ivu-select-selection {
    border-radius: 20px;
    padding: 0 24px 0 10px;
    border: 1px solid #ffffff;
}

.ivu-select-multiple .ivu-select-item-selected,
.ivu-select-multiple .ivu-select-item-selected:after,
.ivu-select-item-selected,
.ivu-select-item-selected:hover {
    color: #35E89A;
}

.ivu-select-multiple .ivu-tag {
    border: 1px solid #F5F7FA;
    border-radius: 10px;
    background: #F5F7FA;
    color: #222222;
    height: 24px;
    line-height: 22px;
    margin: 3px 4px 3px 0;

    .ivu-tag-text {
        color: #222222;
    }
}
.ivu-select-single .ivu-select-selection .ivu-select-selected-value{
    padding: 0;
}
.ivu-input {
    border-radius: 20px;
    padding-left: 16px;
    padding-right: 16px;
    border-color: #ffffff;
}
.date_picker {
    margin-left: 16px;
    .ivu-input-wrapper{
        width: 234px;
    }
}
.ivu-input, .ivu-input-number, .ivu-select-selection{
    border: 1px solid #E8E7ED;
    border-radius: 5px;
    font-weight: 400;
    font-size: 12px;
    color: #222222;
}
.ivu-select-single .ivu-select-input,
.ivu-select-single .ivu-select-selection .ivu-select-placeholder,
.ivu-select-single .ivu-select-selection .ivu-select-selected-value{
    font-weight: 400;
    font-size: 12px;
    color: #222222;
}
.ivu-select-single .ivu-select-selection .ivu-select-placeholder{
        color: #CCCCCC;
}
.ivu-select-item{
    font-weight: 400;
    font-size: 12px !important;
}
.ivu-date-picker-focused input,
.ivu-input:hover,
.ivu-input:focus,
.ivu-input-number:hover,
.ivu-input-number:focus,
.ivu-select-selection-focused,
.ivu-select-selection:focus,
.ivu-select-selection:hover,
.ivu-select-visible .ivu-select-selection{
    border-color: #35E89A !important;
    box-shadow:inherit !important;
}
.ivu-select-item-selected{
    color: #35E89A;
}
.ivu-modal-body{
    padding: 0 24px;
    min-height: 142px;
    .ivu-modal-confirm{
        padding: 0;
        .ivu-modal-confirm-head{
            display: flex;
            justify-content: center;
            align-items: center;
            line-height: 68px;
            .ivu-modal-confirm-head-icon-info,
            .ivu-modal-confirm-head-icon-confirm{
                display: none;
            }
            .ivu-modal-confirm-head-title{
                margin-left: 0;
            }
        }
        .ivu-modal-confirm-body{
            padding: 0;
            .warning_icon{
                min-height: 94px;
                padding: 16px 0;
                padding-left: 48px;
                background: url('/img/confirm_icon@2x.png') no-repeat top 16px left/40px 40px;
                box-sizing: border-box;
            }
            .confirm_cont{
                padding: 16px 0 40px 0;
                box-sizing: border-box;
                font-weight: 500;
                font-size: 14px;
                color: #222222;
            }
            .text_conter{
                text-align: center;
            }
            .label{
                font-weight: bold;
                font-size: 14px;
                color: #222222;
                margin-bottom: 8px;
            }
            .span{
                font-weight: 400;
                font-size: 12px;
                color: #222222;
            }
        }
        .ivu-modal-confirm-footer{
            margin-top: 0;
            padding: 3px 0 24px 0;
            align-items: center;
            justify-content: center;
            .ivu-btn{
                font-weight: bold;
                font-size: 14px;
                color: #35E89A;
                height: 40px;
                padding: 10px 40px;
                background: #FFFFFF;
                border-radius: 10px;
                border: 1px solid #35E89A;
                text-align: center;
                width: 108px;
                box-sizing: border-box;
            }
            .ivu-btn-text{
                margin-right: 16px;
            }
            .ivu-btn-primary{
                color: #FFFFFF;
                background: #35E89A !important;
                margin-left: 0;
            }
        }
    }
    .ivu-form-item-error-tip{
        font-weight: 400;
        font-size: 12px;
    }
}
.ivu-modal-footer {
    border-top: none;
    padding: 24px;
    .confirm-btn,
    .cancel-btn{
        font-weight: bold;
        font-size: 14px;
        color: #35E89A;
        height: 40px;
        padding: 10px 40px;
        background: #FFFFFF;
        border-radius: 10px;
        border: 1px solid #35E89A;
        text-align: center;
    }
    .confirm-btn{
        color: #FFFFFF;
        background: #35E89A !important;
        margin-left: 16px;
    }
}
.ivu-form{
    .ivu-form-item-label{
        font-weight: 400;
        font-size: 12px;
        color: #222222;
    }
}
.ivu-tooltip-inner-with-width{
    word-break: initial;
}
.page_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    padding: 16px 40px 24px 24px;
    min-width: 520px;
    box-sizing: border-box;

    .header_left {
        display: flex;
        align-items: center;
        .blackup_btn ::before {
            content: '<';
        }
        .blackup_btn{
            color: #35E89A;
            cursor: pointer;
            font-size:16px;
            padding-left: 0px;
            padding-right: 5px;
        }
        .blackup_btn,
        .header_label {
            font-weight: bold;
            font-size: 22px;
            color: #222222;
            line-height: 29px;
            margin-top: 19px;
        }
        .blackup_btn{
            font-weight: 400;
            color: #35E89A;
            cursor: pointer;
            padding-left: 0px;
            padding-right: 5px;
            font-size: 14px;
        }
    }

    .header_right {
        display: flex;
        align-items: center;

        .add_btn {
            min-width: 116px;
            height: 40px;
            line-height: 40px;
            background: #35E89A,url('/img/add_btn@2x.png') no-repeat left 12px center/12px 12px;
            border-radius: 10px;
            font-weight: bold;
            font-size: 14px;
            color: #FFFFFF;
            text-align: center;
            cursor: pointer;
            margin-right: 24px;
        }
    }
}
.ivu-date-picker-cells-header{
    font-size: 12px;
}
.filter_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px 14px 24px;

    .filter_left {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        .filter_item {
            display: flex;
            align-items: center;
            margin-right: 40px;
            margin-bottom: 10px;
            label{
                white-space: nowrap;
                font-weight: bold;
                font-size: 14px;
                color: #222222;
            }
            .ivu-select,
            .ivu-input-wrapper{
                width: 160px;
            }
            .ivu-select-selection {
                min-height: 40px;
            }
        }
    }

    .filter_right {
        display: flex;
        align-items: center;

        .add_btn {
            min-width: 116px;
            height: 40px;
            line-height: 40px;
            background: url('/img/add_btn@2x.png') no-repeat left 12px center/12px 12px,#35E89A;
            border-radius: 10px;
            font-weight: bold;
            font-size: 14px;
            color: #FFFFFF;
            text-align: center;
            cursor: pointer;
            margin-right: 24px;
            padding: 0 24px 0 36px;
        }
    }
}

.page_content {
    box-sizing: border-box;
    overflow: auto;
    .table_content {
        padding: 24px;
        background: #FFFFFF;
        border-radius: 10px;
        .ivu-table-wrapper {
            .ivu-tag {
                height: 32px;
                line-height: 32px;
                border-radius: 5px;
                padding: 0 10px;
                margin: 2px;
            }
        }
        // .ivu-table > .ivu-table-body{
        //     overflow-y: scroll;
        // }
        .ivu-table table {
            table-layout: inherit
        }

        .ivu-table:before {
            display: none;
        }

        .ivu-table th,
        .ivu-table td {
            height: 49px;
            border-bottom: 1px solid #E5E8ED;
            font-weight: 400;
            font-size: 12px;
            color: #222222;
            padding: 16px 0;

            .ivu-table-cell {
                margin: 0;
                white-space: pre-wrap;
            }
        }
        .ivu-table th{
            font-size: 14px;
        }
        .ivu-table-header {
            line-height: 17px !important;
            font-weight: bold !important;
            border-radius: 10px;

            thead tr th {
                height: 49px;
                font-weight: bold;
                background-color: #F7F9FC;
                border-bottom: none;
            }
        }

    }
}
.ivu-page {
    padding: 24px 0 0;
    display: flex;
    justify-content: flex-end;
}

.ivu-page-prev,
.ivu-page-next,
.ivu-page-item-jump-prev,
.ivu-page-item-jump-next {
    min-width: 30px;
    height: 33px;
    line-height: 33px;
    border: none;
    border-radius: 5px;
}
.ivu-page-item-jump-next:after, .ivu-page-item-jump-prev:after{
    display: none;
}
.ivu-page-prev a,
.ivu-page-next a {
    font-weight: bold;
    font-size: 16px;
    color: #222222;
}

.ivu-page-disabled a {
    color: #222222;
}

.ivu-page-item {
    min-width: 30px;
    height: 33px;
    line-height: 33px;
    margin-right: 8px;
    border-radius: 5px;
    border: 1px solid #CCCCCC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ivu-page-item a {
    font-weight: 400;
    font-size: 12px;
    color: #999999;
}

.ivu-page-item-active {
    border-color: #35E89A;
    background: #35E89A;
}
.ivu-page-item:hover{
    border-color: #35E89A;
}
.ivu-page-item:hover a{
    color: #35E89A;
}
.ivu-page-item-active a,
.ivu-page-item-active:hover a {
    color: #FFFFFF;
}

.ivu-page-options {
    margin-left: 8px;

    .ivu-page-options-sizer {
        margin-right: 0;

        .ivu-select {
            font-weight: 400;
            font-size: 12px;
            color: #222222;
        }

        .ivu-select-single .ivu-select-selection {
            height: 33px;
        }
        .ivu-select-single .ivu-select-selection .ivu-select-placeholder,
        .ivu-select-single .ivu-select-selection .ivu-select-selected-value {
            height: 33px;
            line-height: 33px;
            font-size: 12px;
        }
    }
}

.ivu-page-total {
    font-weight: 400;
    font-size: 12px;
    color: #222222;
}
</style>
