// 获取部门数据 export function fakePosition() { return new Promise((resolute, reject) => { try { const detail = { position: "研发部", positionArr: ['研发部', '产品部'] } resolute(detail); } catch (e) { //模拟接口请求失败 reject(e); } }) } // 获取公告数据 export function fakeBannerList() { return new Promise((resolute, reject) => { try { const list = [{ id: '1', img: '/static/images/home/homeTop1.png', url: '' }, { id: '2', img: '/static/images/home/homeTop2.png', url: '' }, { id: '3', img: '/static/images/home/homeTop3.png', url: '' }]; resolute(list); } catch (e) { //模拟接口请求失败 reject(e); } }) } // 获取公告数据 export function fakeNoticeList() { return new Promise((resolute, reject) => { try { const list = [{ id: '1', img: '/static/images/home/focus.png', title: '江西工程学院召开反诈骗承诺书签定工作部署会' }, { id: '2', img: '/static/images/home/service.png', title: '江西最严标准惩处妨害疫情防控犯罪,首例涉疫情诈骗' }]; resolute(list); } catch (e) { //模拟接口请求失败 reject(e); } }) } // 获取业务按钮数据 export function fakeNavButton() { return new Promise((resolute, reject) => { try { const list = [{ name: '我要看', img: '/static/images/home/n1.png', url: '' }, { name: '我要查', img: '/static/images/home/n2.png', url: '' }, { name: '我要报', img: '/static/images/home/n3.png', url: '' }, { name: '我要办', img: '/static/images/home/n3.png', url: '' }, { name: '我要说', img: '/static/images/home/n4.png', url: '' }, { name: '我要巡', img: '/static/images/home/n5.png', url: '' } ]; resolute(list); } catch (e) { //模拟接口请求失败 reject(e); } }) } // 获取业务按钮数据 export function fakeServiceButton() { return new Promise((resolute, reject) => { try { const list = [{ name: '我要看', img: '/static/images/home/s1.png', url: '../article/article' }, { name: '我要查', img: '/static/images/home/search004.png', url: '../alarm_list/alarm_list' }, { name: '我要报', img: '/static/images/home/report001.png', url: '../reported/reported' }, { name: '我要说', img: '/static/images/home/s4.png', url: '../groupChat/groupChat' }, { name: '我参与', img: '/static/images/home/jusou.png', url: '../grabOrders/grabOrders' }, // { // name: '我要办', // img: '/static/images/home/handle002.png', // url: '../handle/handle' // } ]; resolute(list); } catch (e) { //模拟接口请求失败 reject(e); } }) }