chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
        <meta http-equiv="Cache-Control" content="no-cache" />
        <title>视频面试 - {yun:}$config.sy_webname{/yun}</title>
        <meta name="keywords" content="{yun:}$keywords{/yun},wap" />
        <meta name="description" content="{yun:}$description{/yun}" />
        <meta name="renderer" content="webkit" />
        <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
        <meta http-equiv="Cache-Control" content="no-siteapp" />
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <link rel="stylesheet" href="{yun:}$wap_style{/yun}/chat/css/chat.css?v={yun:}$config.cachecode{/yun}">
    </head>
    <body style="background:#242e36">
        <div class="chat_msg_header" style="background:#242e36">
            <span id="backicon" class="chat_msg_header_p_back"></span>
            <span class="chat_msg_header_p" onclick="goBack()">视频面试间</span>
        </div>
 
        <!--面试间视频页面-->
        <div id="sproom">
            <!--切换摄像头-->
            <!--i class="video_room_qh"></i-->
            <!--大屏幕-->
            <div id="bigvideo" class="video_room_frame">
                <div style="height: 100%; flex: 1">
                    <div id="video-grid" class="video-box col-div" style="justify-content: flex-end">
                    </div>
                </div>
            </div>
            <!--小屏幕-->
            <div id="smallvideo" class="video_room_user">
                <div style="height: 100%; flex: 1">
                    <div id="mine-video" class="video-box col-div" style="justify-content: flex-end">
                    </div>
                </div>
            </div>
 
            <!--等待对方接受邀请-->
 
            <div id="spComment" class="sprequest_waitbox none">
                <div class="sprequest_waitiocn"></div>
                <div class="sprequest_wait">正在等待对方接受邀请...</div>
                <div class="sprequest_wait_time">预计等待时间<span id="spWait">60</span>秒</div>
            </div>
            <div id="hangdiv" class="video_hang_up">
                <i id="hangUp" onclick="sendClosesp()" class="video_hang_upicon"></i>
                <div class="video_hang_up_p">挂断</div>
            </div>
        </div>
 
        <!--挂断-->
 
        <!--面试间视频页面 end-->
        
        <!--邀请视频面试   start-->
        <div id="spviewModal" class="none">
            <div class="wapspms_bg"></div>
            <div class="wapspms_show">
                <div class="wapspms_com">
                    <div class="wapspms_comlogo"><img id="modalLogo" src=""></div>
                    <div class="wapspms_comname" id="modalName"></div>
                    <div>邀请你进行视频面试</div>
                </div>
                <div class="wapspms_cz">
                    <a href="javascript:void(0);" onclick="closeSp()" class="wapspms_cz_a"><i class="wapspms_cz_icon"></i><div class="wapspms_cz_p">拒绝</div></a>
                    <a href="javascript:void(0);" onclick="allowSp()" class="wapspms_cz_a wapspms_cz_aml"><i class="wapspms_cz_icon wapspms_cz_icon_js"></i><div class="wapspms_cz_p">接受</div></a>
                </div>
            </div>
        </div>
        <!--邀请视频面试   end-->
        
        <script src="{yun:}$config.sy_weburl{/yun}/js/trtc/jquery-3.2.1.min.js?v={yun:}$config.cachecode{/yun}"></script>
        <link href="{yun:}$config_wapdomain{/yun}/js/vant/lib/index.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" />
        <script src="{yun:}$wap_style{/yun}/js/vue.min.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="{yun:}$config_wapdomain{/yun}/js/vant/lib/vant.min.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="{yun:}$config_wapdomain{/yun}/js/vant/phpyun_vant.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="{yun:}$config.sy_weburl{/yun}/js/trtc/abilitytest.js?v={yun:}$config.cachecode{/yun}"></script>
        {yun:}if $isweixin{/yun}
        {yun:}if strpos($config.sy_wapdomain, 'https://')!==false{/yun}
        <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js?v={yun:}$config.cachecode{/yun}"></script>
        {yun:}else{/yun}
        <script src="http://res.wx.qq.com/open/js/jweixin-1.6.0.js?v={yun:}$config.cachecode{/yun}"></script>
        {yun:}/if{/yun}
        <script>
            wx.config({
                appId: '{yun:}$signPackage.appId{/yun}',
                timestamp: '{yun:}$signPackage.timestamp{/yun}',
                nonceStr: '{yun:}$signPackage.nonceStr{/yun}',
                signature: '{yun:}$signPackage.signature{/yun}',
                jsApiList: ['onMenuShareTimeline'],
                openTagList: ['wx-open-launch-weapp']
            });
            wx.ready(function() {
                var clientWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
                $("#launch-btn").css('width', clientWidth + 'px');
                if(clientWidth < 375){
                    $("#launch-btn").css('padding-left', '35px');
                }
            });
        </script>
        <div id="launch-weapp" style="display: none;">
            <wx-open-launch-weapp id="launch-btn" username="{yun:}$wxpaydata.sy_xcxysid{/yun}" path="pages/index/index.html" >
                <template>
                    <style>
                        .btn {
                            background:#f60;padding:8px 30px;font-size:16px;color:#fff;border-radius:20px;border:none;
                        }
                    </style>
                    <div style="padding-top:70px;color:#fff; text-align: center; line-height:30px">
                        <div class="">您的浏览器不支持视频面试功能...</div>
                        <div class="">可以使用微信小程序</div>
                        <div style="padding-top:10px;">
                            <button class="btn">打开小程序</button>
                        </div>    
                    </div>
                </template>
            </wx-open-launch-weapp>
        </div>
        {yun:}/if{/yun}
        <script>
            var TrtcConfig = {
                mine: '{yun:}$uid{/yun}',
                commentID: '{yun:}$trtcConfig.commentID{/yun}',
                userId: '{yun:}$trtcConfig.userId{/yun}',
                roomId: '{yun:}$trtcConfig.roomId{/yun}',
                sdkAppId: '{yun:}$trtcConfig.sdkAppId{/yun}',
                csRoomId: '{yun:}$trtcConfig.csRoomId{/yun}',
                userSig: '{yun:}$trtcConfig.userSig{/yun}',
                spWait: '{yun:}$trtcConfig.spWait{/yun}',
                status: '0'
            };
            var socketUrl = "{yun:}$config.sy_chat_weburl{/yun}";
            var wapurl = '{yun:}url m=wap{/yun}';
            var weburl = '{yun:}$config.sy_weburl{/yun}';
            var usertype = '{yun:}$usertype{/yun}';
            var xcxappid = '{yun:}$wxpaydata.sy_xcxappid{/yun}';
            var spjobid = '';
            var viewuid = '{yun:}$smarty.get.fuid{/yun}';
            var zid = '{yun:}$smarty.get.zid{/yun}';
            var roomer = '{yun:}$smarty.get.roomer{/yun}';
            var jid = '{yun:}$smarty.get.jid{/yun}';
            var spviewPauseUrl = '{yun:}url d=wxapp h=com m=spview c=spviewPause{/yun}';
            var spSuccessUrl = '{yun:}url d=wxapp h=com m=spview c=spSuccess{/yun}';
            var splogUrl = '{yun:}url d=wxapp h=com m=spview c=splog{/yun}';
            
            var isSupport = startBrowserTest();
            if (!isSupport) {
                if ($("#launch-weapp").length > 0) {
                    $("#csvideo").css('display', 'none');
                    $("#sproom").css('display', 'none');
                    $("#launch-weapp").css('display', 'block');
                } else {
                    var content = '您的浏览器不支持视频面试功能!<br>建议使用最新版Chrome浏览器';
                    if(xcxappid){
                        content += '<br>或者使用微信小程序';
                    }
                    showModal(content, function(){
                        window.history.replaceState({}, "", wapurl + 'member/');
                        window.location.reload();
                    });
                }
            } else {
                document.write('<script src="{yun:}$config.sy_weburl{/yun}/js/trtc/trtc.js?v={yun:}$config.cachecode{/yun}"><\/script>');
                document.write('<script src="{yun:}$config.sy_weburl{/yun}/js/trtc/wapsocket.js?v={yun:}$config.cachecode{/yun}"><\/script>');
                document.write('<script src="{yun:}$config.sy_weburl{/yun}/js/trtc/rtc-client.js?v={yun:}$config.cachecode{/yun}"><\/script>');
                document.write('<script src="{yun:}$config.sy_weburl{/yun}/js/trtc/index.js?v={yun:}$config.cachecode{/yun}"><\/script>');
                document.write('<script src="{yun:}$wap_style{/yun}/chat/webrtc.js?v={yun:}$config.cachecode{/yun}"><\/script>');
            }
            
            function goBack(){
                if (navigator.userAgent.indexOf('Firefox') >= 0 ||
                    navigator.userAgent.indexOf('Opera') >= 0 ||
                    navigator.userAgent.indexOf('Safari') >= 0 ||
                    navigator.userAgent.indexOf('Chrome') >= 0 ||
                    navigator.userAgent.indexOf('WebKit') >= 0){
            
                    if(window.history.length > 1){
                        window.history.go( -1 );
                    }else{
                        location.href = wapurl;
                    }
                }else{ //未知的浏览器
                    window.history.go( -1 );
                }
            }
        </script>
    </body>
</html>