29 lines
1.2 KiB
Plaintext
29 lines
1.2 KiB
Plaintext
|
|
var dataUrl = "http://23.50.192.222:8080/SZEdu/";
|
||
|
|
$(function() {
|
||
|
|
frameId = "api";
|
||
|
|
var iframe = document.getElementById(frameId);
|
||
|
|
iframe.src = "../apidoc/index.html?t=" + new Date().getTime();
|
||
|
|
|
||
|
|
$('#mytabs').tabs({
|
||
|
|
border: false,
|
||
|
|
onSelect: function(titie) {
|
||
|
|
if (titie == "视频") {
|
||
|
|
frameId = "playvideo";
|
||
|
|
var iframe = document.getElementById(frameId);
|
||
|
|
iframe.src = dataUrl+"/pageView/toVideo"
|
||
|
|
// $("playvideo").attr("src",dataUrl + 'pageView/toVideo');
|
||
|
|
} else if (titie == "接口文档说明") {
|
||
|
|
frameId = "api";
|
||
|
|
var iframe = document.getElementById(frameId);
|
||
|
|
iframe.src = dataUrl+"/pageView/toIndex"
|
||
|
|
// $("api").attr("src",dataUrl + 'pageView/toIndex');
|
||
|
|
} else if (titie == "录像回放") {
|
||
|
|
frameId = "videoreplay_frame";
|
||
|
|
var iframe = document.getElementById(frameId);
|
||
|
|
iframe.src = dataUrl+"/pageView/toVideoReplay"
|
||
|
|
// $("videoreplay_frame").attr("src",dataUrl + 'pageView/toVideoReplay');
|
||
|
|
}
|
||
|
|
}
|
||
|
|
})
|
||
|
|
|
||
|
|
})
|