From 7a493f83203366590dba6d70d3b24976fefd6112 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Thu, 11 Apr 2024 09:22:52 +0800 Subject: [PATCH] wdwf --- src/pages/index/index.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/index/index.jsx b/src/pages/index/index.jsx index e33702e..eb673f3 100644 --- a/src/pages/index/index.jsx +++ b/src/pages/index/index.jsx @@ -88,6 +88,9 @@ const Index = () => { const params = Taro.getCurrentInstance().router.params; let hashopenid = window.localStorage.getItem("h5openid"); let localwxid = window.localStorage.getItem("wxid"); + alert ("hashopenid",hashopenid) + alert ("localwxid",localwxid) + //发起网络请求 Taro.request({ // url: "/api/addH5openid", @@ -128,9 +131,7 @@ const Index = () => { } if (!!hashopenid && hashopenid != "undefined" && hashopenid != "null") { window.localStorage.setItem("h5openid", hashopenid); - alert(hashopenid); let localwxid = window.localStorage.getItem("wxid"); - alert(localwxid); seth5openid(hashopenid); // 查询用户信息 h5openidUser();