first commit
This commit is contained in:
63
application/mobile/controller/Help.php
Normal file
63
application/mobile/controller/Help.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
// +------------------------------------------------+
|
||||
// |http://www.cjango.com |
|
||||
// +------------------------------------------------+
|
||||
// | 修复BUG不是一朝一夕的事情,等我喝醉了再说吧! |
|
||||
// +------------------------------------------------+
|
||||
// | Author: 小陈叔叔 <Jason.Chen> |
|
||||
// +------------------------------------------------+
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user