1
0
Files
2020-08-06 14:58:51 +08:00

64 lines
1.5 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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();
}
}