Commit 8c6f6b6f26c659c576569fd83511c7a6e7819564
1 parent
5f52397b
fix iOS
Showing
2 changed files
with
18 additions
and
12 deletions
src/gxb-ide/Dir.js
| ... | ... | @@ -593,6 +593,7 @@ |
| 593 | 593 | // 获取code |
| 594 | 594 | function getCodeData(url, el){ |
| 595 | 595 | console.log(url) |
| 596 | + var role = getQuery('role'); | |
| 596 | 597 | $.ajax({ |
| 597 | 598 | type: "get", |
| 598 | 599 | url: url, |
| ... | ... | @@ -624,24 +625,26 @@ |
| 624 | 625 | } |
| 625 | 626 | console.log("https://gxb-file.oss-cn-beijing.aliyuncs.com") |
| 626 | 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 | 637 | if(!isAndroid){ |
| 636 | 638 | $.AudioPlayer.play() |
| 637 | 639 | }else{ |
| 638 | 640 | playTimes++ |
| 639 | 641 | } |
| 640 | - }else{ | |
| 641 | - CodingEditer.playCoding(); | |
| 642 | 642 | } |
| 643 | - } | |
| 644 | - }) | |
| 643 | + }) | |
| 644 | + }else{ | |
| 645 | + CodingEditer.playCoding(); | |
| 646 | + } | |
| 647 | + | |
| 645 | 648 | }, |
| 646 | 649 | error: function(error) { |
| 647 | 650 | console.log(error) | ... | ... |
src/player.html
| ... | ... | @@ -394,6 +394,9 @@ |
| 394 | 394 | var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; |
| 395 | 395 | if (isAndroid) { |
| 396 | 396 | loadScript("js/cordova.js"); |
| 397 | + // $(".CodeMirror").height($(window).height() - $recordpanel.top - 210); | |
| 398 | + }else{ | |
| 399 | + $('.title').hide(); | |
| 397 | 400 | } |
| 398 | 401 | |
| 399 | 402 | function loadScript(url) { | ... | ... |