diff --git a/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/floatwindow/FloatWindowFun.ts b/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/floatwindow/FloatWindowFun.ts index 8be28ae83..6fb1f5b51 100644 --- a/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/floatwindow/FloatWindowFun.ts +++ b/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/floatwindow/FloatWindowFun.ts @@ -31,7 +31,7 @@ export class FloatWindowFun { static initAllFun() { globalThis.CreateFloatingWindow = (() => { //5.5SP2 2106 改成 8 - wm.create(globalThis.abilityContext, 'sp_floatingWindow', window.WindowType_TYPE_FLOAT).then((floatWin) => { + wm.create(globalThis.abilityContext, 'sp_floatingWindow', wm.WindowType_TYPE_FLOAT).then((floatWin) => { floatWin.moveTo(this.floatingWindowOffsetX, this.floatingWindowOffsetY).then(() => { floatWin.resetSize(this.atWidth*globalThis.coefficient, this.atWidth*globalThis.coefficient).then(() => { floatWin.getProperties().then((property) => { @@ -71,7 +71,7 @@ export class FloatWindowFun { }) globalThis.CreateTitleWindow = (() => { - wm.create(globalThis.abilityContext, 'sp_TitleWindow', window.WindowType_TYPE_FLOAT).then((floatWin) => { + wm.create(globalThis.abilityContext, 'sp_TitleWindow', wm.WindowType_TYPE_FLOAT).then((floatWin) => { floatWin.moveTo(this.titleWindowOffsetX, this.titleWindowOffsetY).then(() => { floatWin.resetSize(350*globalThis.coefficient, 480*globalThis.coefficient).then(() => { floatWin.getProperties().then((property) => { diff --git a/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/floatwindow/utils/FloatWindowUtils.ets b/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/floatwindow/utils/FloatWindowUtils.ets index 2ddaee9b9..7052bfddc 100644 --- a/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/floatwindow/utils/FloatWindowUtils.ets +++ b/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/floatwindow/utils/FloatWindowUtils.ets @@ -37,7 +37,7 @@ export function initFloatWindow() { export function createFloatWindow(floatName:string) { //5.5SP2 2106 改成 8 - wm.create(globalThis.abilityContext, floatName, window.WindowType_TYPE_FLOAT).then((floatWin) => { + wm.create(globalThis.abilityContext, floatName, wm.WindowType_TYPE_FLOAT).then((floatWin) => { floatWin.moveTo(lineChartWindowOffsetX, lineChartWindowOffsetY).then(() => { floatWin.resetSize(360*globalThis.coefficient,270*globalThis.coefficient).then(() => { floatWin.getProperties().then((property) => {