wdwf
This commit is contained in:
@@ -88,6 +88,9 @@ const Index = () => {
|
|||||||
const params = Taro.getCurrentInstance().router.params;
|
const params = Taro.getCurrentInstance().router.params;
|
||||||
let hashopenid = window.localStorage.getItem("h5openid");
|
let hashopenid = window.localStorage.getItem("h5openid");
|
||||||
let localwxid = window.localStorage.getItem("wxid");
|
let localwxid = window.localStorage.getItem("wxid");
|
||||||
|
alert ("hashopenid",hashopenid)
|
||||||
|
alert ("localwxid",localwxid)
|
||||||
|
|
||||||
//发起网络请求
|
//发起网络请求
|
||||||
Taro.request({
|
Taro.request({
|
||||||
// url: "/api/addH5openid",
|
// url: "/api/addH5openid",
|
||||||
@@ -128,9 +131,7 @@ const Index = () => {
|
|||||||
}
|
}
|
||||||
if (!!hashopenid && hashopenid != "undefined" && hashopenid != "null") {
|
if (!!hashopenid && hashopenid != "undefined" && hashopenid != "null") {
|
||||||
window.localStorage.setItem("h5openid", hashopenid);
|
window.localStorage.setItem("h5openid", hashopenid);
|
||||||
alert(hashopenid);
|
|
||||||
let localwxid = window.localStorage.getItem("wxid");
|
let localwxid = window.localStorage.getItem("wxid");
|
||||||
alert(localwxid);
|
|
||||||
seth5openid(hashopenid);
|
seth5openid(hashopenid);
|
||||||
// 查询用户信息
|
// 查询用户信息
|
||||||
h5openidUser();
|
h5openidUser();
|
||||||
|
|||||||
Reference in New Issue
Block a user