public function more(Request $request)
 {
     $page = $request->input('page');
     $offset = 4 + ($page - 1) * 15;
     return Goods::recently($offset, 15, 'json');
 }
 public function index(Request $request)
 {
     $result = $this->check($request);
     $news = Comments::newsCount($result['loginFlag'], $result['username']);
     if (Help::checkMobile()) {
         $template = 'mobile.index';
     } else {
         $template = 'pc.index';
     }
     return view($template, ['key' => '', 'loginFlag' => $result['loginFlag'], 'username' => $result['username'], 'sentNum' => $news['sentNum'], 'mesNum' => $news['mesNum'], 'hotGoods' => Goods::hot(0, 9), 'newGoods' => Goods::recently(0, 4), 'chart' => Info::chart(0, 10, 'week'), 'activity' => Goods::headerCategory('双11专区'), 'study' => Goods::headerCategory('学习用品'), 'clothes' => Goods::headerCategory('衣服配饰'), 'digital' => Goods::headerCategory('数码产品'), 'transportation' => Goods::headerCategory('交通工具'), 'entertainment' => Goods::headerCategory('生活娱乐'), 'others' => Goods::headerCategory('其他')]);
 }