Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
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 51cfe176
authored
Aug 15, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
164689b2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
src/utils/draw.js
src/views/crowdfunding/components/createOrderImg.vue
src/utils/draw.js
View file @
51cfe17
...
@@ -184,6 +184,7 @@ class Draw {
...
@@ -184,6 +184,7 @@ class Draw {
}
}
}
}
let
textHeight
=
y
+
index
*
(
lineHeight
||
fontSize
)
let
textHeight
=
y
+
index
*
(
lineHeight
||
fontSize
)
if
(
index
!=
0
)
textHeight
-=
fontSize
/
2
this
[
_ctx_
].
fillText
(
e
,
x
,
textHeight
,
maxWidth
)
this
[
_ctx_
].
fillText
(
e
,
x
,
textHeight
,
maxWidth
)
if
(
checkTextDecoration
(
textDecoration
))
{
if
(
checkTextDecoration
(
textDecoration
))
{
this
.
drawDecoration
({
this
.
drawDecoration
({
...
...
src/views/crowdfunding/components/createOrderImg.vue
View file @
51cfe17
...
@@ -96,9 +96,9 @@ export default {
...
@@ -96,9 +96,9 @@ export default {
labelList
.
push
(
'支付定金'
)
labelList
.
push
(
'支付定金'
)
valueList
.
push
(
`
${
payPrice
}
元`
)
valueList
.
push
(
`
${
payPrice
}
元`
)
labelList
.
map
((
e
,
index
)
=>
{
labelList
.
map
((
e
,
index
)
=>
{
if
(
e
==
'商品名称:'
&&
draw
.
getTextWidth
(
carText
,
fontSize
)
+
valueX
>
valueEndX
)
spacing
=
2
6
if
(
e
==
'商品名称:'
&&
draw
.
getTextWidth
(
carText
,
fontSize
)
+
valueX
>
valueEndX
)
spacing
=
2
4
if
(
e
==
formDescribeSecond
&&
draw
.
getTextWidth
(
formContentFirst
,
fontSize
)
+
valueX
>
valueEndX
)
spacing
=
52
if
(
e
==
formDescribeSecond
&&
draw
.
getTextWidth
(
formContentFirst
,
fontSize
)
+
valueX
>
valueEndX
)
spacing
=
48
if
(
e
===
formDescribeSecond
&&
(
draw
.
getTextWidth
(
formDescribeFirst
,
fontSize
)
+
labelX
>
labelEndX
))
spacing
=
52
if
(
e
===
formDescribeSecond
&&
(
draw
.
getTextWidth
(
formDescribeFirst
,
fontSize
)
+
labelX
>
labelEndX
))
spacing
=
48
if
(
index
==
labelList
.
length
-
1
)
textYList
.
push
(
452
)
if
(
index
==
labelList
.
length
-
1
)
textYList
.
push
(
452
)
else
textYList
.
push
(
index
*
32
+
109
+
spacing
)
else
textYList
.
push
(
index
*
32
+
109
+
spacing
)
})
})
...
...
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