Commit 8c6f6b6f26c659c576569fd83511c7a6e7819564

Authored by ykxie
1 parent 5f52397b

fix iOS

src/gxb-ide/Dir.js
@@ -593,6 +593,7 @@ @@ -593,6 +593,7 @@
593 // 获取code 593 // 获取code
594 function getCodeData(url, el){ 594 function getCodeData(url, el){
595 console.log(url) 595 console.log(url)
  596 + var role = getQuery('role');
596 $.ajax({ 597 $.ajax({
597 type: "get", 598 type: "get",
598 url: url, 599 url: url,
@@ -624,24 +625,26 @@ @@ -624,24 +625,26 @@
624 } 625 }
625 console.log("https://gxb-file.oss-cn-beijing.aliyuncs.com") 626 console.log("https://gxb-file.oss-cn-beijing.aliyuncs.com")
626 console.log(audioUrl) 627 console.log(audioUrl)
627 -  
628 - $.ajax({  
629 - type: "get",  
630 - url: "https://gxb-file.oss-cn-beijing.aliyuncs.com" + audioUrl,  
631 - success: function(res) {  
632 - AudioPlayer(audioUrl)  
633 - var role = getQuery('role');  
634 - if (role == 0) { 628 + if (role == 0) {
  629 + $.ajax({
  630 + type: "get",
  631 + url: "https://gxb-file.oss-cn-beijing.aliyuncs.com" + audioUrl,
  632 + success: function(res) {
  633 + AudioPlayer(audioUrl)
  634 + var role = getQuery('role');
  635 + if (role == 0) {
  636 + }
635 if(!isAndroid){ 637 if(!isAndroid){
636 $.AudioPlayer.play() 638 $.AudioPlayer.play()
637 }else{ 639 }else{
638 playTimes++ 640 playTimes++
639 } 641 }
640 - }else{  
641 - CodingEditer.playCoding();  
642 } 642 }
643 - }  
644 - }) 643 + })
  644 + }else{
  645 + CodingEditer.playCoding();
  646 + }
  647 +
645 }, 648 },
646 error: function(error) { 649 error: function(error) {
647 console.log(error) 650 console.log(error)
src/player.html
@@ -394,6 +394,9 @@ @@ -394,6 +394,9 @@
394 var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; 394 var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1;
395 if (isAndroid) { 395 if (isAndroid) {
396 loadScript("js/cordova.js"); 396 loadScript("js/cordova.js");
  397 + // $(".CodeMirror").height($(window).height() - $recordpanel.top - 210);
  398 + }else{
  399 + $('.title').hide();
397 } 400 }
398 401
399 function loadScript(url) { 402 function loadScript(url) {