Просмотр исходного кода

获取验证码添加参数时间戳

wangmh 7 лет назад
Родитель
Сommit
75e632ba40

+ 1 - 1
components/mobile/registerEnterprise/index.vue

@@ -215,7 +215,7 @@
           if (this.state.mobile === 'success') {
             this.$indicator.open('获取中...')
             let _this = this
-            this.$http.get('/sso/personal/register/checkCode', {params: {mobile: this.step1.mobile}})
+            this.$http.get('/sso/personal/register/checkCode', {params: {mobile: this.step1.mobile, timestamp: new Date().getTime() + ''}})
               .then(response => {
                 this.$indicator.close()
                 if (response.data) {

+ 1 - 1
components/mobile/registerPersonal/index.vue

@@ -219,7 +219,7 @@
         if (this.state.mobile === 'success') {
           this.$indicator.open('获取中...')
           let _this = this
-          this.$http.get('/sso/personal/register/checkCode', {params: {mobile: this.mobile}})
+          this.$http.get('/sso/personal/register/checkCode', {params: {mobile: this.mobile, timestamp: new Date().getTime() + ''}})
             .then(response => {
               this.$indicator.close()
               if (response.data) {

+ 1 - 1
components/mobile/reset/stepAppeal.vue

@@ -184,7 +184,7 @@
             if (this.state.mobile === 'success') {
               this.$indicator.open('获取中...')
               let _this = this
-              this.$http.get('/sso/personal/register/checkCode', {params: {mobile: this.valid.mobile}})
+              this.$http.get('/sso/personal/register/checkCode', {params: {mobile: this.valid.mobile, timestamp: new Date().getTime() + ''}})
                 .then(response => {
                   this.$indicator.close()
                   if (response.data) {

+ 1 - 1
components/mobile/reset/stepMobile.vue

@@ -72,7 +72,7 @@
         } else {
           this.$indicator.open('获取中...')
           let _this = this
-          this.$http.get('/sso/personal/register/checkCode', {params: {mobile: this.info}})
+          this.$http.get('/sso/personal/register/checkCode', {params: {mobile: this.info, timestamp: new Date().getTime() + ''}})
             .then(response => {
               this.$indicator.close()
               if (response.data) {

+ 1 - 1
components/register/EnterpriseRegistration.vue

@@ -589,7 +589,7 @@
 //      获取校验码
       getCheckCode () {
         this.isShowLoading = true
-        this.$http.get(`/sso/userspace/register/checkCode`, {params: {mobile: this.enterprise.mobile}})
+        this.$http.get(`/sso/userspace/register/checkCode`, {params: {mobile: this.enterprise.mobile, timestamp: new Date().getTime() + ''}})
           .then(response => {
             this.isShowLoading = false
             if (response.data) {

+ 1 - 1
components/register/PersonalRegistration.vue

@@ -516,7 +516,7 @@
       getCheckCode () {
         this.isShowLoading = true
 //        this.getCode()
-        this.$http.get(`/sso/personal/register/checkCode`, {params: {mobile: this.item.mobile}})
+        this.$http.get(`/sso/personal/register/checkCode`, {params: {mobile: this.item.mobile, timestamp: new Date().getTime() + ''}})
           .then(response => {
             this.isShowLoading = false
             if (response.data) {