Commit 8a35f2d9 by 李伟康

提交代码

1 parent eb8f7a98
......@@ -83,19 +83,20 @@ export default {
}
labelList = [...labelList, '商品名称:', '支付时间:']
valueList = [...valueList, goodsName, new Date(createdDate).format('yyyy年M月d日 hh:mm:ss')]
// if (formContentFirst) {
// labelList.push(formDescribeFirst)
// valueList.push(formContentFirst)
// }
// if (formContentSecond) {
// labelList.push(formDescribeSecond)
// valueList.push(formContentSecond)
// }
if (formContentFirst) {
labelList.push(formDescribeFirst)
valueList.push(formContentFirst)
}
if (formContentSecond) {
labelList.push(formDescribeSecond)
valueList.push(formContentSecond)
}
labelList.push('支付定金')
valueList.push(`${payPrice}元`)
labelList.map((e, index) => {
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) spacing = 48
if (e === formDescribeSecond && (draw.getTextWidth(formDescribeFirst, fontSize) + labelX > labelEndX)) spacing = 48
if (index == labelList.length - 1) textYList.push(452)
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!