feat: 添加挑战详情页面预制体,优化分享功能与数据展示
This commit is contained in:
@@ -24,6 +24,9 @@ export class main extends Component {
|
||||
@property({ type: Prefab, tooltip: '挑战数据页面预制体' })
|
||||
pagePKDataPrefab: Prefab | null = null;
|
||||
|
||||
@property({ type: Prefab, tooltip: '挑战详情页面预制体' })
|
||||
pagePKDetailPrefab: Prefab | null = null;
|
||||
|
||||
@property({ type: Prefab, tooltip: '挑战结算页面预制体' })
|
||||
pagePKEndPrefab: Prefab | null = null;
|
||||
|
||||
@@ -86,6 +89,14 @@ export class main extends Component {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.pagePKDetailPrefab) {
|
||||
ViewManager.instance.register('PagePKDetail', {
|
||||
prefab: this.pagePKDetailPrefab,
|
||||
cache: true,
|
||||
zIndex: 4
|
||||
});
|
||||
}
|
||||
|
||||
if (this.pagePKEndPrefab) {
|
||||
ViewManager.instance.register('PagePKEnd', {
|
||||
prefab: this.pagePKEndPrefab,
|
||||
|
||||
Reference in New Issue
Block a user