08 2018 档案
摘要:先上效果: <style>.tabs{display: flex;width: 100%;justify-content: space-around;position: fixed;bottom: 0;background: #ffffff;height: 3rem;color: #3e3e3e;}
阅读全文
摘要:1.如果是tp5 那么请你伪静态一下 代码如下 location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; }}
阅读全文
摘要:1.use fast\Tree; 2. // 判断同线账号(利用当前账号的id查询上下级集合) $alluser = Userinfo::all(); //查询所有用户数据 $tree = Tree::instance(); $tree->init($alluser); $myteam = $tre
阅读全文
摘要:1.不多逼逼 model 代码 <?phpnamespace app\common\model; use think\Model; class Fpage{ private $page;//当前页 private $pagenum;//总页数 private $peytype;//矿机类型 publ
阅读全文
摘要:php 代码: $result = $jjModel->where($wheres)->paginate(10,false,['query' => ['peytype'=>$peytypes]]); (查询10条数据,get参数'paytype',根据自己情况来) $this->assign('pa
阅读全文
摘要:$pattern = '/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{5,20}$/'; if(!preg_match($pattern,$username)){ return $this->error('用户名只能是数字加字母组合'); }
阅读全文