|
@@ -1,26 +1,26 @@
|
|
|
-// 学生地址
|
|
|
-export function vaildStudentUrl() {
|
|
|
- const url = window.location.href
|
|
|
- let returnUrl = ''
|
|
|
- if (/dev/.test(url)) {
|
|
|
- // dev 环境
|
|
|
- returnUrl = 'https://dev.colexiu.com'
|
|
|
- return returnUrl
|
|
|
- } else if (/online/.test(url)) {
|
|
|
- //线上
|
|
|
- returnUrl = 'https://dev.colexiu.com'
|
|
|
- return returnUrl
|
|
|
- } else if (/test/.test(url)) {
|
|
|
- // dev 环境
|
|
|
- returnUrl = 'https://dev.colexiu.com'
|
|
|
- return returnUrl
|
|
|
- } else {
|
|
|
- // 默认dev环境
|
|
|
- returnUrl = 'https://dev.colexiu.com'
|
|
|
- return returnUrl
|
|
|
- }
|
|
|
- return returnUrl
|
|
|
-}
|
|
|
+// // 学生地址
|
|
|
+// export function vaildStudentUrl() {
|
|
|
+// const url = window.location.href
|
|
|
+// let returnUrl = ''
|
|
|
+// if (/dev/.test(url)) {
|
|
|
+// // dev 环境
|
|
|
+// returnUrl = 'https://dev.colexiu.com'
|
|
|
+// return returnUrl
|
|
|
+// } else if (/online/.test(url)) {
|
|
|
+// //线上
|
|
|
+// returnUrl = 'https://dev.colexiu.com'
|
|
|
+// return returnUrl
|
|
|
+// } else if (/test/.test(url)) {
|
|
|
+// // dev 环境
|
|
|
+// returnUrl = 'https://dev.colexiu.com'
|
|
|
+// return returnUrl
|
|
|
+// } else {
|
|
|
+// // 默认dev环境
|
|
|
+// returnUrl = 'https://dev.colexiu.com'
|
|
|
+// return returnUrl
|
|
|
+// }
|
|
|
+// return returnUrl
|
|
|
+// }
|
|
|
|
|
|
export function checkPhone(phone: string) {
|
|
|
const phoneRule = /^1[3456789]\d{9}$/
|