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; },