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