默认提交
Showing
1 changed file
with
14 additions
and
3 deletions
| ... | @@ -60,7 +60,7 @@ Page({ | ... | @@ -60,7 +60,7 @@ Page({ |
| 60 | 60 | ||
| 61 | // 获取海报数据 | 61 | // 获取海报数据 |
| 62 | getPosterConfig() { | 62 | getPosterConfig() { |
| 63 | let qrCodeWid = 320; | 63 | let qrCodeWid = 340; |
| 64 | let avatarWid = 56; | 64 | let avatarWid = 56; |
| 65 | // 合成图片需要的数据 | 65 | // 合成图片需要的数据 |
| 66 | let { | 66 | let { |
| ... | @@ -79,7 +79,7 @@ Page({ | ... | @@ -79,7 +79,7 @@ Page({ |
| 79 | // 二维码 | 79 | // 二维码 |
| 80 | { | 80 | { |
| 81 | x: (690 - qrCodeWid) * .5, | 81 | x: (690 - qrCodeWid) * .5, |
| 82 | y: 350, | 82 | y: 340, |
| 83 | width: qrCodeWid, | 83 | width: qrCodeWid, |
| 84 | height: qrCodeWid, | 84 | height: qrCodeWid, |
| 85 | zIndex: 11, | 85 | zIndex: 11, |
| ... | @@ -99,6 +99,16 @@ Page({ | ... | @@ -99,6 +99,16 @@ Page({ |
| 99 | let lines = []; | 99 | let lines = []; |
| 100 | let texts = [{ | 100 | let texts = [{ |
| 101 | x: 690 / 2, | 101 | x: 690 / 2, |
| 102 | y: 686, | ||
| 103 | width: 690, | ||
| 104 | fontSize: 24, | ||
| 105 | color: "#333333", | ||
| 106 | textAlign: "center", | ||
| 107 | zIndex: 11, | ||
| 108 | text: userInfo.nickname, | ||
| 109 | }, | ||
| 110 | { | ||
| 111 | x: 690 / 2, | ||
| 102 | y: 720, | 112 | y: 720, |
| 103 | width: 690, | 113 | width: 690, |
| 104 | fontSize: 18, | 114 | fontSize: 18, |
| ... | @@ -106,7 +116,8 @@ Page({ | ... | @@ -106,7 +116,8 @@ Page({ |
| 106 | textAlign: "center", | 116 | textAlign: "center", |
| 107 | zIndex: 11, | 117 | zIndex: 11, |
| 108 | text: userInfo.memberCode, | 118 | text: userInfo.memberCode, |
| 109 | }]; | 119 | } |
| 120 | ]; | ||
| 110 | 121 | ||
| 111 | let posterData = { | 122 | let posterData = { |
| 112 | width: 690, | 123 | width: 690, | ... | ... |
-
Please register or sign in to post a comment