From 4fe502833c4c2a84e4c626fd38c2bf6bf3c683df Mon Sep 17 00:00:00 2001
From: xuminyui <576362016@qq.com>
Date: Thu, 21 Dec 2023 14:04:08 +0800
Subject: [PATCH] fix
---
pages/login/index.vue | 5 +++--
pages/persomInfo/index.vue | 6 +++++-
pages/scan/index.vue | 23 +++++++++++++++--------
3 files changed, 23 insertions(+), 11 deletions(-)
diff --git a/pages/login/index.vue b/pages/login/index.vue
index 56d3477..e86808e 100644
--- a/pages/login/index.vue
+++ b/pages/login/index.vue
@@ -9,7 +9,8 @@
-
+
@@ -20,7 +21,7 @@
-
diff --git a/pages/persomInfo/index.vue b/pages/persomInfo/index.vue
index ee091fa..e1a413e 100644
--- a/pages/persomInfo/index.vue
+++ b/pages/persomInfo/index.vue
@@ -54,7 +54,11 @@
import card from '@/components/card/index.vue'
import { onMounted } from "vue";
import { onLoad } from "@dcloudio/uni-app"
-
+import mumuGetQrcode from "../../components/mumu-getQrcode/mumu-getQrcode.vue";
+import { ref, getCurrentInstance } from 'vue';
+const currentInstance = getCurrentInstance();
+const { $request } =
+ currentInstance.appContext.config.globalProperties;
onLoad((option) => {
console.log(option);
getQrInfo()
diff --git a/pages/scan/index.vue b/pages/scan/index.vue
index 83fb78d..50f1082 100644
--- a/pages/scan/index.vue
+++ b/pages/scan/index.vue
@@ -1,8 +1,8 @@
-
-
+
+
@@ -12,12 +12,19 @@ import { ref, getCurrentInstance } from 'vue';
const currentInstance = getCurrentInstance();
const { $request } =
currentInstance.appContext.config.globalProperties;
-const qrcodeSucess = () => {
- $request.qrCodeInfo({ appointmentUid: '245fa520-3724-4151-82a9-dd84d6838b68' }).then((res) => {
- if (res.status === 0) {
+const qrcodeSucess = (id) => {
+ uni.showModal({
+ title: id,
+ content: id,
+ success: () => {
+ uni.navigateBack({});
+ },
+ });
+ // $request.qrCodeInfo({ appointmentUid: '245fa520-3724-4151-82a9-dd84d6838b68' }).then((res) => {
+ // if (res.status === 0) {
- }
- })
+ // }
+ // })
}
const qrcodeError = (err) => {
console.log(err);