Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 275947ff
authored
Nov 01, 2022
by
张晓玮
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'zhangxw_dev_3.0' into 'v3.0'
活动海报显示优化 See merge request
!119
2 parents
14fd1ce3
c18eb035
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
components/sharePopup/sharePopup.js
components/sharePopup/sharePopup.js
View file @
275947f
...
@@ -54,6 +54,7 @@ Component({
...
@@ -54,6 +54,7 @@ Component({
*/
*/
methods
:
{
methods
:
{
async
init
(
n
)
{
async
init
(
n
)
{
n
.
activityName
=
n
.
activityName
.
length
>
12
?
`
${
n
.
activityName
.
substring
(
0
,
12
)}
...`
:
n
.
activityName
const
drawfun
=
new
Draw
({
const
drawfun
=
new
Draw
({
width
:
279
,
width
:
279
,
height
:
n
.
postersImageHeight
+
76
,
height
:
n
.
postersImageHeight
+
76
,
...
@@ -96,7 +97,7 @@ Component({
...
@@ -96,7 +97,7 @@ Component({
textBaseline
:
'top'
textBaseline
:
'top'
},
},
{
{
x
:
44
+
drawfun
.
getTextWidth
(
userInfo
.
name
,
14
),
x
:
50
+
drawfun
.
getTextWidth
(
userInfo
.
name
,
14
),
y
:
15
,
y
:
15
,
fontSize
:
12
,
fontSize
:
12
,
color
:
'#6E6E7A'
,
color
:
'#6E6E7A'
,
...
@@ -113,16 +114,17 @@ Component({
...
@@ -113,16 +114,17 @@ Component({
fontWeight
:
500
fontWeight
:
500
},
},
{
{
x
:
4
4
+
drawfun
.
getTextWidth
(
n
.
activityName
,
14
)
+
9
,
x
:
4
8
+
drawfun
.
getTextWidth
(
n
.
activityName
,
14
)
+
9
,
y
:
39
,
y
:
39
,
fontSize
:
10
,
fontSize
:
10
,
color
:
'#4466F0'
,
color
:
'#4466F0'
,
text
:
'众筹'
,
text
:
'众筹'
,
textBaseline
:
'top'
,
border
:
{
border
:
{
width
:
1
,
width
:
1
,
color
:
'#8FA5FF'
,
color
:
'#8FA5FF'
,
radius
:
2
,
radius
:
2
,
padding
:
[
5
,
5
]
padding
:
[
4
,
5
]
}
}
},
},
],
],
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment