|
|
@@ -43,6 +43,7 @@ export class MainViewModel{
|
|
|
static readonly MENU_MIEDIA_ALBUM: number = 230;
|
|
|
static readonly MENU_FILE_SCAN: number = 231;
|
|
|
static readonly MENU_SHARE: number = 232;
|
|
|
+ static readonly MENU_CHARTS: number = 233;
|
|
|
//测滑菜单的数据
|
|
|
getDrawerData(): Array<ItemData> {
|
|
|
let drawerGridData: ItemData[] = [
|
|
|
@@ -53,6 +54,9 @@ export class MainViewModel{
|
|
|
new ItemData($r('app.string.album'), $r('app.media.llq'),MainViewModel.MENU_MIEDIA_ALBUM,false),
|
|
|
new ItemData($r('app.string.user_center'), { type: 'symbol', value: $r('sys.symbol.person') }, MainViewModel.MENU_USER, false),
|
|
|
new ItemData($r('app.string.file_scan'), { type: 'symbol', value: $r('sys.symbol.doc_text_badge_magnifyingglass') },MainViewModel.MENU_FILE_SCAN,false),
|
|
|
+
|
|
|
+ new ItemData($r('app.string.music_charts'), { type: 'symbol', value: $r('sys.symbol.doc_plaintext') },MainViewModel.MENU_CHARTS,false),
|
|
|
+
|
|
|
new ItemData($r('app.string.setting'), { type: 'symbol', value: $r('sys.symbol.gearshape') },MainViewModel.MENU_SETTING,false),
|
|
|
new ItemData($r('app.string.about_me'), { type: 'symbol', value: $r('sys.symbol.info_shield') },MainViewModel.MENU_ABOUT,false),
|
|
|
new ItemData($r('app.string.haoping'), { type: 'symbol', value: $r('sys.symbol.flower') },MainViewModel.MENU_HAOPING,false),
|
|
|
@@ -69,6 +73,8 @@ export class MainViewModel{
|
|
|
new ItemData($r('app.string.local_music'), { type: 'symbol', value: $r('sys.symbol.music') }, MainViewModel.MENU_MUSIC, false),
|
|
|
new ItemData($r('app.string.user_center'), { type: 'symbol', value: $r('sys.symbol.person') }, MainViewModel.MENU_USER, false),
|
|
|
new ItemData($r('app.string.file_scan'), { type: 'symbol', value: $r('sys.symbol.doc_text_badge_magnifyingglass') },MainViewModel.MENU_FILE_SCAN,false),
|
|
|
+ new ItemData($r('app.string.music_charts'), { type: 'symbol', value: $r('sys.symbol.doc_plaintext') },MainViewModel.MENU_CHARTS,false),
|
|
|
+
|
|
|
new ItemData($r('app.string.setting'), { type: 'symbol', value: $r('sys.symbol.gearshape') },MainViewModel.MENU_SETTING,false),
|
|
|
new ItemData($r('app.string.about_me'), { type: 'symbol', value: $r('sys.symbol.info_shield') },MainViewModel.MENU_ABOUT,false),
|
|
|
// new ItemData($r('app.string.vip'), { type: 'symbol', value: $r('sys.symbol.vip_hand') }, MainViewModel.MENU_VIP, false),
|