|
@@ -7,6 +7,7 @@ import { setTokenInfo } from '@/utils/storage'
|
|
|
import { MessageFu } from '@/utils/message'
|
|
|
import { useParams } from 'react-router-dom'
|
|
|
import { API_login } from '@/store/action/all'
|
|
|
+import { baseUrlTemp } from '@/utils/http'
|
|
|
function Z1login() {
|
|
|
// 获取地址栏参数 1:课程 2:展馆
|
|
|
const urlObjTemp: any = useParams()
|
|
@@ -15,7 +16,7 @@ function Z1login() {
|
|
|
const getUserCode = useCallback(() => {
|
|
|
//此处的ID是在文档的开发-基本配置里面
|
|
|
let appid = 'wxcf0db4440f05e3a5'
|
|
|
- let url = `https://sit-hqbooking.4dage.com/web/#/login/${urlObjTemp.key}`
|
|
|
+ let url = `${baseUrlTemp}/web/#/login/${urlObjTemp.key}`
|
|
|
window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${encodeURIComponent(
|
|
|
url
|
|
|
)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`
|