|
| xqd
@@ -48,10 +48,12 @@ export default class Details {
|
|
|
//编号和单价
|
|
|
context.fillStyle = 'rgba(0,0,0,0.25)'
|
|
|
context.fillRect(70, 0, screenWidth*2 - 70, 60)
|
|
|
- context.font = "35px Arial"
|
|
|
+ context.font = "32px Arial"
|
|
|
+ context.fillStyle = '#fff'
|
|
|
+ context.fillText(text, 80 * 2, 25 * 2)
|
|
|
+ context.fillText('单价:', screenWidth, 25 * 2)
|
|
|
context.fillStyle = '#FFA500'
|
|
|
- let str = text + ' 单价:¥' + price
|
|
|
- context.fillText(str, 40 * 2 + 70, 25 * 2)
|
|
|
+ context.fillText('¥' + price, screenWidth + 90, 25 * 2)
|
|
|
wx.hideLoading()
|
|
|
}
|
|
|
} else {
|
|
| xqd
@@ -62,10 +64,12 @@ export default class Details {
|
|
|
//编号和单价
|
|
|
context.fillStyle = 'rgba(0,0,0,0.25)'
|
|
|
context.fillRect(0,0,screenWidth*2,60)
|
|
|
- context.font = "35px Arial"
|
|
|
+ context.font = "32px Arial"
|
|
|
+ context.fillStyle = '#fff'
|
|
|
+ context.fillText(text, 80 * 2, 25 * 2)
|
|
|
+ context.fillText('单价:',screenWidth,25*2)
|
|
|
context.fillStyle = '#FFA500'
|
|
|
- let str = text + ' 单价:¥' + price
|
|
|
- context.fillText(str, 40 * 2, 25 * 2)
|
|
|
+ context.fillText('¥'+price,screenWidth+90,25*2)
|
|
|
|
|
|
context.drawImage(img1, (screenWidth / 2 - 200) * 2, (screenHeight - 35) * 2, 90 * 2, (90 / ratio) * 2)
|
|
|
|