parent
6dc7d55f0a
commit
833f229bd4
|
|
@ -43,12 +43,12 @@
|
|||
"arkOptions": {
|
||||
"buildProfileFields": {
|
||||
"CHANNEL": "harmony",
|
||||
"BUILD_TIME": "2605110927"
|
||||
"BUILD_TIME": "2605120917"
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"artifactName": "rabbit_harmony_debug_v1.0.0_2605110927"
|
||||
"artifactName": "rabbit_harmony_debug_v1.0.0_2605120917"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ export const BUILD_MODE_NAME = 'debug';
|
|||
export const DEBUG = true;
|
||||
export const TARGET_NAME = 'default';
|
||||
export const CHANNEL = 'harmony';
|
||||
export const BUILD_TIME = '2605110926';
|
||||
export const BUILD_TIME = '2605120914';
|
||||
|
||||
/**
|
||||
* BuildProfile Class is used only for compatibility purposes.
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ export const BUILD_MODE_NAME = 'debug';
|
|||
export const DEBUG = true;
|
||||
export const TARGET_NAME = 'default';
|
||||
export const CHANNEL = 'harmony';
|
||||
export const BUILD_TIME = '2605110926';
|
||||
export const BUILD_TIME = '2605120914';
|
||||
|
||||
/**
|
||||
* BuildProfile Class is used only for compatibility purposes.
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ export const BUILD_MODE_NAME = 'debug';
|
|||
export const DEBUG = true;
|
||||
export const TARGET_NAME = 'default';
|
||||
export const CHANNEL = 'harmony';
|
||||
export const BUILD_TIME = '2605110926';
|
||||
export const BUILD_TIME = '2605120914';
|
||||
|
||||
/**
|
||||
* BuildProfile Class is used only for compatibility purposes.
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ export async function openAppStore(context: common.UIAbilityContext) {
|
|||
// 1. 尝试直接拉起应用市场客户端
|
||||
const marketWant: Want = {
|
||||
action: 'ohos.want.action.appdetail',
|
||||
uri: `store://appgallery.huawei.com/app/detail?id=${bundleName}` // 替换为实际包名
|
||||
uri: `store://appgallery.huawei.com/app/detail?id=${bundleName}`
|
||||
};
|
||||
await context.startAbility(marketWant);
|
||||
} catch (err) {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
{
|
||||
"name": "default",
|
||||
"output": {
|
||||
"artifactName": "rabbit_harmony_v1.0.0_26511927"
|
||||
"artifactName": "rabbit_harmony_v1.0.0_26512917"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -111,11 +111,12 @@ export default class AppAbility extends UIAbility {
|
|||
});
|
||||
|
||||
hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onWindowStageCreate');
|
||||
|
||||
//初始化UniMp
|
||||
init(this, windowStage, {
|
||||
debug: true
|
||||
})
|
||||
|
||||
|
||||
// 加载页面(启动页)
|
||||
windowStage.loadContent('pages/SplashScreenPage', (err) => {
|
||||
if (err.code) {
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ export struct HomeComponent {
|
|||
autoCancel: true // 点击遮罩层可关闭
|
||||
})
|
||||
|
||||
uniMpMpDeal(){
|
||||
loadingVersionUpdate(){
|
||||
getAppVersion().then(version => {
|
||||
// 版本更新,目标版本
|
||||
this.targetVersion = this.profile?.config?.versionEntity?.version?? ''
|
||||
|
|
@ -101,7 +101,7 @@ export struct HomeComponent {
|
|||
}
|
||||
|
||||
aboutToAppear() {
|
||||
this.uniMpMpDeal()
|
||||
this.loadingVersionUpdate()
|
||||
|
||||
// 事件监听
|
||||
emitter.on({ eventId: EVT_USER_CONFIG_PROFILE }, (eventData: emitter.EventData) => {
|
||||
|
|
@ -111,7 +111,7 @@ export struct HomeComponent {
|
|||
if (result === true) {
|
||||
//记得一定要延迟更新,否则接口未请求完成
|
||||
setTimeout(() => {
|
||||
this.uniMpMpDeal()
|
||||
this.loadingVersionUpdate()
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@ import { commonConstants } from 'main_layout/src/main/ets/constants/CommonConsta
|
|||
import { TabBarItem } from './LocalBean';
|
||||
|
||||
/**
|
||||
* Binds data to components and provides interfaces.
|
||||
* 将数据绑定到组件并提供接口。
|
||||
*/
|
||||
export class TabsViewModel {
|
||||
/**
|
||||
* Get item information for the tab.
|
||||
* 获取TabItem
|
||||
*
|
||||
* @return {Array<TabBarItem>} tabItems
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue