client.hbs 3.33 KB
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>{{title}}</title>
        <meta name="keywords" content="{{keywords}}">
        <meta name="description" content="{{description}}">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
        <meta http-equiv="cleartype" content="on">
        <meta name="apple-mobile-web-app-status-bar-style" content="black" />
        <meta content="telephone=no" name="format-detection" />
        <meta content="email=no" name="format-detection" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <meta name="renderer" content="webkit" />
        {{#dnsPrefetch.hosts}}
            <link rel="dns-prefetch" href="{{this}}">
        {{/dnsPrefetch.hosts}}

        {{#if devEnv}}
            <link rel="stylesheet" href="//{{devHost}}:5002/base.css">
            <link rel="stylesheet" href="//{{devHost}}:5002/{{#if cssModule}}{{cssModule}}.css{{^}}{{module}}.css{{/if}}">
        {{^}}
            <link rel="stylesheet" href="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/{{version}}/base.css">
            <link rel="stylesheet" href="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/{{version}}/{{#if cssModule}}{{cssModule}}.css{{^}}{{module}}.css{{/if}}">
        {{/if}}
    </head>
    <body class="client">
        <div class="online-user">
            <div class="header">
                <div class="chat"></div>
                <img class="logo" src="{{image2 csSetting.windowLogo}}" alt="客服logo">
                <div class="page-desc">{{csSetting.windowTitle}}</div>
                <div class="close"></div>
            </div>
            <div class="main">
                <div class="chat-panel">
                    {{> panel-left}}
                    {{> panel-main}}
                    {{> panel-right}}
                </div>
            </div>
        </div>

        <!-- 表情弹出层 -->
        {{> leave-msg}}

        <!--服务评价Modal-->
        {{> service-eval}}

        <!-- 表情弹出层 -->
        {{> emoji}}

        <!-- 消息图片放大显示 -->
        {{> img-zoom-in}}

        <!-- 不支持websocket -->
        {{> un-support}}

        <!-- websocket连接失败 -->
        {{> connect-fail}}

        <input name="encryptedUid" type="text" type="hidden" value={{encryptedUid}}>
        <script>
            var gDomains = {
                imCs: '{{{imCs}}}',
                imSocket: '{{{imSocket}}}'
            }
        </script>
        {{#if devEnv}}
            <input name="assetsPrefix" type="text" type="hidden" value="">
            <script src="//{{devHost}}:5002/libs.js"></script>
            <script src="//{{devHost}}:5002/{{module}}.{{page}}.js"></script>
        {{^}}
            <input name="assetsPrefix" type="text" type="hidden" value="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/assets">
            <script src="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/{{version}}/libs.js"></script>
            <script src="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/{{version}}/{{module}}.{{page}}.js"></script>
            {{> analysis}}
        {{/if}}
    </body>
</html>