function getQueryParams(name) { var url = window.location.href var parts = url.split('?') var query = parts[1] if (!query) return null var pairs = query.split('&') for (var i = 0; i < pairs.length; i++) { var pair = pairs[i].split('=') // 解码键和值 var key = decodeURIComponent(pair[0]) var value = decodeURIComponent(pair[1]) if (key === name) { return value } } return null } function getOrgOptions(base, token) { $.ajax({ url: base + '/client/c/mobileInfo/selection/selectionOrg', type: 'GET', headers: { 'token': token }, success: function(response) { if (response.code === 200) { const dropdown = $('#orgSelect'); response.data.forEach(item => { const option = $('').val(item.orgId).text(item.orgName); dropdown.append(option); }); } else { console.error('Error:', response); } }, error: function(error) { console.error('Request failed:', error); } }); } function getPlayUrl(base, token, orgId, cb) { $.ajax({ url: base + '/client/c/mobileInfo/selection/selectionOrg', type: 'GET', headers: { 'token': token }, success: function(response) { if (response.code === 200) { var data = response.data cb(data) } else { console.error('Error:', response); } }, error: function(error) { console.error('Request failed:', error); } }); } function createPlayer(id) { var myPalyer = new window.JSPlugin({ szId: id, szBasePath: "./", iMaxSplit: 1, iCurrentSplit: 1, openDebug: true, oStyle: { borderSelect: '#000', } }) myPlayer.myId = id return myPlayer }