|
@@ -23,19 +23,17 @@ var app = {
|
|
|
|
|
|
const code = getUrlParam('auth_code');
|
|
const code = getUrlParam('auth_code');
|
|
var openId= carhelp.getOpenIdALI()
|
|
var openId= carhelp.getOpenIdALI()
|
|
- debugger
|
|
|
|
|
|
+
|
|
if (!openId) {
|
|
if (!openId) {
|
|
if (!code) {
|
|
if (!code) {
|
|
|
|
|
|
var authUrl = document.URL//.replace('pages/parking/search', 'pages/parking/auth');
|
|
var authUrl = document.URL//.replace('pages/parking/search', 'pages/parking/auth');
|
|
- window.location.href = getAlipayRedirectURI(process.car.VUE_APP_ALIAPPID, authUrl + '&page=' +
|
|
|
|
- encodeURIComponent(document.URL));
|
|
|
|
|
|
+ window.location.href = getAlipayRedirectURI(process.car.VUE_APP_ALIAPPID, authUrl );
|
|
} else {
|
|
} else {
|
|
- debugger
|
|
|
|
|
|
+
|
|
API_WeiXin.getDataByCodeALI(code).then(response => {
|
|
API_WeiXin.getDataByCodeALI(code).then(response => {
|
|
|
|
|
|
carhelp.setOpenIdALI(response.data.openid)
|
|
carhelp.setOpenIdALI(response.data.openid)
|
|
-
|
|
|
|
location.reload();
|
|
location.reload();
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
console.log(error);
|
|
console.log(error);
|