12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace app\admin\controller;
- use app\model\member\BalanceRecharge as BalanceRechargeModel;
- class BalanceRecharge extends BaseAdmin
- {
- /**
- * @return array|mixed
- * index
- */
- public function index(){
- if (request()->isAjax()) {
- $page = input('page', 1);
- $limit = input('page_size', PAGE_LIST_ROWS);
- $condition = [];
- $member_username = input('member_username','');
- if($member_username){
- $condition[] = ['member_username','like','%'.$member_username.'%'];
- }
- $notice = new BalanceRechargeModel();
- $list = $notice->getBalanceRechargePageList($condition, $page, $limit);
- return $list;
- }
- return $this->fetch('balance_recharge/index');
- }
- /**
- * 公告删除
- * @return string[]|mixed[]
- */
- public function deleteRecommend()
- {
- if (request()->isAjax()) {
- $id = input('id', '');
- $notice = new BalanceRechargeModel();
- $res = $notice->delete_BalanceRecharge([ [ 'id', 'in', $id ] ]);
- return $res;
- }
- }
- }
|