|
|
@@ -609,32 +609,28 @@
|
|
|
})
|
|
|
},
|
|
|
loginStepOther (response) {
|
|
|
- if (response.data.content.type) {
|
|
|
- let param = response.data.content.data
|
|
|
- let a = ''
|
|
|
- for (let n in param) {
|
|
|
- a += (n + '=' + encodeURIComponent(param[n]) + '&')
|
|
|
- }
|
|
|
- let params = a.substr(0, a.length - 1)
|
|
|
- this.isShowLoading = true
|
|
|
- if (response.data.content.currentUrl) {
|
|
|
- this.$jsonp(`${response.data.content.currentUrl}?${params}`, {
|
|
|
- name: 'successCallback',
|
|
|
- timeout: 3000
|
|
|
- }, (err, data) => {
|
|
|
- if (err) {
|
|
|
- this.$message.error('注册成功,请点击下方“立即登录”完成登录')
|
|
|
- this.isShowLoading = false
|
|
|
- throw err
|
|
|
- } else {
|
|
|
- response.data.content.type === 'city' ? this.loginCityOther(response, params) : this.loginOther(response, params)
|
|
|
- }
|
|
|
- })
|
|
|
- } else {
|
|
|
- response.data.content.type === 'city' ? this.loginCityOther(response, params, 5000) : this.loginOther(response, params, 5000)
|
|
|
- }
|
|
|
+ let param = response.data.content.data
|
|
|
+ let a = ''
|
|
|
+ for (let n in param) {
|
|
|
+ a += (n + '=' + encodeURIComponent(param[n]) + '&')
|
|
|
+ }
|
|
|
+ let params = a.substr(0, a.length - 1)
|
|
|
+ this.isShowLoading = true
|
|
|
+ if (response.data.content.currentUrl) {
|
|
|
+ this.$jsonp(`${response.data.content.currentUrl}?${params}`, {
|
|
|
+ name: 'successCallback',
|
|
|
+ timeout: 3000
|
|
|
+ }, (err, data) => {
|
|
|
+ if (err) {
|
|
|
+ this.$message.error('注册成功,请点击下方“立即登录”完成登录')
|
|
|
+ this.isShowLoading = false
|
|
|
+ throw err
|
|
|
+ } else {
|
|
|
+ this.loginOther(response, params)
|
|
|
+ }
|
|
|
+ })
|
|
|
} else {
|
|
|
- window.location.href = `https://www.usoftchina.com/`
|
|
|
+ this.loginOther(response, params, 5000)
|
|
|
}
|
|
|
},
|
|
|
crossAfter (url, time) {
|
|
|
@@ -659,6 +655,7 @@
|
|
|
}
|
|
|
}
|
|
|
let returnUrl = this.$route.query.returnURL ? decodeURIComponent(this.$route.query.returnURL) : 'https://www.usoftchina.com/'
|
|
|
+ console.log(returnUrl)
|
|
|
Promise.all(promises).then(() => {
|
|
|
crossAfter(returnUrl, timeout)
|
|
|
}).catch(() => {
|