接口测试
This commit is contained in:
parent
4bf9082409
commit
f28efe8103
@ -242,21 +242,10 @@ const wxAuthGetCode = () => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
var REDIRECT_URI = window.location.href;
|
var url = window.location.href;
|
||||||
window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='+ appId +'&redirect_uri='+ REDIRECT_URI +'&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect';
|
// window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='+ appId +'&redirect_uri='+ REDIRECT_URI +'&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect';
|
||||||
|
window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx35766a64d73d08a9&redirect_uri={{url}}&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect`
|
||||||
|
|
||||||
// service
|
|
||||||
// .post(process.env.VUE_APP_API + "/cms-activity/cms88/zsApi/xfhdAuthorize", {
|
|
||||||
// redirect_uri: redirect_uri,
|
|
||||||
// })
|
|
||||||
// .then((res) => {
|
|
||||||
// let code = res.data.data;
|
|
||||||
// console.log("get code结果3", res);
|
|
||||||
// authCode.value = res.data.data;
|
|
||||||
// window.location.href = res.data.data;
|
|
||||||
// // location.href = res.data.data;
|
|
||||||
// // window.open(res.data.data)
|
|
||||||
// });
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const getCode = () => {
|
const getCode = () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user