IndexController.php 779 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace app\modules\client\controllers\v1\integralAppreciation;
  3. use app\modules\client\controllers\BaseController;
  4. use app\modules\client\models\v1\integralAppreciation\IndexForm;
  5. class IndexController extends BaseController
  6. {
  7. //活动商品列表
  8. public function actionGoodsList() {
  9. $models = new IndexForm();
  10. $models->attributes = get_params();
  11. $models->store_id = get_store_id();
  12. return $this->asJson($models->goodsList());
  13. }
  14. //首页数据
  15. public function actionIndex() {
  16. $models = new IndexForm();
  17. $models->attributes = get_params();
  18. $models->store_id = get_store_id();
  19. $models->user = get_user();
  20. return $this->asJson($models->index());
  21. }
  22. }