| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- namespace app\admin\controller;
- use think\activity\service\ActivityService;
- use think\admin\Controller;
- use think\admin\helper\QueryHelper;
- use think\admin\service\SystemService;
- use think\db\Query;
- use think\facade\Db;
- /**
- * 活动管理
- * Class Menu
- * @package app\admin\controller
- */
- class Activity extends Controller
- {
- /**
- * 当前操作数据库
- * @var string
- */
- private $table = 'Activity';
- /**
- * 奖品订单管理
- * @auth true
- * @menu true
- * @throws \think\db\exception\DataNotFoundException
- * @throws \think\db\exception\DbException
- * @throws \think\db\exception\ModelNotFoundException
- */
- public function index()
- {
- $this->_query($this->table)->layTable(function () {
- $this->title = '活动管理';
- $this->activity = [
- "beginAt" => '2022-07-25',
- "endAt" => '2022-07-31'
- ];
- $this->gifts = [
- 'rankGift' => [
- [
- 'title' => '第一名',
- 'name' => '投影仪',
- ],[
- 'title' => '第二名~第二十名',
- 'name' => '活动专属周边礼包',
- ],[
- 'title' => '第二一名~第五十名',
- 'name' => '电影票代金券',
- ]
- ],
- 'luckDraw' => [
- '活动专属周边礼包',
- '电影票代金券'
- ]
- ];
- }, function (QueryHelper $queryHelper) {
- });
- }
- }
|