Z1hgq 7 rokov pred
rodič
commit
f8ff4f7a4f
1 zmenil súbory, kde vykonal 10 pridanie a 6 odobranie
  1. 10 6
      Album/js/draw/details.js

+ 10 - 6
Album/js/draw/details.js

xqd 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 {
@@ -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)