From e07f0c4d3577d2387c84b01a4e1e209f11e67862 Mon Sep 17 00:00:00 2001 From: jyx <2012969435@qq.com> Date: Wed, 4 Dec 2024 16:22:29 +0800 Subject: [PATCH] fix --- src/pages/login/index.vue | 2 +- src/pages/start/index.vue | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 137dcf1..f612a27 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -154,7 +154,7 @@ const paintingDetail = async () => { if (res.status === 0) { state.boxRelBucketStatus = res.data.boxRelBucketStatus; state.drawUid = res.data.drawUid; - console.log("drawUid", state.drawUid); + console.log("drawUid", res.data); if (res.data.pbStatus == 1) { uni.redirectTo({ url: "/pages/index/index?id=" + state.id + "&pid=" + state.pid , diff --git a/src/pages/start/index.vue b/src/pages/start/index.vue index 54e784e..38affb9 100644 --- a/src/pages/start/index.vue +++ b/src/pages/start/index.vue @@ -16,6 +16,7 @@ const state = reactive({ id: "", pid: "", code: "", + drawUid:"" }); const { showMessage } = useToast(); const loading = ref(false); @@ -53,7 +54,8 @@ const paintingDetail = async () => { }); if (res.status === 0) { state.boxRelBucketStatus = res.data.boxRelBucketStatus; - console.log("boxRelBucketStatus", state.boxRelBucketStatus); + state.drawUid = res.data.drawUid; + console.log("drawUid", res.data); if (res.data.pbStatus == 1) { uni.redirectTo({ url: "/pages/index/index?id=" + state.id + "&pid=" + state.pid, @@ -71,7 +73,7 @@ const paintingDetail = async () => { res.data.locateAddress == "公司内" ) { uni.redirectTo({ - url: "/pages/painting/index?id=" + state.id + "&pid=" + state.pid, + url: "/pages/painting/index?id=" + state.id + "&pid=" + state.pid + "&drawUid=" + state.drawUid, success: () => { loading.value = false; },