Fleaalbum.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace app\home\controller;
  3. use think\facade\View;
  4. use think\facade\Lang;
  5. /**
  6. * ============================================================================
  7. *
  8. * ============================================================================
  9. *
  10. * ----------------------------------------------------------------------------
  11. *
  12. * ============================================================================
  13. * 控制器
  14. */
  15. class FLeaalbum extends BaseFleaMember
  16. {
  17. /**
  18. * 验证是否开启闲置功能
  19. */
  20. public function initialize()
  21. {
  22. parent::initialize(); // TODO: Change the autogenerated stub
  23. Lang::load(base_path() . 'home/lang/' . config('lang.default_lang') . '/memberstorealbum.lang.php');
  24. }
  25. /**
  26. * 闲置图片列表,发布闲置调用
  27. */
  28. public function pic_list()
  29. {
  30. /**
  31. * 实例化相册类
  32. */
  33. $flea_model = model('flea');
  34. /**
  35. * 图片列表
  36. */
  37. $param = array();
  38. $param['store_id'] = session('member_id');
  39. $param['item_id'] = input('goods_id');
  40. $pic_list = $flea_model->getFleauploadList($param, 12);
  41. View::assign('pic_list', $pic_list);
  42. View::assign('show_page', $flea_model->page_info->render());
  43. if (input('item') == 'goods') {
  44. return View::fetch($this->template_dir . 'store_flea_sample');
  45. } elseif (input('item') == 'des') {
  46. return View::fetch($this->template_dir . 'store_flea_sample_des');
  47. }
  48. }
  49. }