Commit 8e324bfa8e750d202e01fb097913c1efdf815c0e

Authored by ykxie
1 parent 9dd50b23

灰度

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