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