fix:提交视频文件mock数据 #15
@ -17,6 +17,7 @@ import {
 | 
				
			|||||||
} from '../common/service/indexService';
 | 
					} from '../common/service/indexService';
 | 
				
			||||||
import abilityAccessCtrl, { Permissions } from '@ohos.abilityAccessCtrl';
 | 
					import abilityAccessCtrl, { Permissions } from '@ohos.abilityAccessCtrl';
 | 
				
			||||||
import promptAction from '@ohos.promptAction';
 | 
					import promptAction from '@ohos.promptAction';
 | 
				
			||||||
 | 
					import { VideoConfigData } from '../mock';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Entry
 | 
					@Entry
 | 
				
			||||||
@Component
 | 
					@Component
 | 
				
			||||||
@ -31,38 +32,7 @@ struct Index {
 | 
				
			|||||||
  @State ratio: number = 1700 / 960
 | 
					  @State ratio: number = 1700 / 960
 | 
				
			||||||
  @State loading: boolean = true
 | 
					  @State loading: boolean = true
 | 
				
			||||||
  @State fd: number = -1;
 | 
					  @State fd: number = -1;
 | 
				
			||||||
  @State param: VideoConfig = {
 | 
					  @State param: VideoConfig = VideoConfigData
 | 
				
			||||||
    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',
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
  fileHelper = null;
 | 
					  fileHelper = null;
 | 
				
			||||||
  private interval = null;
 | 
					  private interval = null;
 | 
				
			||||||
  private context = getContext(this) as common.UIAbilityContext;
 | 
					  private context = getContext(this) as common.UIAbilityContext;
 | 
				
			||||||
 | 
				
			|||||||
@ -92,9 +92,4 @@ export default struct Index {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  outClick() {
 | 
					  outClick() {
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					 | 
				
			||||||
  saveLog() {
 | 
					 | 
				
			||||||
    // this.FileLog.initFileLogo('d          .0ateLog')
 | 
					 | 
				
			||||||
    // this.FileLog.createFile('123')
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -34,7 +34,6 @@ struct Index {
 | 
				
			|||||||
    { key: '第三路' },
 | 
					    { key: '第三路' },
 | 
				
			||||||
    { key: '第四路' },
 | 
					    { key: '第四路' },
 | 
				
			||||||
  ]
 | 
					  ]
 | 
				
			||||||
  private vocObj = null;
 | 
					 | 
				
			||||||
  private fileUtil: FileUtil
 | 
					  private fileUtil: FileUtil
 | 
				
			||||||
  private context = getContext(this) as common.UIAbilityContext;
 | 
					  private context = getContext(this) as common.UIAbilityContext;
 | 
				
			||||||
  private controller1: VideoController = new VideoController()
 | 
					  private controller1: VideoController = new VideoController()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user