From 27dc9bdfc57e09b42922dab7d73117ad1486ceb5 Mon Sep 17 00:00:00 2001
From: tanghaolin <1723298894@qq.com>
Date: 星期三, 02 四月 2025 10:27:56 +0800
Subject: [PATCH] 修改计算页布局

---
 src/components/CustomerService.vue |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/src/components/CustomerService.vue b/src/components/CustomerService.vue
index a2a0775..fc3c445 100644
--- a/src/components/CustomerService.vue
+++ b/src/components/CustomerService.vue
@@ -1,11 +1,6 @@
 <template>
 	<div class="bg-white">
-	
-		<iframe
-			ref="iframeRef"
-			src="http://www.xpump.net/iie-mobile?v=333323332"
-			class="w-full h-full border-none overflow-hidden"
-		></iframe>
+		<iframe ref="iframeRef" :src="url" class="w-full h-full border-none overflow-hidden"></iframe>
 	</div>
 </template>
 
@@ -13,6 +8,16 @@
 const emit = defineEmits(['close']);
 
 import { ref, onMounted } from 'vue';
+import { ChildRegister, setParentFunction } from '@/utils/iframeCall';
+const getUrl = () => {
+	const isDev = import.meta.env.DEV;
+	if (isDev) {
+		return 'http://localhost:5679';
+	}
+	return 'http://www.xpump.net/iie-mobile?v=132323';
+};
+
+const url = getUrl();
 
 const iframeRef = ref<HTMLIFrameElement>();
 
@@ -22,6 +27,9 @@
 			emit('close');
 		}
 	});
+	setTimeout(() => {
+		ChildRegister.registerNotifyFunction();
+	}, 800);
 });
 </script>
 <style scoped lang="scss"></style>

--
Gitblit v1.9.3