29 lines
1.0 KiB
JavaScript
29 lines
1.0 KiB
JavaScript
|
|
var ChannelList = localStorage.getItem("ChannelList") == null ? [
|
|
{ title: '推荐', type: 'tuijian' },
|
|
{ title: '热点', type: 'redian' },
|
|
{ title: '社会', type: 'shehui' },
|
|
{ title: '娱乐', type: 'yule' },
|
|
{ title: '科技', type: 'keji' },
|
|
{ title: '汽车', type: 'qiche' },
|
|
{ title: '体育', type: 'tiyu' },
|
|
{ title: '财经', type: 'caijing' },
|
|
{ title: '军事', type: 'junshi' },
|
|
{ title: '时尚', type: 'shishang' },
|
|
{ title: '游戏', type: 'youxi' },
|
|
{ title: '历史', type: 'lishi' },
|
|
{ title: '探索', type: 'tansuo' }
|
|
] : JSON.parse(localStorage.getItem("ChannelList"))
|
|
|
|
|
|
var stChannelList = localStorage.getItem("stChannelList") == null ? [
|
|
{ title: '国际', type: 'guoji'},
|
|
{ title: '旅游', type: 'lvyou'},
|
|
{ title: '美食', type: 'meishi'},
|
|
{ title: '育儿', type: 'yuer'},
|
|
{ title: '养生', type: 'yangsheng'},
|
|
{ title: '故事', type: 'gushi'},
|
|
{ title: '美文', type: 'meiwen'},
|
|
] : JSON.parse(localStorage.getItem("stChannelList"))
|
|
|