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