meiqia.html 2.57 KB
<!DOCTYPE html>
<html lang="zh">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta
            name="viewport"
            content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
        />
        <title>在线咨询</title>
        <style>
            html,
            body {
                width: 100%;
                height: 100%;
                margin: 0;
                padding: 0;
            }
        </style>
    </head>
    <body>
        <script type="text/javascript">
            // ******************************************************
            // 配置项: 企业ID
            //  请将下面的 ENTERPRISE_ID 改为您自己的企业ID
            //  请到工作台 设置-ID查询-获取企业ID
            // ******************************************************
            var ENTERPRISE_ID = 114195;

            (function(m, ei, q, i, a, j, s) {
                m[i] =
                    m[i] ||
                    function() {
                        (m[i].a = m[i].a || []).push(arguments);
                    };
                (j = ei.createElement(q)), (s = ei.getElementsByTagName(q)[0]);
                j.async = true;
                j.charset = 'UTF-8';
                j.src = 'https://static.meiqia.com/dist/meiqia.js?_=t';
                s.parentNode.insertBefore(j, s);
            })(window, document, 'script', '_MEIQIA');

            function getQueryString(name) {
                var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
                var r = window.location.search.substr(1).match(reg);
                if (r != null) {
                    return unescape(r[2]);
                }
                return null;
            }
            var entId = ENTERPRISE_ID || getQueryString('eid');
            var metadata = getQueryString('metadata');
            _MEIQIA('entId', entId);
            _MEIQIA('standalone', function(config) {
                // 更新界面样式
                if (config.color) {
                    document.body.style['background-color'] = '#' + config.color;
                }
                if (config.url) {
                    document.body.style['background-image'] = 'url(' + config.url + ')';
                    document.body.style['background-repeat'] = 'no-repeat';
                    document.body.style['background-size'] = '100% 100%';
                }
            });
            _MEIQIA('showPanel', {});
            _MEIQIA('withoutBtn');
        </script>
    </body>
</html>