Commit e6d627d8d71ac547b8a6a7e5ba7aea4a9881e7e8
1 parent
27522dc9
fix bug
Showing
8 changed files
with
40 additions
and
54 deletions
dist/css/mobile.css
| @@ -93,6 +93,4 @@ | @@ -93,6 +93,4 @@ | ||
| 93 | .full { | 93 | .full { |
| 94 | display: none; } | 94 | display: none; } |
| 95 | #resultoutput .tab-content > .tab-pane { | 95 | #resultoutput .tab-content > .tab-pane { |
| 96 | - padding-bottom: 64px; } | ||
| 97 | - .CodeMirror-scroll { | ||
| 98 | - overflow: auto !important; } } | 96 | + padding-bottom: 64px; } } |
dist/gxb-ide/Dir.js
| @@ -626,26 +626,24 @@ | @@ -626,26 +626,24 @@ | ||
| 626 | console.log("https://gxbfile-gs.gaoxiaobang.com") | 626 | console.log("https://gxbfile-gs.gaoxiaobang.com") |
| 627 | console.log(audioUrl) | 627 | console.log(audioUrl) |
| 628 | if (role == 0) { | 628 | if (role == 0) { |
| 629 | - $.ajax({ | ||
| 630 | - type: "get", | ||
| 631 | - url: "https://gxbfile-gs.gaoxiaobang.com" + audioUrl, | ||
| 632 | - success: function(res) { | ||
| 633 | - AudioPlayer(audioUrl) | ||
| 634 | - var role = getQuery('role'); | ||
| 635 | - if (role == 0) { | ||
| 636 | - } | ||
| 637 | - if(!isAndroid){ | ||
| 638 | - $.AudioPlayer.play() | ||
| 639 | - }else{ | ||
| 640 | - playTimes++ | ||
| 641 | - } | ||
| 642 | - } | ||
| 643 | - }) | ||
| 644 | - }else{ | ||
| 645 | - $('.play-code').show(); | ||
| 646 | - if (role == 0) { | ||
| 647 | - CodingEditer.playCoding(); | 629 | + AudioPlayer(audioUrl) |
| 630 | + if(!isAndroid){ | ||
| 631 | + $.AudioPlayer.play() | ||
| 632 | + }else{ | ||
| 633 | + playTimes++ | ||
| 648 | } | 634 | } |
| 635 | + // $.ajax({ | ||
| 636 | + // type: "get", | ||
| 637 | + // url: "https://gxbfile-gs.gaoxiaobang.com" + audioUrl, | ||
| 638 | + // success: function(res) { | ||
| 639 | + | ||
| 640 | + // } | ||
| 641 | + // }) | ||
| 642 | + }else if(role == 1){ | ||
| 643 | + $('.play-code').show(); | ||
| 644 | + // if (role == 0) { | ||
| 645 | + // CodingEditer.playCoding(); | ||
| 646 | + // } | ||
| 649 | } | 647 | } |
| 650 | 648 | ||
| 651 | }, | 649 | }, |
dist/player.html
| @@ -277,11 +277,11 @@ | @@ -277,11 +277,11 @@ | ||
| 277 | </head> | 277 | </head> |
| 278 | <body> | 278 | <body> |
| 279 | <div id="player"> | 279 | <div id="player"> |
| 280 | - <div class="title"> | 280 | + <!-- <div class="title"> |
| 281 | <div class="back"><img src="img/left-icon.png" alt=""></div> | 281 | <div class="back"><img src="img/left-icon.png" alt=""></div> |
| 282 | <div class="content">实境编程</div> | 282 | <div class="content">实境编程</div> |
| 283 | <div class="share"><img src="img/share.png" alt=""></div> | 283 | <div class="share"><img src="img/share.png" alt=""></div> |
| 284 | - </div> | 284 | + </div> --> |
| 285 | <div class="m-title-wrap"> | 285 | <div class="m-title-wrap"> |
| 286 | <div class="m-title"></div> | 286 | <div class="m-title"></div> |
| 287 | </div> | 287 | </div> |
dist/scss/mobile.scss
src/css/mobile.css
| @@ -93,6 +93,4 @@ | @@ -93,6 +93,4 @@ | ||
| 93 | .full { | 93 | .full { |
| 94 | display: none; } | 94 | display: none; } |
| 95 | #resultoutput .tab-content > .tab-pane { | 95 | #resultoutput .tab-content > .tab-pane { |
| 96 | - padding-bottom: 64px; } | ||
| 97 | - .CodeMirror-scroll { | ||
| 98 | - overflow: auto !important; } } | 96 | + padding-bottom: 64px; } } |
src/gxb-ide/Dir.js
| @@ -626,26 +626,24 @@ | @@ -626,26 +626,24 @@ | ||
| 626 | console.log("https://gxbfile-gs.gaoxiaobang.com") | 626 | console.log("https://gxbfile-gs.gaoxiaobang.com") |
| 627 | console.log(audioUrl) | 627 | console.log(audioUrl) |
| 628 | if (role == 0) { | 628 | if (role == 0) { |
| 629 | - $.ajax({ | ||
| 630 | - type: "get", | ||
| 631 | - url: "https://gxbfile-gs.gaoxiaobang.com" + audioUrl, | ||
| 632 | - success: function(res) { | ||
| 633 | - AudioPlayer(audioUrl) | ||
| 634 | - var role = getQuery('role'); | ||
| 635 | - if (role == 0) { | ||
| 636 | - } | ||
| 637 | - if(!isAndroid){ | ||
| 638 | - $.AudioPlayer.play() | ||
| 639 | - }else{ | ||
| 640 | - playTimes++ | ||
| 641 | - } | ||
| 642 | - } | ||
| 643 | - }) | ||
| 644 | - }else{ | ||
| 645 | - $('.play-code').show(); | ||
| 646 | - if (role == 0) { | ||
| 647 | - CodingEditer.playCoding(); | 629 | + AudioPlayer(audioUrl) |
| 630 | + if(!isAndroid){ | ||
| 631 | + $.AudioPlayer.play() | ||
| 632 | + }else{ | ||
| 633 | + playTimes++ | ||
| 648 | } | 634 | } |
| 635 | + // $.ajax({ | ||
| 636 | + // type: "get", | ||
| 637 | + // url: "https://gxbfile-gs.gaoxiaobang.com" + audioUrl, | ||
| 638 | + // success: function(res) { | ||
| 639 | + | ||
| 640 | + // } | ||
| 641 | + // }) | ||
| 642 | + }else if(role == 1){ | ||
| 643 | + $('.play-code').show(); | ||
| 644 | + // if (role == 0) { | ||
| 645 | + // CodingEditer.playCoding(); | ||
| 646 | + // } | ||
| 649 | } | 647 | } |
| 650 | 648 | ||
| 651 | }, | 649 | }, |
src/player.html
| @@ -277,11 +277,11 @@ | @@ -277,11 +277,11 @@ | ||
| 277 | </head> | 277 | </head> |
| 278 | <body> | 278 | <body> |
| 279 | <div id="player"> | 279 | <div id="player"> |
| 280 | - <div class="title"> | 280 | + <!-- <div class="title"> |
| 281 | <div class="back"><img src="img/left-icon.png" alt=""></div> | 281 | <div class="back"><img src="img/left-icon.png" alt=""></div> |
| 282 | <div class="content">实境编程</div> | 282 | <div class="content">实境编程</div> |
| 283 | <div class="share"><img src="img/share.png" alt=""></div> | 283 | <div class="share"><img src="img/share.png" alt=""></div> |
| 284 | - </div> | 284 | + </div> --> |
| 285 | <div class="m-title-wrap"> | 285 | <div class="m-title-wrap"> |
| 286 | <div class="m-title"></div> | 286 | <div class="m-title"></div> |
| 287 | </div> | 287 | </div> |
src/scss/mobile.scss