| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace platform\controllers;
- use Yii;
- use yii\web\Controller;
- use common\components\util;
- use common\components\configDict;
- use common\components\weixinUtil;
- use common\components\page;
- use common\components\stringUtil;
- use common\models\xhMerchantAccount;
- class ApplyController extends PlatformController
- {
- /**
- * 申请列表
- */
- public function actionList()
- {
- $get = Yii::$app->request->get();
- $query = xhMerchantAccount::find();
- $countQuery = clone $query;
- $count = $countQuery->count();
- $page = isset($get['page']) ? $get['page'] : 1;
- $pageSize = 20;
- $offset = ($page - 1) * $pageSize;
- $models = $query->offset($offset)->orderBy('id desc')->limit($pageSize)->asArray()->all();
- $page = new page($count,$page,$pageSize);
- $paging = $page->fpage();
- $now = time();
- return $this->render('list', ['models' => $models,'paging' => $paging]);
- }
- }
|