yangc пре 7 година
родитељ
комит
85a87dca51
3 измењених фајлова са 10 додато и 10 уклоњено
  1. 3 3
      components/login/Login.vue
  2. 3 3
      components/mobile/loginMobile.vue
  3. 4 4
      pages/agency/index.vue

+ 3 - 3
components/login/Login.vue

@@ -388,9 +388,9 @@
                   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)
                   this.isShowLoading = true
                   if (response.data.content.currentUrl) {
                     console.log(params)
@@ -478,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]}?${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)

+ 3 - 3
components/mobile/loginMobile.vue

@@ -153,9 +153,9 @@
                 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)
                 this.$indicator.open('跳转中...')
                 if (response.data.content.currentUrl) {
                   this.$jsonp(`${response.data.content.currentUrl}?${params}`, {
@@ -231,7 +231,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)

+ 4 - 4
pages/agency/index.vue

@@ -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)