You've already forked guangan
1
This commit is contained in:
36
plugs/think-plugs-points-mall/src/Service.php
Normal file
36
plugs/think-plugs-points-mall/src/Service.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\points_mall;
|
||||
|
||||
use think\admin\Plugin;
|
||||
use think\facade\View;
|
||||
|
||||
class Service extends Plugin
|
||||
{
|
||||
protected $appName = '积分商城';
|
||||
protected $appCode = 'points-mall';
|
||||
protected $package = 'jerryyan/think-plugs-points-mall';
|
||||
|
||||
public static function register(): void
|
||||
{
|
||||
View::assign("_YES_OR_NO", [
|
||||
'1' => '是',
|
||||
'0' => '否'
|
||||
]);
|
||||
}
|
||||
|
||||
public static function menu(): array
|
||||
{
|
||||
$code = app(static::class)->appCode;
|
||||
return [
|
||||
[
|
||||
'name' => '积分商城',
|
||||
'subs' => [
|
||||
['name' => '商品管理', 'icon' => 'layui-icon layui-icon-template-1', 'node' => "{$code}/goods/index"],
|
||||
['name' => '订单管理', 'icon' => 'layui-icon layui-icon-template-1', 'node' => "{$code}/order/index"],
|
||||
['name' => '用户积分', 'icon' => 'layui-icon layui-icon-template-1', 'node' => "{$code}/point/index"],
|
||||
]
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user