深色模式、首页设置页面和功能优化
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"bundleName": "app.wushu.poes",
|
||||
"vendor": "微风暴",
|
||||
"versionCode": 26040101,
|
||||
"versionName": "1.3.1",
|
||||
"versionName": "1.4.1",
|
||||
"icon": "$media:app_icon",
|
||||
"label": "$string:app_name"
|
||||
}
|
||||
|
||||
@@ -5,26 +5,26 @@
|
||||
"name": "default",
|
||||
"type": "HarmonyOS",
|
||||
"material": {
|
||||
"certpath": "C:/Users/无书/.ohos/config/default_ohos_hWyPJmkoRvc13RxcUC3NSaiad5bS6MHBrY9nkKd-288=.cer",
|
||||
"certpath": "C:\\Users\\无书\\.ohos\\config\\default_ohos_hWyPJmkoRvc13RxcUC3NSaiad5bS6MHBrY9nkKd-288=.cer",
|
||||
"keyAlias": "debugKey",
|
||||
"keyPassword": "0000001B675E31900A26DD43D5BAE7CDC29AC560497DAE61594206507C57058DF31D24E44F7E7847222D72",
|
||||
"profile": "C:/Users/无书/.ohos/config/default_ohos_hWyPJmkoRvc13RxcUC3NSaiad5bS6MHBrY9nkKd-288=.p7b",
|
||||
"keyPassword": "0000001BD23894F1C728472C15E1CFD5A35D53C14AAA5CB668AFB407AA9A688319F47FCE244C0526BD541D",
|
||||
"profile": "C:\\Users\\无书\\.ohos\\config\\default_ohos_hWyPJmkoRvc13RxcUC3NSaiad5bS6MHBrY9nkKd-288=.p7b",
|
||||
"signAlg": "SHA256withECDSA",
|
||||
"storeFile": "C:/Users/无书/.ohos/config/default_ohos_hWyPJmkoRvc13RxcUC3NSaiad5bS6MHBrY9nkKd-288=.p12",
|
||||
"storePassword": "0000001BC2CC19FF457937BA7ADA3E0A3DD48065FC3A82D6186E7055C2164A061265A691D49E0783D3A718"
|
||||
"storeFile": "C:\\Users\\无书\\.ohos\\config\\default_ohos_hWyPJmkoRvc13RxcUC3NSaiad5bS6MHBrY9nkKd-288=.p12",
|
||||
"storePassword": "0000001B9419E1D96E288BAD3910A8E0B1BE70A8D56BA67EEA0AF12AD6C4B3035E526CA218229DDEEEB875"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "release",
|
||||
"type": "HarmonyOS",
|
||||
"material": {
|
||||
"certpath": "D:/zhshu/520kiss123.cer",
|
||||
"certpath": "D:/zhshu/520kiss123Release .cer",
|
||||
"keyAlias": "520kiss123",
|
||||
"keyPassword": "0000001ADC811A155E80C47E61C324586F0FA08B1F383DB23026B17B7076AAE123458B9A5FE2DE812751",
|
||||
"profile": "D:/zhshu/520kiss123Release.p7b",
|
||||
"keyPassword": "0000001A770D27C715C2C76CD225BA13525637D1AB00DD6553534835E2BFB6E3C99FED62A418FF950EE3",
|
||||
"profile": "D:/zhshu/520kiss123Release .p7b",
|
||||
"signAlg": "SHA256withECDSA",
|
||||
"storeFile": "D:/zhshu/520kiss123.p12",
|
||||
"storePassword": "0000001AA1C222C2D3454B69525FC0FFF7AD37F3966FCDC782DC9BF88D3F5A241892C1FB35EB36B01888"
|
||||
"storePassword": "0000001A9357A9E29E7DA423D4BA05B8410FA43D4D4364A3D93B4478502F07FAE3CDFC2EB4CD5B945CF8"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
@@ -71,7 +71,7 @@ struct WidgetQuoteSettings {
|
||||
|
||||
async aboutToAppear() {
|
||||
try {
|
||||
const params = router.getParams() as RouterParams;
|
||||
const params = router.getState().params as RouterParams;
|
||||
console.info('[WidgetQuoteSettings] router params: ' + JSON.stringify(params));
|
||||
if (params && params.formName) {
|
||||
this.formName = params.formName;
|
||||
@@ -143,7 +143,7 @@ struct WidgetQuoteSettings {
|
||||
|
||||
async loadSettings() {
|
||||
try {
|
||||
const context = getContext(this);
|
||||
const context = getContext(this) as common.UIAbilityContext;
|
||||
this.preference = await preferences.getPreferences(context, 'widget_quote_settings');
|
||||
|
||||
this.selectedStyle = await this.preference.get('style', 'classic') as string;
|
||||
@@ -199,7 +199,7 @@ struct WidgetQuoteSettings {
|
||||
this.isSaving = true;
|
||||
try {
|
||||
if (!this.preference) {
|
||||
const context = getContext(this);
|
||||
const context = getContext(this) as common.UIAbilityContext;
|
||||
this.preference = await preferences.getPreferences(context, 'widget_quote_settings');
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { router } from '@kit.ArkUI';
|
||||
import { preferences } from '@kit.ArkData';
|
||||
import { common } from '@kit.AbilityKit';
|
||||
//todo 重要 后续 刷新按钮要求固定显示
|
||||
@Entry
|
||||
@Component
|
||||
@@ -45,7 +46,7 @@ struct WidgetSettings {
|
||||
async saveSettings() {
|
||||
try {
|
||||
if (!this.preference) {
|
||||
const context = getContext(this);
|
||||
const context = getContext(this) as common.UIAbilityContext;
|
||||
this.preference = await preferences.getPreferences(context, 'widget_settings');
|
||||
}
|
||||
console.info('[WidgetSettings] Saving settings - showTime: ' + this.showTime + ', showWeather: ' + this.showWeather);
|
||||
|
||||
Reference in New Issue
Block a user