新生报到移动端V1.0

This commit is contained in:
2025-07-16 17:44:45 +08:00
commit 50d2d6a12d
1058 changed files with 146425 additions and 0 deletions

37
api/helpFunc.js Normal file
View File

@@ -0,0 +1,37 @@
import {
BASE_URL
} from "@/config/baseUrl.js";
let IMG_URL="http://zhxg.gxsdxy.cn/prod_api";
export function isEmpty(obj) {
if (obj == "" || obj == null || obj == undefined || obj.length == 0) {
return true;
} else {
return false;
}
}
export function getImgSrc(src) {
if (isEmpty(src)) {
return "http://greenfw.ah.hostadm.net/i/np2.gif";
} else {
return IMG_URL + src;
}
}
export function getRegStatus(status) {
switch (status) {
case "1":
return "已缴费";
case "2":
return "已激活待缴费"
case "3":
return "已报到";
case "4":
return "在校";
case "0":
default:
return "未激活";
}
}