Browse Source

联调画图

Limengbo 5 years ago
parent
commit
ea2a8a5023
2 changed files with 4 additions and 3 deletions
  1. BIN
      image/question/a.jpg
  2. 4 3
      view/question.html

BIN
image/question/a.jpg


+ 4 - 3
view/question.html

@@ -53,7 +53,8 @@
             <img class="bg" src="" alt=""  crossorigin="anonymous">
             <div class="baocun">长按保存,并分享至朋友圈</div>
             <div class="code">
-                <img src="../image/question/2.jpg" alt="">
+                <!--测试二维码 上线需要改-->
+                <img src="../image/question/code.jpg" alt="">
                 <div class="text">
                     <span>长按识别二维码</span>
                     <span>即可获得小学课文朗读配音奖品</span>
@@ -106,11 +107,11 @@
                     })
                     ctx.restore();
                 }
-                // 1.5s后生成图片
+                // 2.5s后生成图片
                 setTimeout(function() {
                     var dataURL = canvas.toDataURL("image/jpeg",1.0);
                     $('.bg').attr('src', dataURL)
-                }, 1500)
+                }, 2500)
                 return false;
             }
             data.questionId = result.data.question.id;