|
@@ -51,7 +51,6 @@
|
|
|
您的浏览器不支持canvas标签。
|
|
|
</canvas>
|
|
|
<img class="bg" src="" alt="" crossorigin="anonymous">
|
|
|
- <!--
|
|
|
<div class="baocun">长按保存,并分享至朋友圈</div>
|
|
|
<div class="code">
|
|
|
<img src="../image/question/2.jpg" alt="">
|
|
@@ -60,7 +59,6 @@
|
|
|
<span>即可获得小学课文朗读配音奖品</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- -->
|
|
|
<!--
|
|
|
<img class="head" src="../image/question/头像.jpg" alt="">
|
|
|
-->
|
|
@@ -86,7 +84,7 @@
|
|
|
function recursion() {
|
|
|
ajaxData("https://readertest.lingjiao.cn/activity/activity/xq", 7, data, function(result){
|
|
|
var length = result.data.questionNum;
|
|
|
- if( ind >= length && result.data.isEnd === 0) {
|
|
|
+ // if( ind >= length && result.data.isEnd === 0) {
|
|
|
$('#audio').attr('src', "")
|
|
|
$('.popup').show();
|
|
|
//简单地检测当前浏览器是否支持Canvas对象,以免在一些不支持html5的浏览器中提示语法错误
|
|
@@ -102,19 +100,19 @@
|
|
|
ctx.font="36px Arial";
|
|
|
ctx.textAlign="center";
|
|
|
alert(name)
|
|
|
- ctx.fillText("学前测评报告",365,370);
|
|
|
+ ctx.fillText(name + "学前测评报告",365,370);
|
|
|
alert(avatar)
|
|
|
- circleImg(ctx, '../image/question/2.jpg', 328, 836, 41)
|
|
|
+ circleImg(ctx, avatar, 328, 836, 41)
|
|
|
})
|
|
|
ctx.restore();
|
|
|
}
|
|
|
- // 0.5s后生成图片
|
|
|
+ // 1.5s后生成图片
|
|
|
setTimeout(function() {
|
|
|
var dataURL = canvas.toDataURL("image/jpeg",1.0);
|
|
|
$('.bg').attr('src', dataURL)
|
|
|
- }, 500)
|
|
|
+ }, 1500)
|
|
|
return false;
|
|
|
- }
|
|
|
+ //}
|
|
|
data.questionId = result.data.question.id;
|
|
|
data.requestId = result.data.requestId;
|
|
|
// 一开始创建div 没内容
|