闫增涛
2024-03-18 b929e9d487632580cc28ac7b8bf9494f25ca8ca3
services/home/home.js
@@ -1,4 +1,4 @@
import { config } from '../../config/index';
/** 获取首页数据 */
function mockFetchHome() {
  const { delay } = require('../_utils/delay');
@@ -9,7 +9,7 @@
          text: '图书服务',
          key: 0,
          icon: '/static/images/home/zhutichuban@2x.png',
          url: '/pages/bookServices/assort/index.wxml',
          url: '/pages/bookServices/assort/index',
        },
        {
          text: '数字阅读',
@@ -39,7 +39,7 @@
          text: '线上书展',
          key: 5,
          icon: '/static/images/home/xianshangshuzhan@2x.png',
          url: '',
          url: '/pages/bookExhibitionList/index',
        },
        {
          text: '书目下载',
@@ -51,13 +51,13 @@
          text: '教师认证',
          key: 7,
          icon: '/static/images/home/jiaoshirenzheng@2x.png',
          url: '/pages/teacherCertification/index',
          url: '/packageDomain/pages/teacherCertification/index',
        },
        {
          text: '样书申请',
          key: 8,
          icon: '/static/images/home/yangshushenqing@2x.png',
          url: '',
          url: '/packageDomain/pages/sampleBookList/index',
        },
        {
          text: '我要出书',
@@ -72,10 +72,5 @@
/** 获取首页数据 */
export function fetchHome() {
  if (config.useMock) {
    return mockFetchHome();
  }
  return new Promise((resolve) => {
    resolve('real api');
  });
  return mockFetchHome();
}