chore(mp-harmony): 初始化鸿蒙元服务项目并完善配置

1.  添加应用及启动图标资源
2.  配置页面路由、卡片信息与资源文件
3.  更新gitignore排除rawfile目录
4.  修改构建签名的keyAlias为cs
This commit is contained in:
2026-07-24 11:35:14 +08:00
parent 1cc9fec69c
commit 352c359326
9 changed files with 145 additions and 3 deletions

2
.gitignore vendored
View File

@@ -11,4 +11,4 @@
# 鸿蒙元服务构建产物
stub-app-projects/mp-harmony/ascf/ascf_src
stub-app-projects/mp-harmony/ascf/ascf_build
stub-app-projects/mp-harmony/entry/src/main/resources
stub-app-projects/mp-harmony/entry/src/main/resources/rawfile

View File

@@ -7,7 +7,7 @@
"material": {
"storeFile": "./cert-profile/.p12",
"storePassword": "0000001932AB6935757345346BCE201EDEF59C1A22F42BE56809B3D986E0A0B97F79AAD4D98E2287F1",
"keyAlias": "kk",
"keyAlias": "cs",
"keyPassword": "0000001944E447966653A353113A4F2879F79052DA8DCB4B6A5327A644E6760434A0324C26C3F3668C",
"signAlg": "SHA256withECDSA",
"profile": "./cert-profile/csDebug.p7b",
@@ -20,7 +20,7 @@
"material": {
"storeFile": "./cert-profile/.p12",
"storePassword": "0000001932AB6935757345346BCE201EDEF59C1A22F42BE56809B3D986E0A0B97F79AAD4D98E2287F1",
"keyAlias": "kk",
"keyAlias": "cs",
"keyPassword": "0000001944E447966653A353113A4F2879F79052DA8DCB4B6A5327A644E6760434A0324C26C3F3668C",
"signAlg": "SHA256withECDSA",
"profile": "./cert-profile/csDebug.p7b",

View File

@@ -0,0 +1,12 @@
{
"color": [
{
"name": "start_window_background",
"value": "#FFFFFF"
},
{
"name": "item_title_font",
"value": "#E6000000"
}
]
}

View File

@@ -0,0 +1,8 @@
{
"float": [
{
"name": "font_size",
"value": "14fp"
}
]
}

View File

@@ -0,0 +1,92 @@
{
"string": [
{
"name": "module_desc",
"value": "module description"
},
{
"name": "EntryAbility_desc",
"value": "EntryAbility description"
},
{
"name": "EntryAbility_label",
"value": "华普森工业内窥镜"
},
{
"name": "EntryFormAbility_desc",
"value": "form_description"
},
{
"name": "EntryFormAbility_label",
"value": "form_label"
},
{
"name": "widget_desc",
"value": "这是茶文化生顺茶栈快捷卡片"
},
{
"name": "widget_display_name",
"value": "添加服务卡片"
},
{
"name": "card_status_open",
"value": "营业中"
},
{
"name": "card_status_closed",
"value": "休息中"
},
{
"name": "card_loading",
"value": "加载中..."
},
{
"name": "card_default_name",
"value": "店铺"
},
{
"name": "card_action_category",
"value": "分类"
},
{
"name": "card_action_promotion",
"value": "活动"
},
{
"name": "card_loading_products",
"value": "加载商品中..."
},
{
"name": "card_loading_promo",
"value": "加载活动中..."
},
{
"name": "card_promo_countdown",
"value": "距结束"
},
{
"name": "card_promo_default_title",
"value": "限时活动"
},
{
"name": "card_promo_default_cta",
"value": "立即查看"
},
{
"name": "widget_horizontal_display_name",
"value": "商品快捷卡"
},
{
"name": "widget_horizontal_desc",
"value": "横滑查看推荐商品"
},
{
"name": "widget_full_display_name",
"value": "活动卡片"
},
{
"name": "widget_full_desc",
"value": "展示当前活动"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@@ -0,0 +1,25 @@
{
"forms": [
{
"name": "widget",
"displayName": "$string:widget_display_name",
"description": "$string:widget_desc",
"src": "./ets/widget/pages/WidgetCard.ets",
"uiSyntax": "arkts",
"window": {
"designWidth": 720,
"autoDesignWidth": true
},
"colorMode": "auto",
"isDynamic": true,
"isDefault": true,
"updateEnabled": false,
"scheduledUpdateTime": "10:30",
"updateDuration": 1,
"defaultDimension": "2*2",
"supportDimensions": [
"2*2"
]
}
]
}

View File

@@ -0,0 +1,5 @@
{
"src": [
"pages/Index"
]
}