This commit is contained in:
hackrobot
2024-04-11 10:55:17 +08:00
parent 61e588affe
commit 219423ed9b

View File

@@ -102,10 +102,8 @@ const Index = () => {
.split("#")[0]
.split("?")[1]
.split("=")[1];
// alert("1111==>" + hashopenid);
} else {
hashopenid = window.localStorage.getItem("h5openid");
// alert("222==>" + hashopenid);
}
if (!!hashopenid && hashopenid != "undefined" && hashopenid != "null") {
window.localStorage.setItem("h5openid", hashopenid);
@@ -126,7 +124,6 @@ const Index = () => {
let payUrl = `https://payjs.cn/api/openid?mchid=1561724891&callback_url=${nowUrl}`;
window.location.href = payUrl;
}else{
// alert('没有wxid')
}
@@ -149,7 +146,6 @@ const Index = () => {
},
success: function (res) {
console.log(res.data);
// window.alert(res.data.jsapi);
WeixinJSBridge.invoke(
"getBrandWCPayRequest",
{