| // +------------------------------------------------+ namespace app\mobile\controller; use app\common\model\Direct as DirectModel; use app\common\model\Help as HelpModel; class Help extends _Init { public function _initialize() { parent::_initialize(); $this->nav = 4; } public function index() { return $this->fetch(); } public function desc() { return $this->fetch(); } public function lists($category) { $this->list = HelpModel::where(['status' => 1, 'category' => $category])->select(); return $this->fetch(); } public function detail($id) { parent::shareArticle(); $this->info = HelpModel::get($id); return $this->fetch(); } /** * 直销技巧 */ public function direct() { $this->list = DirectModel::where('status', 1)->order('sort desc,id desc')->select(); $this->nav = 5; return $this->fetch(); } public function directDetail($id) { $this->info = DirectModel::get($id); $this->info->setInc('click'); $this->nav = 4; return $this->fetch(); } }