✨ feat(37需求): 平台活动添加字段
This commit is contained in:
@@ -293,7 +293,7 @@ public async uploadQrCode() {
|
||||
|
||||
let filenames = part.filename.split('.');
|
||||
ext = filenames[filenames.length - 1];
|
||||
if(type == 'popNotice'|| type == 'loginPage' || type == 'loadingPage') {
|
||||
if(type == 'popNotice'|| type == 'loginPage' || type == 'loadingPage' || type == 'icon') {
|
||||
writePath = getLocalImgUrl(this.app.config.realEnv, type);
|
||||
fileName = `${moment().valueOf()}.${ext}`;
|
||||
remoteUrl = getRemoteImgUrl(this.app.config.realEnv, fileName, type);
|
||||
|
||||
@@ -4,6 +4,7 @@ import { ActivityBase } from "./activityField";
|
||||
interface WebViewDataInDb {
|
||||
iosUrl: string;
|
||||
androidUrl: string;
|
||||
iconUrl: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12,6 +13,7 @@ interface WebViewDataInDb {
|
||||
export class WebViewData extends ActivityBase {
|
||||
iosUrl: string;
|
||||
androidUrl: string;
|
||||
iconUrl: string;
|
||||
|
||||
constructor(activityData: ActivityModelType, createTime: number, serverTime: number) {
|
||||
super(activityData, createTime, serverTime)
|
||||
@@ -22,6 +24,7 @@ interface WebViewDataInDb {
|
||||
let dataObj: WebViewDataInDb = JSON.parse(data);
|
||||
this.iosUrl = dataObj.iosUrl;
|
||||
this.androidUrl = dataObj.androidUrl;
|
||||
this.iconUrl = dataObj.iconUrl;
|
||||
}
|
||||
|
||||
public getShowResult() {
|
||||
@@ -29,6 +32,7 @@ interface WebViewDataInDb {
|
||||
...this.getBaseKeys(),
|
||||
iosUrl: this.iosUrl,
|
||||
androidUrl: this.androidUrl,
|
||||
iconUrl: this.iconUrl,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user