From 96b0b8bb1597d825004f5a8da0728c48b6ce7dba Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 27 三月 2025 15:22:22 +0800
Subject: [PATCH] 首页登录去除侧式

---
 services/home/home.js |   70 ++++++++++++++++++++++++-----------
 1 files changed, 48 insertions(+), 22 deletions(-)

diff --git a/services/home/home.js b/services/home/home.js
index 7d4469d..bf3c094 100644
--- a/services/home/home.js
+++ b/services/home/home.js
@@ -1,53 +1,79 @@
-import { config, cdnBase } from '../../config/index';
-
 /** 鑾峰彇棣栭〉鏁版嵁 */
 function mockFetchHome() {
-  const { delay } = require('../_utils/delay');
-  const { genSwiperImageList } = require('../../model/swiper');
+  const {
+    delay
+  } = require('../_utils/delay');
   return delay().then(() => {
     return {
-      swiper: genSwiperImageList(),
-      tabList: [
-        {
-          text: '绮鹃�夋帹鑽�',
+      tabList: [{
+          text: '鍥句功鏈嶅姟',
           key: 0,
+          icon: '/static/images/home/zhutichuban@2x.png',
+          url: '/pages/bookServices/assort/index',
         },
         {
-          text: '澶忔棩闃叉檼',
+          text: '鏁板瓧闃呰',
           key: 1,
+          icon: '/static/images/home/shuziyuedu@2x.png',
+          url: '/pages/home/digitalRead/index',
         },
         {
-          text: '浜岃儙澶т綔鎴�',
+          text: '鏁板瓧璇剧▼',
           key: 2,
+          icon: '/static/images/home/shuzikecheng@2x.png',
+          url: '/pages/digitalCourses/index',
+          // url: ''
         },
         {
-          text: '浜烘皵姒�',
+          text: '鏁板瓧鏁欐潗',
           key: 3,
+          icon: '/static/images/home/shuzijiaocai@2x.png',
+          url: '/pages/digitalTextbooks/index',
         },
         {
-          text: '濂借瘎姒�',
+          text: '涓撻娲诲姩',
           key: 4,
+          icon: '/static/images/home/zhuantitaolun@2x.png',
+          url: '/pages/specialDiscussion/index',
+          // url: ''
         },
         {
-          text: 'RTX 30',
+          text: '绾夸笂涔﹀睍',
           key: 5,
+          icon: '/static/images/home/xianshangshuzhan@2x.png',
+          url: '/pages/bookExhibitionList/index',
         },
         {
-          text: '鎵嬫満涔熺柉鐙�',
+          text: '涔︾洰涓嬭浇',
           key: 6,
+          icon: '/static/images/home/shumuxiazai@2x.png',
+          url: '/pages/bibliographyList/index',
+        },
+        {
+          text: '鏁欏笀璁よ瘉',
+          key: 7,
+          icon: '/static/images/home/jiaoshirenzheng@2x.png',
+          url: '/packageDomain/pages/teacherCertification/index',
+        },
+        {
+          text: '鏍蜂功鐢宠',
+          key: 8,
+          icon: '/static/images/home/yangshushenqing@2x.png',
+          url: '/packageDomain/pages/sampleBookList/index',
+        },
+        {
+          text: '鎴戣鍑轰功',
+          key: 9,
+          icon: '/static/images/home/xueshuzhuzuo@2x.png',
+          url: '/packageDomain/pages/publickBookForm/index',
+          // url: '',
         },
       ],
-      activityImg: `${cdnBase}/activity/banner.png`,
     };
   });
 }
 
 /** 鑾峰彇棣栭〉鏁版嵁 */
 export function fetchHome() {
-  if (config.useMock) {
-    return mockFetchHome();
-  }
-  return new Promise((resolve) => {
-    resolve('real api');
-  });
-}
+  return mockFetchHome();
+}
\ No newline at end of file

--
Gitblit v1.9.1