123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- // 获取部门数据
- 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/banner1.png',
- url: 'https://bladex.vip'
- }, {
- id: '2',
- img: '/static/images/home/banner2.png',
- url: 'https://bladex.vip'
- }, {
- id: '3',
- img: '/static/images/home/banner3.png',
- url: 'https://sns.bladex.vip'
- }];
- 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: '全国累计报告接种新冠疫苗超9亿剂次'
- }];
- 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/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: '/pages/plugin/workflow/pages/workbench/index'
- },
- {
- name: '工商年报',
- img: '/static/images/home/s2.png',
- url: ''
- },
- {
- name: '税务登记',
- img: '/static/images/home/s3.png',
- url: ''
- },
- {
- name: '健康码',
- img: '/static/images/home/s4.png',
- url: ''
- },
- {
- name: '便民服务',
- img: '/static/images/home/s5.png',
- url: ''
- },
- {
- name: '通办大厅',
- img: '/static/images/home/s6.png',
- url: ''
- },
- {
- name: '智能问答',
- img: '/static/images/home/s7.png',
- url: ''
- }
- ];
- resolute(list);
- } catch (e) {
- //模拟接口请求失败
- reject(e);
- }
- })
- }
|