From 3aa0ae336bbb2ff5c8732aadedce594cf75c066b Mon Sep 17 00:00:00 2001 From: Linzm <1015157648@qq.com> Date: Mon, 4 Aug 2025 09:23:52 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/components.d.ts b/components.d.ts index 109a968..ef24a60 100644 --- a/components.d.ts +++ b/components.d.ts @@ -21,6 +21,7 @@ declare module '@vue/runtime-core' { Tabbar: typeof import('./src/components/tabbar/index.vue')['default'] Tensorflow: typeof import('./src/components/arFrame/tensorflow.vue')['default'] VanActionSheet: typeof import('vant/es')['ActionSheet'] + VanAddressEdit: typeof import('vant/es')['AddressEdit'] VanDivider: typeof import('vant/es')['Divider'] VanField: typeof import('vant/es')['Field'] VanIcon: typeof import('vant/es')['Icon'] From 72ec02d5bda8735fd0a2e4cf1431f372da4a19ae Mon Sep 17 00:00:00 2001 From: Linzm <1015157648@qq.com> Date: Mon, 4 Aug 2025 09:26:29 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 7a319fc..d7fe9f6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,7 +21,7 @@ "noUnusedLocals": true, "noImplicitAny": false, "skipLibCheck": true, - "importsNotUsedAsValues": "preserve" + "verbatimModuleSyntax": true }, "include": [ "src/App.vue", From 0e231374e97e83ef614e20efc787349c444126f5 Mon Sep 17 00:00:00 2001 From: Linzm <1015157648@qq.com> Date: Mon, 4 Aug 2025 14:56:20 +0800 Subject: [PATCH 3/4] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 1 - src/views/badge/index.vue | 4 +-- src/views/badge/preview.vue | 50 ++++++++++++++++++++++--------------- tsconfig.json | 2 +- 4 files changed, 33 insertions(+), 24 deletions(-) diff --git a/components.d.ts b/components.d.ts index ae92c0c..ef24a60 100644 --- a/components.d.ts +++ b/components.d.ts @@ -22,7 +22,6 @@ declare module '@vue/runtime-core' { Tensorflow: typeof import('./src/components/arFrame/tensorflow.vue')['default'] VanActionSheet: typeof import('vant/es')['ActionSheet'] VanAddressEdit: typeof import('vant/es')['AddressEdit'] - VanArea: typeof import('vant/es')['Area'] VanDivider: typeof import('vant/es')['Divider'] VanField: typeof import('vant/es')['Field'] VanIcon: typeof import('vant/es')['Icon'] diff --git a/src/views/badge/index.vue b/src/views/badge/index.vue index a2b9aee..a1779aa 100644 --- a/src/views/badge/index.vue +++ b/src/views/badge/index.vue @@ -110,10 +110,10 @@
-
+
人物主体
-
+
宠物主体
diff --git a/src/views/badge/preview.vue b/src/views/badge/preview.vue index e750dfc..75f4da2 100644 --- a/src/views/badge/preview.vue +++ b/src/views/badge/preview.vue @@ -190,28 +190,38 @@ function sureReload() { return } isPreview.value = false - group.value = newGroup.value - const params = { - pid: pid.value, - group: group.value, - prod_id: prodId.value - } - badgeApi.putModeling(params).then((res: any) => { - console.log('putModeling', res) - imageUrl.value = ''; - imageList.value = [] - imgKey.value = ''; - createLog() - }).catch((err) => { - console.log('putModeling', err) - showReload.value = false - showToast({ - message: err.message, - duration: 2000, + showConfirmDialog({ + title: '再次生成', + message: + '请确认是否重新生成。', + }) + .then(() => { + group.value = newGroup.value + const params = { + pid: pid.value, + group: group.value, + prod_id: prodId.value + } + badgeApi.putModeling(params).then((res: any) => { + console.log('putModeling', res) + imageUrl.value = ''; + imageList.value = [] + imgKey.value = ''; + createLog() + }).catch((err) => { + console.log('putModeling', err) + showReload.value = false + showToast({ + message: err.message, + duration: 2000, + }) + }).finally(() => { + showReload.value = false }) - }).finally(() => { - showReload.value = false }) + .catch(() => { + showReload.value = false + }); } diff --git a/tsconfig.json b/tsconfig.json index d7fe9f6..7a319fc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,7 +21,7 @@ "noUnusedLocals": true, "noImplicitAny": false, "skipLibCheck": true, - "verbatimModuleSyntax": true + "importsNotUsedAsValues": "preserve" }, "include": [ "src/App.vue", From 80f6f49fd262a2d969e426e0db2a8b7469f74570 Mon Sep 17 00:00:00 2001 From: Linzm <1015157648@qq.com> Date: Mon, 4 Aug 2025 15:47:15 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=9C=B0=E5=8C=BA?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=9C=AA=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/badge/preview.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/badge/preview.vue b/src/views/badge/preview.vue index 75f4da2..f39e463 100644 --- a/src/views/badge/preview.vue +++ b/src/views/badge/preview.vue @@ -117,6 +117,11 @@
{ z-index: 2; font-family: chinese; overflow: hidden; + text-shadow: 1px 0px 1px #000000a1; } .shape-item-image-round { border-radius: 50%;