From b929e9d487632580cc28ac7b8bf9494f25ca8ca3 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期一, 18 三月 2024 14:45:37 +0800
Subject: [PATCH] 代码分包

---
 services/home/home.js |   17 ++++++-----------
 1 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/services/home/home.js b/services/home/home.js
index 598c2dd..d1d92a2 100644
--- a/services/home/home.js
+++ b/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();
 }

--
Gitblit v1.9.1