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