From cf1dc969331da79917a8481ea80057e0d23ac16a Mon Sep 17 00:00:00 2001 From: lihui Date: Mon, 29 Sep 2025 10:31:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=EF=BC=9A100?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/recharge/gold/addCoinRecharge.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/recharge/gold/addCoinRecharge.vue b/src/views/recharge/gold/addCoinRecharge.vue index a5673d0..4c4304a 100644 --- a/src/views/recharge/gold/addCoinRecharge.vue +++ b/src/views/recharge/gold/addCoinRecharge.vue @@ -8,6 +8,7 @@ import moment from 'moment' import Cookies from 'js-cookie'; // 定义 fixedAdminId // const fixedAdminId = 1; +import Decimal from 'decimal.js'; // 精网号去空格 const trimJwCode = () => { @@ -93,7 +94,9 @@ const add = async function () { formattedRecharge.freeGold = Number(formattedRecharge.freeGold) * 100; } if (formattedRecharge.money) { - formattedRecharge.money = Number(formattedRecharge.money) * 100; + formattedRecharge.money = new Decimal(formattedRecharge.money).mul(100).toNumber(); + + // formattedRecharge.money = Number(formattedRecharge.money) * 100; } if (formattedRecharge.payTime) { From beabec6da5070909b8682cdb1ae67f9d1a035676 Mon Sep 17 00:00:00 2001 From: lihui Date: Mon, 29 Sep 2025 15:15:31 +0800 Subject: [PATCH 2/2] =?UTF-8?q?style:=E5=9B=BE=E4=BE=8B=20=E5=8F=B3?= =?UTF-8?q?=E7=A7=BB=E4=B8=80=E7=82=B9=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/workspace/GoldManagement.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/workspace/GoldManagement.vue b/src/components/workspace/GoldManagement.vue index 46b5e9a..eaa3706 100644 --- a/src/components/workspace/GoldManagement.vue +++ b/src/components/workspace/GoldManagement.vue @@ -405,7 +405,7 @@ const initConsumeDetailChart = () => { // 增加图表内边距,避免内容溢出 legend: { orient: 'vertical', - left: 'left', + left: '20%', top: '85', icon: 'circle', iconSize: 5, @@ -463,7 +463,7 @@ const initRechargePeopleChart = () => { const option = { legend: { orient: 'vertical', - left: 'left', + left: '20%', top: '85', icon: 'circle', iconSize: 5,