提交 0efe0b03 编写于 作者: T tianwenzhe

change button size and expeience data

Signed-off-by: Ntian-wenzhe411 <tianwenzhe2@huawei.com>
上级 28a623d8
...@@ -154,7 +154,7 @@ struct IndexPage { ...@@ -154,7 +154,7 @@ struct IndexPage {
Row() { Row() {
Button() { Button() {
Image($r('app.media.ic_public_back')).width('20vp').height('18vp') Image($r('app.media.ic_public_back')).width('20vp').height('18vp')
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(() => { .onClick(() => {
router.back(); router.back();
}) })
......
...@@ -82,7 +82,7 @@ struct CustomContainer1 { ...@@ -82,7 +82,7 @@ struct CustomContainer1 {
Row() { Row() {
Button(){ Button(){
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'}) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'})
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
......
...@@ -86,7 +86,7 @@ struct audioInputRouting { ...@@ -86,7 +86,7 @@ struct audioInputRouting {
Row() { Row() {
Button(){ Button(){
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'}) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'})
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:'pages/Audio/Audio_index', url:'pages/Audio/Audio_index',
......
...@@ -86,7 +86,7 @@ struct audioInputRouting { ...@@ -86,7 +86,7 @@ struct audioInputRouting {
Row() { Row() {
Button(){ Button(){
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'}) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'})
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:'pages/Audio/Audio_index', url:'pages/Audio/Audio_index',
......
...@@ -76,7 +76,7 @@ struct audioOutputRouting { ...@@ -76,7 +76,7 @@ struct audioOutputRouting {
Row() { Row() {
Button(){ Button(){
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'}) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'})
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:'pages/Audio/Audio_index', url:'pages/Audio/Audio_index',
......
...@@ -76,7 +76,7 @@ struct audioOutputRouting { ...@@ -76,7 +76,7 @@ struct audioOutputRouting {
Row() { Row() {
Button(){ Button(){
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'}) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'})
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:'pages/Audio/Audio_index', url:'pages/Audio/Audio_index',
......
...@@ -76,7 +76,7 @@ struct audioOutputRouting { ...@@ -76,7 +76,7 @@ struct audioOutputRouting {
Row() { Row() {
Button(){ Button(){
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'}) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'})
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:'pages/Audio/Audio_index', url:'pages/Audio/Audio_index',
......
...@@ -137,7 +137,7 @@ struct IndexPage { ...@@ -137,7 +137,7 @@ struct IndexPage {
Row() { Row() {
Button() { Button() {
Image($r('app.media.ic_public_back')).width('20vp').height('18vp') Image($r('app.media.ic_public_back')).width('20vp').height('18vp')
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(() => { .onClick(() => {
router.back(); router.back();
}) })
......
...@@ -78,7 +78,7 @@ struct cameraOrientation { ...@@ -78,7 +78,7 @@ struct cameraOrientation {
Row() { Row() {
Button() { Button() {
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({ left: '20vp' }) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({ left: '20vp' })
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(() => { .onClick(() => {
router.back({ router.back({
url: 'pages/Camera/Camera_index', url: 'pages/Camera/Camera_index',
......
...@@ -88,7 +88,7 @@ struct cameraOrientation { ...@@ -88,7 +88,7 @@ struct cameraOrientation {
onPageShow() { onPageShow() {
Logger.info(this.tag, `cameraOrientation onPageShow`) Logger.info(this.tag, `cameraOrientation onPageShow`)
// @ts-ignore // @ts-ignore
this.surfaceId = this.mXComponentController.getXComponentSurfaceId() this.surfaceId = this.mXComponentController.getXComponentSurfaceId()
CameraService.initCamera(this.surfaceId, this.cameraDeviceIndex).then(() => { CameraService.initCamera(this.surfaceId, this.cameraDeviceIndex).then(() => {
Logger.info(this.tag, `onPageShow initCamera start`) Logger.info(this.tag, `onPageShow initCamera start`)
...@@ -106,7 +106,7 @@ struct cameraOrientation { ...@@ -106,7 +106,7 @@ struct cameraOrientation {
Row() { Row() {
Button() { Button() {
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({ left: '20vp' }) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({ left: '20vp' })
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(() => { .onClick(() => {
router.back({ router.back({
url: 'pages/Camera/Camera_index', url: 'pages/Camera/Camera_index',
......
...@@ -113,7 +113,7 @@ struct cameraOrientation { ...@@ -113,7 +113,7 @@ struct cameraOrientation {
Row() { Row() {
Button() { Button() {
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({ left: '20vp' }) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({ left: '20vp' })
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(() => { .onClick(() => {
router.back({ router.back({
url: 'pages/Camera/Camera_index', url: 'pages/Camera/Camera_index',
......
...@@ -118,7 +118,7 @@ struct cameraFormat { ...@@ -118,7 +118,7 @@ struct cameraFormat {
Row() { Row() {
Button() { Button() {
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({ left: '20vp' }) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({ left: '20vp' })
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(() => { .onClick(() => {
router.back({ router.back({
url: 'pages/Camera/Camera_index', url: 'pages/Camera/Camera_index',
......
...@@ -104,7 +104,7 @@ struct cameraOrientation { ...@@ -104,7 +104,7 @@ struct cameraOrientation {
Row() { Row() {
Button() { Button() {
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({ left: '20vp' }) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({ left: '20vp' })
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(() => { .onClick(() => {
router.back({ router.back({
url: 'pages/Camera/Camera_index', url: 'pages/Camera/Camera_index',
......
...@@ -129,7 +129,7 @@ struct cameraOrientation { ...@@ -129,7 +129,7 @@ struct cameraOrientation {
Row() { Row() {
Button() { Button() {
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({ left: '20vp' }) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({ left: '20vp' })
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(() => { .onClick(() => {
router.back({ router.back({
url: 'pages/Camera/Camera_index', url: 'pages/Camera/Camera_index',
......
...@@ -138,7 +138,7 @@ struct IndexPage { ...@@ -138,7 +138,7 @@ struct IndexPage {
Row() { Row() {
Button() { Button() {
Image($r('app.media.ic_public_back')).width('20vp').height('18vp') Image($r('app.media.ic_public_back')).width('20vp').height('18vp')
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(() => { .onClick(() => {
router.back(); router.back();
}) })
......
...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common'; ...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common';
let abilityContext = getContext(this) as context.UIAbilityContext; let abilityContext = getContext(this) as context.UIAbilityContext;
let path = globalThis.dir; let path = globalThis.dir;
let CameraColdPath = path + '/ColdStartCamera.log'; let path1 = path + '/ExperienceData';
let CameraColdPath = path1 + '/ColdStartCamera.log';
@Entry @Entry
@Component @Component
struct CustomContainerUser { struct CustomContainerUser {
......
...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common'; ...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common';
let abilityContext = getContext(this) as context.UIAbilityContext; let abilityContext = getContext(this) as context.UIAbilityContext;
let path = globalThis.dir; let path = globalThis.dir;
let ContactsColdPath = path + '/ColdStartContacts.log'; let path1 = path + '/ExperienceData';
let ContactsColdPath = path1 + '/ColdStartContacts.log';
@Entry @Entry
@Component @Component
struct CustomContainerUser { struct CustomContainerUser {
......
...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common'; ...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common';
let abilityContext = getContext(this) as context.UIAbilityContext; let abilityContext = getContext(this) as context.UIAbilityContext;
let path = globalThis.dir; let path = globalThis.dir;
let ContactsColdPath = path + '/HotStartContacts.log'; let path1 = path + '/ExperienceData';
let ContactsColdPath = path1 + '/HotStartContacts.log';
@Entry @Entry
@Component @Component
struct CustomContainerUser { struct CustomContainerUser {
......
...@@ -21,7 +21,8 @@ import router from '@ohos.router'; ...@@ -21,7 +21,8 @@ import router from '@ohos.router';
let abilityContext = getContext(this) as context.UIAbilityContext; let abilityContext = getContext(this) as context.UIAbilityContext;
let path = globalThis.dir; let path = globalThis.dir;
let Xpath = path + '/DeskFps.log' let path1 = path + '/ExperienceData';
let Xpath = path1 + '/DeskFps.log'
@Entry @Entry
@Component @Component
struct CustomContainerUser { struct CustomContainerUser {
......
...@@ -24,6 +24,7 @@ import data_preferences from '@ohos.data.preferences'; ...@@ -24,6 +24,7 @@ import data_preferences from '@ohos.data.preferences';
const TAG = 'ParseXML'; const TAG = 'ParseXML';
let path = globalThis.dir; let path = globalThis.dir;
let path1 = path + '/Experience'; let path1 = path + '/Experience';
let ExperienceDataPath = path + '/ExperienceData';
let VarColor = []; let VarColor = [];
let ColorBackPath = path + '/ExperienceColorBack.txt'; let ColorBackPath = path + '/ExperienceColorBack.txt';
...@@ -150,7 +151,7 @@ struct IndexPage { ...@@ -150,7 +151,7 @@ struct IndexPage {
Row() { Row() {
Button() { Button() {
Image($r('app.media.ic_public_back')).width('20vp').height('18vp') Image($r('app.media.ic_public_back')).width('20vp').height('18vp')
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(() => { .onClick(() => {
router.back(); router.back();
}) })
...@@ -243,6 +244,8 @@ struct IndexPage { ...@@ -243,6 +244,8 @@ struct IndexPage {
ClearText(){ ClearText(){
fileio.rmdirSync(path1); fileio.rmdirSync(path1);
fileio.mkdirSync(path1); fileio.mkdirSync(path1);
fileio.rmdirSync(ExperienceDataPath);
fileio.mkdirSync(ExperienceDataPath);
let fd = fileio.openSync(ColorBackPath, 0o102, 0o666); let fd = fileio.openSync(ColorBackPath, 0o102, 0o666);
for(let i = 0; i < this.TestCaseList.length; i++) { for(let i = 0; i < this.TestCaseList.length; i++) {
let log = (this.TestCaseList[i].title+';'+'#ff808080'+';').toString(); let log = (this.TestCaseList[i].title+';'+'#ff808080'+';').toString();
......
...@@ -18,7 +18,8 @@ import FirstDialog from '../model/FirstDialog'; ...@@ -18,7 +18,8 @@ import FirstDialog from '../model/FirstDialog';
import router from '@ohos.router'; import router from '@ohos.router';
let path = globalThis.dir; let path = globalThis.dir;
let Xpath = path + '/CompleteTimeKeyboard.log'; let path1 = path + '/ExperienceData';
let Xpath = path1 + '/CompleteTimeKeyboard.log';
@Entry @Entry
@Component @Component
......
...@@ -18,7 +18,8 @@ import FirstDialog from '../model/FirstDialog'; ...@@ -18,7 +18,8 @@ import FirstDialog from '../model/FirstDialog';
import router from '@ohos.router'; import router from '@ohos.router';
let path = globalThis.dir; let path = globalThis.dir;
let Xpath = path + '/ResponseTimeKeyboard.log'; let path1 = path + '/ExperienceData';
let Xpath = path1 + '/ResponseTimeKeyboard.log';
@Entry @Entry
@Component @Component
......
...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common'; ...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common';
let abilityContext = getContext(this) as context.UIAbilityContext; let abilityContext = getContext(this) as context.UIAbilityContext;
let path = globalThis.dir; let path = globalThis.dir;
let MmsColdPath = path + '/ColdStartMms.log'; let path1 = path + '/ExperienceData';
let MmsColdPath = path1 + '/ColdStartMms.log';
@Entry @Entry
@Component @Component
struct CustomContainerUser { struct CustomContainerUser {
......
...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common'; ...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common';
let abilityContext = getContext(this) as context.UIAbilityContext; let abilityContext = getContext(this) as context.UIAbilityContext;
let path = globalThis.dir; let path = globalThis.dir;
let MmsColdPath = path + '/HotStartMms.log'; let path1 = path + '/ExperienceData';
let MmsColdPath = path1 + '/HotStartMms.log';
@Entry @Entry
@Component @Component
struct CustomContainerUser { struct CustomContainerUser {
......
...@@ -18,7 +18,8 @@ import {CustomContainer} from '../common/ExperienceCustomContainer'; ...@@ -18,7 +18,8 @@ import {CustomContainer} from '../common/ExperienceCustomContainer';
import FirstDialog from '../model/FirstDialog'; import FirstDialog from '../model/FirstDialog';
let path = globalThis.dir; let path = globalThis.dir;
let Xpath = path + '/PhotoFps.log'; let path1 = path + '/ExperienceData';
let Xpath = path1 + '/PhotoFps.log';
@Entry @Entry
@Component @Component
......
...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common'; ...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common';
let abilityContext = getContext(this) as context.UIAbilityContext; let abilityContext = getContext(this) as context.UIAbilityContext;
let path = globalThis.dir; let path = globalThis.dir;
let PhotosColdPath = path + '/ColdStartPhotos.log'; let path1 = path + '/ExperienceData';
let PhotosColdPath = path1 + '/ColdStartPhotos.log';
@Entry @Entry
@Component @Component
struct CustomContainerUser { struct CustomContainerUser {
......
...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common'; ...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common';
let abilityContext = getContext(this) as context.UIAbilityContext; let abilityContext = getContext(this) as context.UIAbilityContext;
let path = globalThis.dir; let path = globalThis.dir;
let PhotosColdPath = path + '/HotStartPhotos.log'; let path1 = path + '/ExperienceData';
let PhotosColdPath = path1 + '/HotStartPhotos.log';
@Entry @Entry
@Component @Component
struct CustomContainerUser { struct CustomContainerUser {
......
...@@ -18,7 +18,8 @@ import {CustomContainer} from '../common/TimeExperienceCustomContainer'; ...@@ -18,7 +18,8 @@ import {CustomContainer} from '../common/TimeExperienceCustomContainer';
import FirstDialog from '../model/FirstDialog'; import FirstDialog from '../model/FirstDialog';
let path = globalThis.dir; let path = globalThis.dir;
let Xpath = path + '/ResponseTimePhotos.log'; let path1 = path + '/ExperienceData';
let Xpath = path1 + '/ResponseTimePhotos.log';
@Entry @Entry
@Component @Component
......
...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common'; ...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common';
let abilityContext = getContext(this) as context.UIAbilityContext; let abilityContext = getContext(this) as context.UIAbilityContext;
let path = globalThis.dir; let path = globalThis.dir;
let SettingsColdPath = path + '/ColdStartSetting.log'; let path1 = path + '/ExperienceData';
let SettingsColdPath = path1 + '/ColdStartSetting.log';
@Entry @Entry
@Component @Component
struct CustomContainerUser { struct CustomContainerUser {
......
...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common'; ...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common';
let abilityContext = getContext(this) as context.UIAbilityContext; let abilityContext = getContext(this) as context.UIAbilityContext;
let path = globalThis.dir; let path = globalThis.dir;
let SettingsColdPath = path + '/HotStartSetting.log'; let path1 = path + '/ExperienceData';
let SettingsColdPath = path1 + '/HotStartSetting.log';
@Entry @Entry
@Component @Component
struct CustomContainerUser { struct CustomContainerUser {
......
...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common'; ...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common';
let abilityContext = getContext(this) as context.UIAbilityContext; let abilityContext = getContext(this) as context.UIAbilityContext;
let path = globalThis.dir; let path = globalThis.dir;
let Xpath = path + '/CompleteTimeLauncher.log'; let path1 = path + '/ExperienceData';
let Xpath = path1 + '/CompleteTimeLauncher.log';
@Entry @Entry
@Component @Component
......
...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common'; ...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common';
let abilityContext = getContext(this) as context.UIAbilityContext; let abilityContext = getContext(this) as context.UIAbilityContext;
let path = globalThis.dir; let path = globalThis.dir;
let Xpath = path + '/ResponseTimeLauncher.log'; let path1 = path + '/ExperienceData';
let Xpath = path1 + '/ResponseTimeLauncher.log';
@Entry @Entry
@Component @Component
......
...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common'; ...@@ -20,7 +20,8 @@ import context from '@ohos.app.ability.common';
let abilityContext = getContext(this) as context.UIAbilityContext; let abilityContext = getContext(this) as context.UIAbilityContext;
let path = globalThis.dir; let path = globalThis.dir;
let Xpath = path + '/CompleteTimeLauncher.log'; let path1 = path + '/ExperienceData';
let Xpath = path1 + '/CompleteTimeLauncher.log';
@Entry @Entry
@Component @Component
......
...@@ -18,7 +18,8 @@ import {CustomContainer} from '../common/TimeExperienceCustomContainer'; ...@@ -18,7 +18,8 @@ import {CustomContainer} from '../common/TimeExperienceCustomContainer';
import FirstDialog from '../model/FirstDialog'; import FirstDialog from '../model/FirstDialog';
let path = globalThis.dir; let path = globalThis.dir;
let Xpath = path + '/ResponseTimePhotos.log'; let path1 = path + '/ExperienceData';
let Xpath = path1 + '/ResponseTimePhotos.log';
@Entry @Entry
@Component @Component
......
...@@ -39,7 +39,7 @@ struct playAudio { ...@@ -39,7 +39,7 @@ struct playAudio {
Row() { Row() {
Button() { Button() {
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({ left: '20vp' }) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({ left: '20vp' })
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(() => { .onClick(() => {
router.back({ router.back({
url: 'pages/Player/PlayAudioList', url: 'pages/Player/PlayAudioList',
......
...@@ -40,7 +40,7 @@ struct playVideo { ...@@ -40,7 +40,7 @@ struct playVideo {
Row() { Row() {
Button() { Button() {
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({ left: '20vp' }) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({ left: '20vp' })
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(() => { .onClick(() => {
router.back({ router.back({
url: 'pages/Player/PlayVideoList', url: 'pages/Player/PlayVideoList',
......
...@@ -138,7 +138,7 @@ struct IndexPage { ...@@ -138,7 +138,7 @@ struct IndexPage {
Row() { Row() {
Button() { Button() {
Image($r('app.media.ic_public_back')).width('20vp').height('18vp') Image($r('app.media.ic_public_back')).width('20vp').height('18vp')
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(() => { .onClick(() => {
router.back(); router.back();
}) })
......
...@@ -82,7 +82,7 @@ export struct CustomContainer { ...@@ -82,7 +82,7 @@ export struct CustomContainer {
Row() { Row() {
Button(){ Button(){
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'}) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'})
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
......
...@@ -84,7 +84,7 @@ export struct CustomContainer { ...@@ -84,7 +84,7 @@ export struct CustomContainer {
Row() { Row() {
Button(){ Button(){
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'}) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'})
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
......
...@@ -80,7 +80,7 @@ export struct CustomContainer { ...@@ -80,7 +80,7 @@ export struct CustomContainer {
Row() { Row() {
Button(){ Button(){
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'}) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'})
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
......
...@@ -80,7 +80,7 @@ export struct CustomContainer { ...@@ -80,7 +80,7 @@ export struct CustomContainer {
Row() { Row() {
Button(){ Button(){
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'}) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'})
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
......
...@@ -81,7 +81,7 @@ export struct CustomContainer { ...@@ -81,7 +81,7 @@ export struct CustomContainer {
Row() { Row() {
Button(){ Button(){
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'}) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'})
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
......
...@@ -80,7 +80,7 @@ export struct CustomContainer { ...@@ -80,7 +80,7 @@ export struct CustomContainer {
Row() { Row() {
Button(){ Button(){
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'}) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'})
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
......
...@@ -82,7 +82,7 @@ export struct CustomContainer { ...@@ -82,7 +82,7 @@ export struct CustomContainer {
Row() { Row() {
Button(){ Button(){
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'}) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'})
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
......
...@@ -82,7 +82,7 @@ export struct CustomContainer { ...@@ -82,7 +82,7 @@ export struct CustomContainer {
Row() { Row() {
Button(){ Button(){
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'}) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'})
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
......
...@@ -87,7 +87,7 @@ export struct CustomContainer { ...@@ -87,7 +87,7 @@ export struct CustomContainer {
Row() { Row() {
Button(){ Button(){
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'}) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'})
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
......
...@@ -82,7 +82,7 @@ export struct CustomContainer { ...@@ -82,7 +82,7 @@ export struct CustomContainer {
Row() { Row() {
Button(){ Button(){
Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'}) Image($r('app.media.ic_public_back')).width('20vp').height('18vp').margin({left:'20vp'})
}.backgroundColor(Color.Black) }.backgroundColor(Color.Black).size({ width: '40vp', height: '30vp' })
.onClick(()=>{ .onClick(()=>{
router.back({ router.back({
url:this.Url, url:this.Url,
......
...@@ -30,6 +30,7 @@ let path3 = path + '/Camera'; ...@@ -30,6 +30,7 @@ let path3 = path + '/Camera';
let path4 = path + '/Player'; let path4 = path + '/Player';
let path5 = path + '/Experience'; let path5 = path + '/Experience';
let picturePath = path + '/screenshot'; let picturePath = path + '/screenshot';
let ExperienceDataPath = path + '/ExperienceData';
let ArkUIColorBackPath = path + '/ArkUIColorBack.txt'; let ArkUIColorBackPath = path + '/ArkUIColorBack.txt';
let AudioColorBackPath = path + '/AudioColorBack.txt'; let AudioColorBackPath = path + '/AudioColorBack.txt';
let CameraColorBackPath = path + '/CameraColorBack.txt'; let CameraColorBackPath = path + '/CameraColorBack.txt';
...@@ -214,6 +215,8 @@ struct IndexPage { ...@@ -214,6 +215,8 @@ struct IndexPage {
fileio.unlinkSync(ExperienceColorBackPath); fileio.unlinkSync(ExperienceColorBackPath);
fileio.rmdirSync(picturePath); fileio.rmdirSync(picturePath);
fileio.mkdirSync(picturePath); fileio.mkdirSync(picturePath);
fileio.rmdirSync(ExperienceDataPath);
fileio.mkdirSync(ExperienceDataPath);
fileio.openSync(TimePath, 0o100 | 0o2002, 0o664); fileio.openSync(TimePath, 0o100 | 0o2002, 0o664);
fileio.openSync(xmlPath, 0o100 | 0o2002, 0o664); fileio.openSync(xmlPath, 0o100 | 0o2002, 0o664);
fileio.openSync(path11, 0o100 | 0o2002, 0o664); fileio.openSync(path11, 0o100 | 0o2002, 0o664);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册