1
0

first commit

This commit is contained in:
2020-08-06 14:58:51 +08:00
commit 17096657dc
780 changed files with 92857 additions and 0 deletions

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