qwfqw
This commit is contained in:
@@ -88,8 +88,8 @@ 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("hashopenid", hashopenid);
|
||||||
alert("localwxid", localwxid);
|
// alert("localwxid", localwxid);
|
||||||
|
|
||||||
//发起网络请求
|
//发起网络请求
|
||||||
Taro.request({
|
Taro.request({
|
||||||
@@ -150,7 +150,7 @@ 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')
|
// alert('没有wxid')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user