|
|
@@ -73,11 +73,11 @@
|
|
|
let param = response.data.content.data
|
|
|
let a = ''
|
|
|
for (let n in param) {
|
|
|
- a += (n + '=' + param[n] + '&')
|
|
|
+ a += (n + '=' + encodeURIComponent(param[n]) + '&')
|
|
|
}
|
|
|
- let params = encodeURIComponent(a.substr(0, a.length - 1))
|
|
|
+ let params = a.substr(0, a.length - 1)
|
|
|
if (response.data.content.currentUrl) {
|
|
|
- this.$jsonp(`${response.data.content.currentUrl}?${encodeURIComponent(a.substr(0, a.length - 1))}`, {
|
|
|
+ this.$jsonp(`${response.data.content.currentUrl}?${params}`, {
|
|
|
name: 'successCallback',
|
|
|
timeout: 5000
|
|
|
}, (err, data) => {
|
|
|
@@ -135,7 +135,7 @@
|
|
|
const crossAfter = this.crossAfter
|
|
|
let promises = []
|
|
|
for (let i in response.data.content.loginUrls) {
|
|
|
- promises.push(this.getJsonp(`${response.data.content.loginUrls[i]}?${a.substr(0, a.length - 1)}`))
|
|
|
+ promises.push(this.getJsonp(`${response.data.content.loginUrls[i]}?${a}`))
|
|
|
}
|
|
|
Promise.all(promises).then(() => {
|
|
|
crossAfter(response.data.content.returnUrl || 'http://www.ubtob.com', timeout)
|