Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
zhiliang-light-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
87fca6e1
authored
2019-11-02 21:16:44 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
5c310604
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
11 deletions
src/pages/my-qrcode/my-qrcode.js
src/pages/my-qrcode/my-qrcode.js
View file @
87fca6e
...
...
@@ -60,7 +60,7 @@ Page({
// 获取海报数据
getPosterConfig
()
{
let
qrCodeWid
=
3
2
0
;
let
qrCodeWid
=
3
4
0
;
let
avatarWid
=
56
;
// 合成图片需要的数据
let
{
...
...
@@ -79,7 +79,7 @@ Page({
// 二维码
{
x
:
(
690
-
qrCodeWid
)
*
.
5
,
y
:
3
5
0
,
y
:
3
4
0
,
width
:
qrCodeWid
,
height
:
qrCodeWid
,
zIndex
:
11
,
...
...
@@ -98,15 +98,26 @@ Page({
];
let
lines
=
[];
let
texts
=
[{
x
:
690
/
2
,
y
:
720
,
width
:
690
,
fontSize
:
18
,
color
:
"#666666"
,
textAlign
:
"center"
,
zIndex
:
11
,
text
:
userInfo
.
memberCode
,
}];
x
:
690
/
2
,
y
:
686
,
width
:
690
,
fontSize
:
24
,
color
:
"#333333"
,
textAlign
:
"center"
,
zIndex
:
11
,
text
:
userInfo
.
nickname
,
},
{
x
:
690
/
2
,
y
:
720
,
width
:
690
,
fontSize
:
18
,
color
:
"#666666"
,
textAlign
:
"center"
,
zIndex
:
11
,
text
:
userInfo
.
memberCode
,
}
];
let
posterData
=
{
width
:
690
,
...
...
Please
register
or
sign in
to post a comment