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 @@ +
+ 条件搜索 + + +