/** * 推荐、精选 */ public function action_recommend() { $params = ['title' => '精选拍品']; $params['items'] = \Model_Lot::query()->get(); \View::set_global($params); $this->template->content = \View::forge("{$this->theme}/lot/index"); }
/** * 投票列表 */ public function action_index() { $params = array('title' => '拍品管理', 'menu' => 'lot-index', 'action_name' => '拍品列表——拍品管理'); $params['items'] = \Model_Lot::query()->where(['account_id' => \Session::get('WXAccount')->id])->get(); \View::set_global($params); $this->template->content = \View::forge("{$this->theme}/auction/index"); }