From c43e7a037ae3c75e38f2c37e883c71ac285062a0 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 23 Dec 2024 13:49:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=A7=AF=E5=88=86=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugs/think-plugs-points-mall/src/Service.php | 2 +- .../src/controller/Point.php | 8 +++ .../src/view/point/index.html | 49 +++++++++++++++++++ .../src/view/point/index_search.html | 17 +++++++ 4 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 plugs/think-plugs-points-mall/src/view/point/index.html create mode 100644 plugs/think-plugs-points-mall/src/view/point/index_search.html diff --git a/plugs/think-plugs-points-mall/src/Service.php b/plugs/think-plugs-points-mall/src/Service.php index 65a27b2..b5a450d 100644 --- a/plugs/think-plugs-points-mall/src/Service.php +++ b/plugs/think-plugs-points-mall/src/Service.php @@ -8,7 +8,7 @@ use think\facade\View; class Service extends Plugin { protected $appName = '积分商城'; - protected $appCode = 'points-mall'; + protected $appCode = 'points_mall'; protected $package = 'jerryyan/think-plugs-points-mall'; public static function register(): void diff --git a/plugs/think-plugs-points-mall/src/controller/Point.php b/plugs/think-plugs-points-mall/src/controller/Point.php index 2b8949b..55efb89 100644 --- a/plugs/think-plugs-points-mall/src/controller/Point.php +++ b/plugs/think-plugs-points-mall/src/controller/Point.php @@ -2,7 +2,9 @@ namespace plugin\points_mall\controller; +use plugin\points_mall\model\PointsMallUserPoint; use think\admin\Controller; +use think\admin\helper\QueryHelper; /** * 积分情况 @@ -17,6 +19,12 @@ class Point extends Controller */ public function index() { + $this->title = '积分详情'; + PointsMallUserPoint::mQuery()->layTable(function () { + }, static function (QueryHelper $query) { + $query->with('user'); + $query->valueBetween('point'); + }); } } \ No newline at end of file diff --git a/plugs/think-plugs-points-mall/src/view/point/index.html b/plugs/think-plugs-points-mall/src/view/point/index.html new file mode 100644 index 0000000..1d044ca --- /dev/null +++ b/plugs/think-plugs-points-mall/src/view/point/index.html @@ -0,0 +1,49 @@ +{extend name="table"} + +{block name="button"} +{/block} + +{block name="content"} +
+
+
+
+ {include file='point/index_search'} +
+
+
+
+
+ +{/block} + +{block name='style'} + +{/block} + +{block name='script'} + +{/block} diff --git a/plugs/think-plugs-points-mall/src/view/point/index_search.html b/plugs/think-plugs-points-mall/src/view/point/index_search.html new file mode 100644 index 0000000..bc5a08c --- /dev/null +++ b/plugs/think-plugs-points-mall/src/view/point/index_search.html @@ -0,0 +1,17 @@ +
+ 条件搜索 + + +