Commit de402cc4 authored by chenjundi's avatar chenjundi

添加alert记录

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