Commit e6d627d8d71ac547b8a6a7e5ba7aea4a9881e7e8

Authored by ykxie
1 parent 27522dc9

fix bug

dist/css/mobile.css
... ... @@ -93,6 +93,4 @@
93 93 .full {
94 94 display: none; }
95 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 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
... ... @@ -135,9 +135,6 @@
135 135 #resultoutput .tab-content>.tab-pane {
136 136 padding-bottom: 64px;
137 137 }
138   - .CodeMirror-scroll{
139   - overflow: auto !important;
140   - }
141 138 }
142 139  
143 140  
... ...
src/css/mobile.css
... ... @@ -93,6 +93,4 @@
93 93 .full {
94 94 display: none; }
95 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 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>
... ...
src/scss/mobile.scss
... ... @@ -135,9 +135,6 @@
135 135 #resultoutput .tab-content>.tab-pane {
136 136 padding-bottom: 64px;
137 137 }
138   - .CodeMirror-scroll{
139   - overflow: auto !important;
140   - }
141 138 }
142 139  
143 140  
... ...