Commit eb8f7a98 by 李伟康

提交代码

1 parent c6f9ca33
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
valueList.push(`${payPrice}元`) valueList.push(`${payPrice}元`)
labelList.map((e, index) => { labelList.map((e, index) => {
if (e == '商品名称:' && draw.getTextWidth(carText, fontSize) + valueX > valueEndX) spacing = 24 if (e == '商品名称:' && draw.getTextWidth(carText, fontSize) + valueX > valueEndX) spacing = 24
if ((e == formDescribeSecond && draw.getTextWidth(formContentFirst, fontSize) + valueX > valueEndX) || (draw.getTextWidth(formDescribeFirst, fontSize) + labelX > labelEndX)) spacing += 24 // if ((e == formDescribeSecond && draw.getTextWidth(formContentFirst, fontSize) + valueX > valueEndX) || (draw.getTextWidth(formDescribeFirst, fontSize) + labelX > labelEndX)) spacing += 24
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)
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!