Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
Details
Activity
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
front-end-dev
techbook
Commits
96248d12
Commit
96248d12
authored
Aug 25, 2020
by
zhangyanni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
试一下分享好友
parent
d2a3c481
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
16 deletions
+12
-16
inviteFriend.vue
src/views/mobile/invite/inviteFriend.vue
+12
-16
No files found.
src/views/mobile/invite/inviteFriend.vue
View file @
96248d12
...
...
@@ -132,22 +132,18 @@
// 图片宽度
var
h
=
parseInt
(
window
.
getComputedStyle
(
img
).
height
);
// 声明画布宽高
// if(publicFunc.isWhichBrowe().android){
// canvas.width = w*3;
// canvas.height = h*3;
// canvas.style.width = w*3 + "px";
// canvas.style.height = h*3 + "px";
// }
// else if(publicFunc.isWhichBrowe().ios){
// canvas.width = w*2;
// canvas.height = h*2;
// canvas.style.width = w*2 + "px";
// canvas.style.height = h*2 + "px";
// }
canvas
.
width
=
w
;
canvas
.
height
=
h
;
canvas
.
style
.
width
=
w
+
"px"
;
canvas
.
style
.
height
=
h
+
"px"
;
if
(
publicFunc
.
isWhichBrowe
().
android
){
canvas
.
width
=
w
*
3
;
canvas
.
height
=
h
*
3
;
canvas
.
style
.
width
=
w
*
3
+
"px"
;
canvas
.
style
.
height
=
h
*
3
+
"px"
;
}
else
if
(
publicFunc
.
isWhichBrowe
().
ios
){
canvas
.
width
=
w
*
2
;
canvas
.
height
=
h
*
2
;
canvas
.
style
.
width
=
w
*
2
+
"px"
;
canvas
.
style
.
height
=
h
*
2
+
"px"
;
}
html2canvas
(
img
,
{
canvas
:
canvas
,
...
...
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