From d61f2ad3cf04508686aa5b002520ca5548d04751 Mon Sep 17 00:00:00 2001 From: testadmin Date: Fri, 1 May 2026 23:45:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=AB=96=E5=B1=8F=E8=B7=AF=E5=AD=90?= =?UTF-8?q?=E7=8F=A0=E6=94=AF=E6=8C=81=E5=B9=B8=E8=BF=906/=E9=BE=997/?= =?UTF-8?q?=E7=86=8A8=E7=89=B9=E6=AE=8A=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/waybill.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/assets/js/waybill.js b/src/assets/js/waybill.js index fea65a85..cff8b3bf 100644 --- a/src/assets/js/waybill.js +++ b/src/assets/js/waybill.js @@ -735,7 +735,7 @@ function cutRoad( } else if (roadType == "bigeyeWay") { BigeyePath(ctb, unit, start_x, v.show_x - cut, v.show_y, v.result) } else if (roadType == "showWay") { - SoloPath(gameId, ctb, unit, v.show_x - cut, v.show_y, v.result, v.pair) + SoloPath(gameId, ctb, unit, v.show_x - cut, v.show_y, v.result, v.pair, v.luck_six||0, v.dragon_seven||0, v.panda_eight||0) } else if (roadType == "bigWay") { BigPath( ctb, @@ -841,7 +841,7 @@ function halfcutRoad( } new_roadData.forEach(function (v) { if (roadType == "showWay") { - SoloPath(gameId, ctb, unit, v.show_x - cut, v.show_y, v.result, v.pair) + SoloPath(gameId, ctb, unit, v.show_x - cut, v.show_y, v.result, v.pair, v.luck_six||0, v.dragon_seven||0, v.panda_eight||0) } else if (roadType == "bigWay") { BigPath( ctb, @@ -987,7 +987,7 @@ function Font_tie(ctb, num, Font_x, Font_y, fontsize, color) { ctb.stroke() } } -function SoloPath(gameId, ctb, unit, x, y, type, corners) { +function SoloPath(gameId, ctb, unit, x, y, type, corners, luck_six, dragon_seven, panda_eight) { ctb.beginPath() ctb.lineWidth = unit * 0.02 ctb.strokeStyle = "#fff" @@ -995,6 +995,13 @@ function SoloPath(gameId, ctb, unit, x, y, type, corners) { const $Type = $store.state.config.$Type const $lang = $store.state.config.$lang let color, fonts + if (gameId == 1 && luck_six > 0) { + color = "#1a8c3a"; fonts = "6"; ctb.lineWidth = unit * 0.05 + } else if (gameId == 1 && dragon_seven > 0) { + color = "#d4a017"; fonts = "7"; ctb.lineWidth = unit * 0.05 + } else if (gameId == 1 && panda_eight > 0) { + color = "#1a6ed8"; fonts = "8"; ctb.lineWidth = unit * 0.05 + } else switch (gameId) { case 1: if (type == 1) {