|
|
@@ -390,9 +390,11 @@
|
|
|
for (let n in param) {
|
|
|
a += (n + '=' + param[n] + '&')
|
|
|
}
|
|
|
+ let params = encodeURIComponent(a.substr(0, a.length - 1))
|
|
|
this.isShowLoading = true
|
|
|
if (response.data.content.currentUrl) {
|
|
|
- this.$jsonp(`${response.data.content.currentUrl}?${encodeURIComponent(a.substr(0, a.length - 1))}`, {
|
|
|
+ console.log(params)
|
|
|
+ this.$jsonp(`${response.data.content.currentUrl}?${params}`, {
|
|
|
name: 'successCallback',
|
|
|
timeout: 3000
|
|
|
}, (err, data) => {
|
|
|
@@ -401,11 +403,11 @@
|
|
|
this.isShowLoading = false
|
|
|
throw err
|
|
|
} else {
|
|
|
- this.loginOther(response, a)
|
|
|
+// this.loginOther(response, params)
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- this.loginOther(response, a, 3000)
|
|
|
+// this.loginOther(response, params, 3000)
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
@@ -476,7 +478,7 @@
|
|
|
const crossAfter = this.crossAfter
|
|
|
let promises = []
|
|
|
for (let i in response.data.content.loginUrls) {
|
|
|
- promises.push(this.getJsonp(`${response.data.content.loginUrls[i]}?${encodeURIComponent(a.substr(0, a.length - 1))}`))
|
|
|
+ promises.push(this.getJsonp(`${response.data.content.loginUrls[i]}?${a.substr(0, a.length - 1)}`))
|
|
|
}
|
|
|
Promise.all(promises).then(() => {
|
|
|
crossAfter(response.data.content.returnUrl || 'http://www.ubtob.com', timeout)
|