diff --git a/common/resources/src/main/resources/rawfile/editor.html b/common/resources/src/main/resources/rawfile/editor.html index 67cd2a01c082cf70c8ce03f0c23ac74d35c64694..4288cfb51ecac3c5c8eba557170f4a9debbe1ae5 100644 --- a/common/resources/src/main/resources/rawfile/editor.html +++ b/common/resources/src/main/resources/rawfile/editor.html @@ -19,15 +19,15 @@
- + 清单
- + 样式
- + 相册
diff --git a/common/resources/src/main/resources/rawfile/icon/picture_white.svg b/common/resources/src/main/resources/rawfile/icon/picture_white.svg new file mode 100644 index 0000000000000000000000000000000000000000..1def639bcda5ff67fcfbf296417597dc88a2455f --- /dev/null +++ b/common/resources/src/main/resources/rawfile/icon/picture_white.svg @@ -0,0 +1 @@ +图片 \ No newline at end of file diff --git a/common/resources/src/main/resources/rawfile/icon/styles.svg b/common/resources/src/main/resources/rawfile/icon/styles.svg new file mode 100644 index 0000000000000000000000000000000000000000..4fb5bb6b99656b56ce68627725d165454ba477bc --- /dev/null +++ b/common/resources/src/main/resources/rawfile/icon/styles.svg @@ -0,0 +1,11 @@ + + + +样式 + + diff --git a/common/resources/src/main/resources/rawfile/icon/todo1.svg b/common/resources/src/main/resources/rawfile/icon/todo1.svg new file mode 100644 index 0000000000000000000000000000000000000000..777829853da50cbf0c1b1bb377dc2ad74164ee3a --- /dev/null +++ b/common/resources/src/main/resources/rawfile/icon/todo1.svg @@ -0,0 +1 @@ +todo \ No newline at end of file diff --git a/product/default/src/main/ets/MainAbility/MainAbility.ts b/product/default/src/main/ets/MainAbility/MainAbility.ts index 07704b5fa212524fff63a4632e729cb0809b303b..e9a8efa2a22d900ded8acc0adea4f4663c170ec0 100644 --- a/product/default/src/main/ets/MainAbility/MainAbility.ts +++ b/product/default/src/main/ets/MainAbility/MainAbility.ts @@ -30,10 +30,14 @@ export default class MainAbility extends Ability { onCreate(want, launchParam) { // @ts-ignore - window.getLastWindow(this.context,(err,data)=>{ - let windowWidth = data.getWindowProperties().windowRect.width - LogUtil.info(this.Tag, " getLastWindow:" + windowWidth) - this.screenBreakPoints(windowWidth) + window.getLastWindow(this.context, (err, data) => { + if (data && data.getWindowProperties()) { + let windowWidth = data.getWindowProperties().windowRect.width + LogUtil.info(this.Tag, " getLastWindow:" + windowWidth) + this.screenBreakPoints(windowWidth) + } else { + LogUtil.info(this.Tag, "getWindowProperties error:" + JSON.stringify(err)) + } }) LogUtil.info(this.Tag, " onCreate, launchReason is " + launchParam.launchReason + ", deviceType" + deviceInfo.deviceType) if (deviceInfo.deviceType === 'phone' || deviceInfo.deviceType === 'default') { @@ -200,7 +204,7 @@ export default class MainAbility extends Ability { } } - screenBreakPoints(data){ + screenBreakPoints(data) { let displayClass = null let screenDpi = null displayClass = display.getDefaultDisplaySync()