123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?php
- namespace app\admin\controller\ump;
- use app\admin\controller\AuthController;
- use crmeb\services\UtilService as Util;
- use app\admin\model\user\UserPoint AS UserPointModel;
- use think\facade\Route as Url;
- use crmeb\services\JsonService;
- class UserPoint extends AuthController
- {
-
- public function index()
- {
- $this->assign([
- 'is_layui' => true,
- 'year' => get_month(),
- ]);
- return $this->fetch();
- }
-
- public function create()
- {
- $this->assign(['title' => '添加优惠券', 'action' => Url::buildUrl('save'), 'rules' => $this->rules()->getContent()]);
- return $this->fetch('public/common_form');
- }
-
- public function getponitlist()
- {
- $where = Util::getMore([
- ['start_time', ''],
- ['end_time', ''],
- ['nickname', ''],
- ['page', 1],
- ['limit', 10],
- ]);
- return JsonService::successlayui(UserPointModel::getpointlist($where));
- }
-
- public function export()
- {
- $where = Util::getMore([
- ['start_time', ''],
- ['end_time', ''],
- ['nickname', ''],
- ]);
- UserPointModel::SaveExport($where);
- }
-
- public function getuserpointbadgelist()
- {
- $where = Util::getMore([
- ['start_time', ''],
- ['end_time', ''],
- ['nickname', ''],
- ]);
- return JsonService::successful(UserPointModel::getUserpointBadgelist($where));
- }
- }
|