From a47b138c7455dee981af9b4fac431a16c0eee675 Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Thu, 25 Dec 2025 18:04:42 +0800
Subject: [PATCH] 报名导出修改
---
admin/app/api/model/page/Page.php | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/admin/app/api/model/page/Page.php b/admin/app/api/model/page/Page.php
index 1798152..6e664d2 100644
--- a/admin/app/api/model/page/Page.php
+++ b/admin/app/api/model/page/Page.php
@@ -13,6 +13,7 @@
use app\api\model\plus\bargain\Product as BargainProductModel;
use app\api\model\plus\bargain\Active as BargainActiveModel;
use app\api\model\plus\live\Room as RoomModel;
+use app\api\model\plus\release\Project;
/**
* 首页模型
@@ -53,6 +54,10 @@
$items[$key]['data'] = $model->getCouponList($user, $item, true, 1);
} else if ($item['type'] === 'article') {
$items[$key]['data'] = $model->getArticleList($item);
+ }else if ($item['type'] === 'hdzq') {
+ $items[$key]['data'] = $model->getReleaseList($item);
+ }else if ($item['type'] === 'gxpp') {
+ $items[$key]['data'] = $model->getReleaseList($item,$user);
} else if ($item['type'] === 'special') {
$items[$key]['data'] = $model->getSpecialList($item);
} else if ($item['type'] === 'seckillProduct') {
@@ -147,8 +152,19 @@
{
// 获取文章数据
$model = new Article;
- $articleList = $model->getList($item['params']['auto']['category'], $item['params']['auto']['showNum'],0);
+ $articleList = $model->getList($item['params']['auto']['category'], $item['params']['auto']['showNum']);
return $articleList->isEmpty() ? [] : $articleList->toArray()['data'];
+ }
+
+ /**
+ * 获取供需列表
+ */
+ private function getReleaseList($item,$user=[])
+ {
+ // 获取数据
+ $model = new Project;
+ $list = $model->getIndexList($user,$item['params']['auto']['showNum']);
+ return $list->isEmpty() ? [] : $list->toArray()['data'];
}
/**
@@ -158,7 +174,7 @@
{
// 获取头条数据
$model = new Article;
- $articleList = $model->getList($item['params']['auto']['category'], $item['params']['auto']['showNum'],0);
+ $articleList = $model->getList($item['params']['auto']['category'], $item['params']['auto']['showNum']);
return $articleList->isEmpty() ? [] : $articleList->toArray()['data'];
}
--
Gitblit v1.9.2