IndexController.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace App\Http\Controllers\Mobile\Ic;
  3. use App\Http\Controllers\Mobile\MobileBaseController;
  4. use App\Models\Article;
  5. class IndexController extends MobileBaseController
  6. {
  7. public function index()
  8. {
  9. //引才动态
  10. $attract_list = Article::where('type_id',65)
  11. ->where('is_display',1)
  12. ->orderBy('list_order','desc')
  13. ->orderBy('id','desc')
  14. ->limit(5)
  15. ->get();
  16. //晋卫咨询
  17. $gongzhonghao_list = Article::where('type_id',66)
  18. ->where('is_display',1)
  19. ->orderBy('list_order','desc')
  20. ->orderBy('id','desc')
  21. ->limit(5)
  22. ->get();
  23. return view('mobile.app.ic.index',[
  24. 'attract_list'=>$attract_list,
  25. 'gongzhonghao_list'=>$gongzhonghao_list,
  26. ]);
  27. }
  28. public function jinjiang()
  29. {
  30. return view('mobile.app.ic.jinjiang');
  31. }
  32. public function policy()
  33. {
  34. return view('mobile.app.ic.policy');
  35. }
  36. }