feat(37需求): 登录页面和加载页面支持上传

This commit is contained in:
luying
2023-04-13 16:06:34 +08:00
parent d13e623084
commit 0899ac7773
6 changed files with 20 additions and 14 deletions

View File

@@ -32,6 +32,12 @@ export default class Package extends BaseModel {
@prop({ required: true, default: false })
isOpen: boolean; // 是否开启
@prop({ required: false })
loadingPage: string; // 是否开启
@prop({ required: true })
loginPage: string; // 是否开启
public static async createNewPackage(params: PackageUpdate, uid = 1) {
const { gid, pid } = params;
let rec: PackageType | null = await PackageModel.findOne({ gid, pid }).lean();

View File

@@ -64,15 +64,15 @@ export function getRemoteQrCodeUrl(env: string, fileName: string) {
return rplUrl;
}
export function getLocalPopNoticeUrl(curEnv: string) {
export function getLocalImgUrl(curEnv: string, type: string) {
if(curEnv == 'development') {
return './img'
} else {
return `/zyz_logs/img/popNotice`;
return `/zyz_logs/img/${type}`;
}
}
export function getRemotePopNoticeUrl(curEnv: string, fileName: string) {
const rplUrl = `${getPrefixByEnv(curEnv)}/img/popNotice/` + fileName;
export function getRemoteImgUrl(curEnv: string, fileName: string, type: string) {
const rplUrl = `${getPrefixByEnv(curEnv)}/img/${type}/` + fileName;
return rplUrl;
}