Commit de402cc4 authored by chenjundi's avatar chenjundi

添加alert记录

parent 1ee2a287
......@@ -208,6 +208,7 @@
//console.log(window.sessionStorage.query);
getUserDetailApi()
.then(res => {
alert("获取头像")
console.log(res)
this.avatarActive = res.avatar
this.nicknameActive = res.nickname
......@@ -350,8 +351,8 @@
// debugger
this.lesson = JSON.parse(localStorage.getItem("lessonDetail"));
this.lesson.domTitle = this.lesson.domTitle.substring(0, 9);
console.log(this.watchDetail, 170);
console.log(this.lesson);
// console.log(this.watchDetail, 170);
// console.log(this.lesson);
this.lastTime = Date.parse(new Date());
clearInterval(this.$store.state.timeout);
this.userDetail = JSON.parse(localStorage.getItem("userDesc"));
......@@ -377,7 +378,7 @@
this.imgPoint = great;
} else {
this.$store.dispatch("setLookStatus", 2);
console.log(Math.floor(39 * Math.random()));
// console.log(Math.floor(39 * Math.random()));
this.percent = 96 + Math.floor(39 * Math.random()) / 10;
this.imgPoint = perfect;
}
......@@ -396,7 +397,7 @@
// 'https://wechat.changchangenglish.com/' +
// "#/shareGoods?info=" +
// encodeURIComponent(JSON.stringify(obj));
console.log(URL);
// console.log(URL);
this.onShare(URL);
this.toDataURLBase64(
this.userDetail.avatar.replace("http://", "https://"),
......@@ -444,7 +445,7 @@
setTimeout(() => {
this.animationBg = true;
this.canvasImg();
}, 1200);
}, 3000);
},
canvasImg() {
const canvas = document.getElementById('canvas');
......@@ -475,7 +476,7 @@
ctx.arc(357, 173, 60, 0, 2 * Math.PI);
ctx.clip();
ctx.drawImage(this, 297, 113, 120, 120);
alert("生成图片")
let dataURL = canvas.toDataURL("image/jpg", 1.0);
that.canvasData = dataURL;
};
......@@ -720,7 +721,7 @@
});
},
onShare(URL) {
console.log(451);
// console.log(451);
if (this.watchDetail && this.watchDetail.total_day) {
this.enableShare({
product_title: `我家宝宝正在【唱唱启蒙英语】唱学英语,已坚持${this.watchDetail.total_day}天`, // 分享标题
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment