64 lines
1.5 KiB
PHP
64 lines
1.5 KiB
PHP
<?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();
|
||
}
|
||
}
|