Parcourir la source

add file efficacy.php

root il y a 9 ans
Parent
commit
1bb3dcfc34
1 fichiers modifiés avec 32 ajouts et 0 suppressions
  1. 32 0
      mobile/control/efficacy.php

+ 32 - 0
mobile/control/efficacy.php

@@ -0,0 +1,32 @@
+<?php
+/**
+ * 前台品牌分类
+ *
+ *
+ *
+ ***/
+
+
+defined('InShopNC') or exit('Access Invalid!');
+
+class efficacyControl extends mobileHomeControl
+{
+    public function __construct() {
+        parent::__construct();
+    }
+
+    public function efficacy_listOp()
+    {
+        $efficacy_list = Model()->table('goods_efficacy')->order('sort asc')->select();
+
+        $result = array();
+        foreach ($efficacy_list as $value) {
+
+            $item['efficacy_id'] = $value['efficacy_id'];
+            $item['efficacy_name']=$value['efficacy_name'];
+
+            array_push($result,$item);
+        }
+        joutput_data($result);
+    }
+}