Commit e6d627d8d71ac547b8a6a7e5ba7aea4a9881e7e8
1 parent
27522dc9
fix bug
Showing
8 changed files
with
40 additions
and
54 deletions
dist/css/mobile.css
dist/gxb-ide/Dir.js
| ... | ... | @@ -626,26 +626,24 @@ |
| 626 | 626 | console.log("https://gxbfile-gs.gaoxiaobang.com") |
| 627 | 627 | console.log(audioUrl) |
| 628 | 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 | 277 | </head> |
| 278 | 278 | <body> |
| 279 | 279 | <div id="player"> |
| 280 | - <div class="title"> | |
| 280 | + <!-- <div class="title"> | |
| 281 | 281 | <div class="back"><img src="img/left-icon.png" alt=""></div> |
| 282 | 282 | <div class="content">实境编程</div> |
| 283 | 283 | <div class="share"><img src="img/share.png" alt=""></div> |
| 284 | - </div> | |
| 284 | + </div> --> | |
| 285 | 285 | <div class="m-title-wrap"> |
| 286 | 286 | <div class="m-title"></div> |
| 287 | 287 | </div> | ... | ... |
dist/scss/mobile.scss
src/css/mobile.css
src/gxb-ide/Dir.js
| ... | ... | @@ -626,26 +626,24 @@ |
| 626 | 626 | console.log("https://gxbfile-gs.gaoxiaobang.com") |
| 627 | 627 | console.log(audioUrl) |
| 628 | 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 | 277 | </head> |
| 278 | 278 | <body> |
| 279 | 279 | <div id="player"> |
| 280 | - <div class="title"> | |
| 280 | + <!-- <div class="title"> | |
| 281 | 281 | <div class="back"><img src="img/left-icon.png" alt=""></div> |
| 282 | 282 | <div class="content">实境编程</div> |
| 283 | 283 | <div class="share"><img src="img/share.png" alt=""></div> |
| 284 | - </div> | |
| 284 | + </div> --> | |
| 285 | 285 | <div class="m-title-wrap"> |
| 286 | 286 | <div class="m-title"></div> |
| 287 | 287 | </div> | ... | ... |