From d30b6d67ab484eea49a7f3bfa1b2ebc0bf9a53de Mon Sep 17 00:00:00 2001 From: wangzhongjie Date: Tue, 4 Jun 2024 15:08:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=8F=90=E4=BA=A4=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E6=96=87=E4=BB=B6mock=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/Index.ets | 34 ++---------------------- entry/src/main/ets/pages/SignDisplay.ets | 5 ---- entry/src/main/ets/pages/VideoConfig.ets | 1 - 3 files changed, 2 insertions(+), 38 deletions(-) diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 6b17c650..d0ad925f 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -17,6 +17,7 @@ import { } from '../common/service/indexService'; import abilityAccessCtrl, { Permissions } from '@ohos.abilityAccessCtrl'; import promptAction from '@ohos.promptAction'; +import { VideoConfigData } from '../mock'; @Entry @Component @@ -31,38 +32,7 @@ struct Index { @State ratio: number = 1700 / 960 @State loading: boolean = true @State fd: number = -1; - @State param: VideoConfig = { - videoNum: '1', - spls: '1', - wz: '0,0', - faceFlag: false, - shuiying: true, - pztd: '2', - ljlx: '', - ip: '192.168.36.94', - port: '554', - userName: 'admin', - pwd: '12345qwe', - td1: '1', - td2: '2', - td3: '3', - td4: '4', - videoRecord1: false, - videoRecord2: true, - videoRecord3: false, - videoRecord4: false, - text1: '', - text2: '', - text3: '', - dolt: '', - fontSize: '', - rlls: '1', - spzd4: false, - spzd3: false, - spzd2: false, - spzd1: false, - zdyz: '5', - } + @State param: VideoConfig = VideoConfigData fileHelper = null; private interval = null; private context = getContext(this) as common.UIAbilityContext; diff --git a/entry/src/main/ets/pages/SignDisplay.ets b/entry/src/main/ets/pages/SignDisplay.ets index 060a782f..43d17934 100644 --- a/entry/src/main/ets/pages/SignDisplay.ets +++ b/entry/src/main/ets/pages/SignDisplay.ets @@ -92,9 +92,4 @@ export default struct Index { outClick() { } - - saveLog() { - // this.FileLog.initFileLogo('d .0ateLog') - // this.FileLog.createFile('123') - } } \ No newline at end of file diff --git a/entry/src/main/ets/pages/VideoConfig.ets b/entry/src/main/ets/pages/VideoConfig.ets index 4bef36a6..325f4cd9 100644 --- a/entry/src/main/ets/pages/VideoConfig.ets +++ b/entry/src/main/ets/pages/VideoConfig.ets @@ -34,7 +34,6 @@ struct Index { { key: '第三路' }, { key: '第四路' }, ] - private vocObj = null; private fileUtil: FileUtil private context = getContext(this) as common.UIAbilityContext; private controller1: VideoController = new VideoController()