Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
h5-base
Commits
de402cc4
Commit
de402cc4
authored
Sep 24, 2019
by
chenjundi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加alert记录
parent
1ee2a287
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
share.vue
src/components/newLesson/share.vue
+8
-7
No files found.
src/components/newLesson/share.vue
View file @
de402cc4
...
...
@@ -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
();
},
12
00
);
},
30
00
);
},
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
}
天`
,
// 分享标题
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment