Fleaalbum.php 1.7 KB

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