feat:设置跨域代理

This commit is contained in:
eric
2023-12-03 19:11:19 +08:00
parent 19b4aa7960
commit 7195361a4f
3 changed files with 81 additions and 8 deletions

View File

@@ -38,9 +38,9 @@ const Index = () => {
} else {
// window.alert('不存在')
let nowUrl = window.location.href;
window.alert(nowUrl)
// window.alert(nowUrl)
let payUrl = `https://payjs.cn/api/openid?mchid=1561724891&callback_url=${nowUrl}`;
window.location.href = payUrl;
// window.location.href = payUrl;
}
};
@@ -214,7 +214,7 @@ const Index = () => {
className="submitBtn"
onClick={() => {
Taro.navigateTo({
url: "/pages/meetup/Detail/index?id=20231206&openid='",
url: "/pages/meetup/Detail/index?id=20231206",
});
}}
>