Ver código fonte

重新打包

lex-xin 4 anos atrás
pai
commit
48c4ea665d
3 arquivos alterados com 9 adições e 9 exclusões
  1. 0 0
      dist/index.html
  2. 0 0
      dist/static/js/app.17d56e78.js
  3. 9 9
      src/utils/validate.js

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/index.html


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/app.17d56e78.js


+ 9 - 9
src/utils/validate.js

@@ -26,12 +26,12 @@ export function isvalidPhone(str) {
 export function vaildStudentUrl() {
   let url = window.location.href
   let returnUrl = ''
-  if (/dev/.test(url)) { // dev 环境
+  if (/online/.test(url)) { //线上
+    returnUrl = 'https://mstuonline.dayaedu.com'
+  } else if (/dev/.test(url)) { // dev 环境
     returnUrl = 'http://mstudev.dayaedu.com'
   } else if (/test/.test(url)) { // dev 环境
     returnUrl = 'http://mstutest.dayaedu.com'
-  } else if (/online/.test(url)) { //线上
-    returnUrl = 'https://mstuonline.dayaedu.com'
   } else { // 默认dev环境
     returnUrl = 'http://mstudev.dayaedu.com'
   }
@@ -42,12 +42,12 @@ export function vaildStudentUrl() {
 export function vaildTeacherUrl() {
   let url = window.location.href
   let returnUrl = ''
-  if (/dev/.test(url)) { // dev 环境
+  if (/online/.test(url)) { //线上
+    returnUrl = 'https://mteaonline.dayaedu.com'
+  } else if (/dev/.test(url)) { // dev 环境
     returnUrl = 'http://mteadev.dayaedu.com'
   } else if (/test/.test(url)) { // dev 环境
     returnUrl = 'http://mteatest.dayaedu.com'
-  } else if (/online/.test(url)) { //线上
-    returnUrl = 'https://mteaonline.dayaedu.com'
   } else { // 默认dev环境
     returnUrl = 'http://mteadev.dayaedu.com'
   }
@@ -58,12 +58,12 @@ export function vaildTeacherUrl() {
 export function vaildTeachingUrl() {
   let url = window.location.href
   let returnUrl = ''
-  if (/dev/.test(url)) { // dev 环境
+  if (/online/.test(url)) { //线上
+    returnUrl = 'https://manonline.dayaedu.com'
+  } else if (/dev/.test(url)) { // dev 环境
     returnUrl = 'http://mandev.dayaedu.com'
   } else if (/test/.test(url)) { // dev 环境
     returnUrl = 'http://mantest.dayaedu.com'
-  } else if (/online/.test(url)) { //线上
-    returnUrl = 'https://manonline.dayaedu.com'
   } else { // 默认dev环境
     returnUrl = 'http://mandev.dayaedu.com'
   }

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff