Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
h5-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yimu
h5-front
Commits
85f30d38
Commit
85f30d38
authored
Mar 17, 2022
by
verestrasz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c79b8567
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
index.vue
src/views/user-center/share-invite/index.vue
+4
-13
No files found.
src/views/user-center/share-invite/index.vue
View file @
85f30d38
...
...
@@ -18,7 +18,7 @@
</div>
<div
class=
"content-footer"
>
<div
class=
"qrcode"
>
<div
class=
"img_box"
v-qcload=
"that"
>
<div
class=
"img_box"
>
<div
ref=
"qrcode"
class=
"codeImg"
id=
"qrCode"
v-show=
"false"
></div>
<img
:src=
"qrcodeImg"
alt=
""
class=
"codeImg"
>
</div>
...
...
@@ -45,17 +45,6 @@
import
QRCode
from
"qrcodejs2"
;
import
{
mapState
}
from
"vuex"
;
export
default
{
directives
:{
qcload
:{
inserted
(
el
,
binding
){
setTimeout
(()
=>
{
let
img
=
el
.
querySelector
(
'img'
)
binding
.
value
.
qrcodeImg
=
img
.
src
},
300
);
}
}
},
data
()
{
return
{
shareList
:
[
"发送给好友"
,
"分享到朋友圈"
,
"发送到QQ"
],
...
...
@@ -75,6 +64,9 @@ export default {
text
:
urlValue
,
correctLevel
:
QRCode
.
CorrectLevel
.
H
});
let
myCanvas
=
document
.
getElementsByTagName
(
'canvas'
)[
0
]
let
imgSrc
=
myCanvas
.
toDataURL
(
'image/png'
)
this
.
qrcodeImg
=
imgSrc
},
},
created
()
{
...
...
@@ -83,7 +75,6 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
creatQrcode
(
this
.
downloadUrl
)
})
console
.
log
(
this
.
accountInfo
)
}
};
</
script
>
...
...
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