From 2b0f5bc7c7de4cf9f1381a5e868e51f3b971b5ee Mon Sep 17 00:00:00 2001 From: mengyxu Date: Sat, 17 May 2025 20:31:41 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E5=AD=98=E6=A1=A3=E5=A4=B1=E8=B4=A5BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/archive.vue | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/views/archive.vue b/src/views/archive.vue index bf5cd77..dc56177 100644 --- a/src/views/archive.vue +++ b/src/views/archive.vue @@ -47,12 +47,23 @@ const showMenu = () => { } const copyArchive = () => { - navigator.clipboard.writeText(archive.value).then(() => { + if (navigator.clipboard && window.isSecureContext) { + navigator.clipboard.writeText(archive.value).then(() => { + commit('set_sys_info', { msg: t('copyArchive.1'), type: 'win' }) + showMenu(); + }).catch(() => { + commit('set_sys_info', { msg: t('copyArchive.2'), type: 'waring' }) + }); + } else { + const textField = document.createElement("textarea"); + textField.innerText = archive.value; + document.body.appendChild(textField); + textField.select(); + document.execCommand("copy"); + textField.remove(); commit('set_sys_info', { msg: t('copyArchive.1'), type: 'win' }) - }, () => { - commit('set_sys_info', { msg: t('copyArchive.2'), type: 'waring' }) - }); - showMenu(); + showMenu(); + } } const pasteArchive = () => { From 314797f9bb8e7537b8902545e1afac4c01a7c052 Mon Sep 17 00:00:00 2001 From: mengyxu Date: Sat, 17 May 2025 21:53:56 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E6=8E=89?= =?UTF-8?q?=E8=90=BD=E6=8A=A4=E7=94=B2BUG=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E4=B8=A4=E4=B8=AAUI=E6=98=BE?= =?UTF-8?q?=E7=A4=BABUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tool/random.ts | 2 +- src/views/illustrated/illustrated.vue | 2 +- src/views/point/point.vue | 57 +++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 2 deletions(-) diff --git a/src/tool/random.ts b/src/tool/random.ts index 9cd278c..f87e4f3 100644 --- a/src/tool/random.ts +++ b/src/tool/random.ts @@ -1,7 +1,7 @@ import { difficultys, Categorys, qualitys, extra_quality, extra_quality_rate, extra_quality_lv } from '@/config'; import * as Equips from '@/config/equips'; -const types = ['weapon', 'arrmor', 'neck', 'ring', 'jewelry', 'bracers', 'pants', 'shoes']; +const types = ['weapon', 'armor', 'neck', 'ring', 'jewelry', 'bracers', 'pants', 'shoes']; const normal: Categorys[] = new Array(); const uniques: Categorys[] = new Array(); const colorfuls: Categorys[] = new Array(); diff --git a/src/views/illustrated/illustrated.vue b/src/views/illustrated/illustrated.vue index b7876f1..47b1ef9 100644 --- a/src/views/illustrated/illustrated.vue +++ b/src/views/illustrated/illustrated.vue @@ -3,7 +3,7 @@ - + diff --git a/src/views/point/point.vue b/src/views/point/point.vue index 8665b51..0f7b186 100644 --- a/src/views/point/point.vue +++ b/src/views/point/point.vue @@ -213,4 +213,61 @@ onBeforeUnmount(() => { } } + +@media only screen and (max-width: 768px) { + + .message { + padding-bottom: 0.5rem; + + p { + margin: 0.5rem; + } + + .tips { + padding-left: 0.8rem; + } + + .btn-div { + padding: 0rem; + padding-right: 1rem; + } + } + + .points { + padding: 0.1rem; + width: 23.5rem; + + .info { + padding: 0.2rem; + } + + } + + .attributes { + padding: 0.05rem 0; + } + + .attribute { + padding: 0.2rem 0rem; + + p { + + span { + margin-left: 0.2rem; + } + } + + .group { + + input { + width: 4rem; + color: black; + height: 1.8rem; + font-size: 0.8rem; + } + + } + } + +} \ No newline at end of file From 7fc2ac9f0801e2feec03e7adcf1b8831aaf83640 Mon Sep 17 00:00:00 2001 From: mengyxu Date: Sat, 17 May 2025 22:23:02 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=83=8C=E5=8C=85?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=B1=9E=E6=80=A7=E5=AF=B9=E4=B8=8D=E9=BD=90?= =?UTF-8?q?BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/backpack/player.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/views/backpack/player.vue b/src/views/backpack/player.vue index db5bd73..e780303 100644 --- a/src/views/backpack/player.vue +++ b/src/views/backpack/player.vue @@ -89,6 +89,14 @@ onMounted(() => { }); text-align: start; } + .label, + .value { + div { + line-height: 1.5rem; + height: 1.5rem; + } + } + } .equips { @@ -181,6 +189,14 @@ onMounted(() => { }); text-align: start; } + .label, + .value { + div { + line-height: 1.2rem; + height: 1.2rem; + } + } + } .equips { From 6f8d63f6758004d99bee63f4f93d50d32c3be44e Mon Sep 17 00:00:00 2001 From: mengyxu Date: Sun, 18 May 2025 00:12:07 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E6=88=98=E6=96=97=E4=B8=AD=E6=9B=B4=E6=8D=A2=E8=A3=85?= =?UTF-8?q?=E5=A4=87=E6=89=93=E4=B8=8D=E6=AD=BBBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/beings.ts | 6 ++++++ src/tool/caller/attribute.ts | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/config/beings.ts b/src/config/beings.ts index 08888e4..71db175 100644 --- a/src/config/beings.ts +++ b/src/config/beings.ts @@ -52,6 +52,12 @@ export class Attribute { }); } } + + copy(attr: Attribute) { + Object.keys(attr).forEach((key) => { + this[key] = attr[key]; + }); + } } export class Player { diff --git a/src/tool/caller/attribute.ts b/src/tool/caller/attribute.ts index f0533b1..7863f4c 100644 --- a/src/tool/caller/attribute.ts +++ b/src/tool/caller/attribute.ts @@ -48,7 +48,8 @@ export const callPlayerAttribute = (player: Player, base: any) => { attribute.dps = Math.ceil((1 - crit + crit * critdmg) * atk * (1 + dmgPercent)); //计算减伤比例 attribute.reducPercent = callReducPercent(attribute.def, player.lv); - player.attribute = attribute; + + player.attribute.copy(attribute); }; /**