Commit 8e324bfa8e750d202e01fb097913c1efdf815c0e

Authored by ykxie
1 parent 9dd50b23

灰度

dist/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)
dist/js/gbreplayer.js
@@ -479,7 +479,7 @@ $(function(){ @@ -479,7 +479,7 @@ $(function(){
479 } 479 }
480 480
481 GBCodePlayBack.records = coderecords; 481 GBCodePlayBack.records = coderecords;
482 - if(GBCodePlayBack.playTimes === 0 && _role === 0){ 482 + if(GBCodePlayBack.playTimes === 0 && _role == 0){
483 if(!isAndroid){ 483 if(!isAndroid){
484 $.AudioPlayer.play(); 484 $.AudioPlayer.play();
485 }else{ 485 }else{
dist/js/player.js
@@ -35,9 +35,9 @@ $(function(){ @@ -35,9 +35,9 @@ $(function(){
35 Dir.isReplayPage = true; 35 Dir.isReplayPage = true;
36 36
37 $('.play-code').on('click', function(){ 37 $('.play-code').on('click', function(){
38 - alert('=================')  
39 - // CodingEditer.playCoding();  
40 - CodingEditer.editable(0) 38 + // alert('=================')
  39 + CodingEditer.playCoding();
  40 + // CodingEditer.editable(0)
41 }) 41 })
42 42
43 $('#play').unbind('click').click(function(){ 43 $('#play').unbind('click').click(function(){
dist/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) {
dist/v1.1/player.html
@@ -149,6 +149,9 @@ @@ -149,6 +149,9 @@
149 <input type="hidden" class="audio-url" value=""> 149 <input type="hidden" class="audio-url" value="">
150 <div id="playFooter"> 150 <div id="playFooter">
151 <div class="" id="audioWrap"> 151 <div class="" id="audioWrap">
  152 + <button class="play-code">
  153 + <img src="../img/play.svg" alt="">
  154 + </button>
152 </div> 155 </div>
153 </div> 156 </div>
154 </div> 157 </div>