efficacy.php 739 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. *
  4. */
  5. defined('InShopNC') or exit('Access Invalid!');
  6. class efficacyControl extends mobileHomeControl
  7. {
  8. public function __construct() {
  9. parent::__construct();
  10. }
  11. public function indexOp(){
  12. }
  13. /**
  14. * 获取功效列表
  15. */
  16. public function efficacy_listOp()
  17. {
  18. $efficacy_list = Model()->table('goods_efficacy')->order('sort asc')->select();
  19. $result = array();
  20. foreach ($efficacy_list as $value) {
  21. $item['efficacy_id'] = $value['efficacy_id'];
  22. $item['efficacy_name']=$value['efficacy_name'];
  23. array_push($result,$item);
  24. }
  25. joutput_data(array("efficacy"=>$result));
  26. }
  27. }