import ItemData from './ItemData'; export class MainViewModel{ static readonly OO_MUSIC: number = 100; static readonly OO_VIDEO: number = 101; static readonly OO_SIMI: number = 102; static readonly OO_STREAM: number = 103; static readonly SAFE_TEST: number = 11; static readonly SEE_PWD: number = 22; static readonly SPEED_TEST: number = 33; static readonly JIAO_CHENG: number = 44; static readonly CAMERA_TEST: number = 55; static readonly POWER_TEST: number = 66; static readonly DELAY_SPEED: number = 66; static readonly DOWN_SPEED: number = 77; static readonly AVER_SPEED: number = 88; static readonly MENU_HOME: number = 66; static readonly MENU_MUSIC: number = 67; static readonly MENU_SETTING: number = 68; static readonly MENU_TEST_SPEED: number = 77; static readonly MENU_OPTIMIZE: number = 88; static readonly MENU_ABOUT: number = 99; static readonly MENU_UPDATE: number = 111; static readonly MENU_USER: number = 112; static readonly MENU_YSZC: number = 222; static readonly MENU_DUTY: number = 221; static readonly MENU_NET_CONNECT: number = 223; static readonly MENU_SIMI: number = 224; static readonly MENU_LIKE: number = 225; static readonly MENU_HAOPING: number = 226; static readonly MENU_VIP: number = 227; static readonly MENU_MIEDIA_KU: number = 228; static readonly MENU_MIEDIA_ARTIST: number = 229; static readonly MENU_MIEDIA_ALBUM: number = 230; static readonly MENU_FILE_SCAN: number = 231; static readonly MENU_SHARE: number = 232; //测滑菜单的数据 getDrawerData(): Array { let drawerGridData: ItemData[] = [ new ItemData($r('app.string.local_music'), { type: 'symbol', value: $r('sys.symbol.music') }, MainViewModel.MENU_MUSIC, false), // new ItemData($r('app.string.media_ku'), $r('app.media.hm_playlist'),MainViewModel.MENU_MIEDIA_KU,false), // new ItemData($r('app.string.artist'), $r('app.media.kp_music'),MainViewModel.MENU_MIEDIA_ARTIST,false), // new ItemData($r('app.string.album'), $r('app.media.llq'),MainViewModel.MENU_MIEDIA_ALBUM,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.haoping'), { type: 'symbol', value: $r('sys.symbol.flower') },MainViewModel.MENU_HAOPING,false), new ItemData($r('app.string.persion_duty'),{ type: 'symbol', value: $r('sys.symbol.doc_plaintext') },MainViewModel.MENU_DUTY,false), new ItemData($r('app.string.yszc'), { type: 'symbol', value: $r('sys.symbol.lock') },MainViewModel.MENU_YSZC,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.setting'), { type: 'symbol', value: $r('sys.symbol.gearshape') },MainViewModel.MENU_SETTING,false), new ItemData($r('app.string.share_tt'), { type: 'symbol', value: $r('sys.symbol.share') },MainViewModel.MENU_SHARE,false), // new ItemData($r('app.string.nor_setting'), $r('app.media.hm_gps'),MainViewModel.MENU_SETTING,false), ]; return drawerGridData; } getDrawerData2(): Array { let drawerGridData: ItemData[] = [ 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.vip'), { type: 'symbol', value: $r('sys.symbol.vip_hand') }, MainViewModel.MENU_VIP, false), new ItemData($r('app.string.haoping'), { type: 'symbol', value: $r('sys.symbol.flower') },MainViewModel.MENU_HAOPING,false), new ItemData($r('app.string.persion_duty'),{ type: 'symbol', value: $r('sys.symbol.doc_plaintext') },MainViewModel.MENU_DUTY,false), new ItemData($r('app.string.yszc'), { type: 'symbol', value: $r('sys.symbol.lock') },MainViewModel.MENU_YSZC,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.setting'), { type: 'symbol', value: $r('sys.symbol.gearshape') },MainViewModel.MENU_SETTING,false), new ItemData($r('app.string.share_tt'), { type: 'symbol', value: $r('sys.symbol.share') },MainViewModel.MENU_SHARE,false), ]; return drawerGridData; } //首页安全体检,查看密码,网络测速的模块数据 getWiFiGridData(): Array { let firstGridData: ItemData[] = [ // new ItemData($r('app.string.see_pwd'), $r('app.media.icon_cw'),MainViewModel.SEE_PWD,false), // new ItemData($r('app.string.safe_test'), $r('app.media.safe_icon2'),MainViewModel.SAFE_TEST,false), // new ItemData($r('app.string.power_test'), $r('app.media.icon_power'),MainViewModel.POWER_TEST,false), // // new ItemData($r('app.string.add_speed'), $r('app.media.safe_blue'),MainViewModel.CAMERA_TEST,false), // new ItemData($r('app.string.speed_test'), $r('app.media.find_icon'),MainViewModel.SPEED_TEST,false), // new ItemData($r('app.string.mac_search'), $r('app.media.icon_mac'),MainViewModel.JIAO_CHENG,false), ]; return firstGridData; } } export default new MainViewModel();