From 5b73519a2c26fea97b4dfd7f56ee6c4e5ea27dde Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Thu, 11 Sep 2025 15:55:37 +0800
Subject: [PATCH] Merge branch 'feature/v5.0/5.0.5' into feature/v6.0/6.0.1

---
 src/components/CreateQRcode/CreateQRcode.vue |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/components/CreateQRcode/CreateQRcode.vue b/src/components/CreateQRcode/CreateQRcode.vue
index 3131fcd..642de73 100644
--- a/src/components/CreateQRcode/CreateQRcode.vue
+++ b/src/components/CreateQRcode/CreateQRcode.vue
@@ -4,6 +4,7 @@
 </template>
 
 <script setup>
+import { wgs84ToGcj02 } from '@/utils/coordinateTransformation';
 import QRCode from 'qrcodejs2-fix'
 const props = defineProps(['latAndLon'])
 
@@ -11,18 +12,20 @@
 let qrCodeInstance = null
 
 const createQRcode = content => {
-console.log('this.currentDetail.content',content);
-
+    const transformed = wgs84ToGcj02(content[0], content[1])
 	if (!content) return
 	if (qrCodeInstance) {
 		myQrCode.value.innerHTML = ''
 	}
 	// 生成新二维码
 	qrCodeInstance = new QRCode(myQrCode.value, {
-		width: 92,
-		height: 91,
-		text: `https://uri.amap.com/marker?position=${content}&name=%E4%BA%8B%E4%BB%B6%E7%82%B9`,
+		width: 130,
+		height: 130,
+		text: `https://uri.amap.com/marker?position=${transformed}&name=%E4%BA%8B%E4%BB%B6%E7%82%B9`,
 	})
+  if (myQrCode.value.hasAttribute('title')) {
+    myQrCode.value.removeAttribute('title')
+  }
 }
 watch(
 	() => props.latAndLon,

--
Gitblit v1.9.3