|
@@ -6,6 +6,7 @@ use app\abutment\logic\Index as IndexLogic;
|
|
|
use app\BaseController;
|
|
|
use think\exception\ValidateException;
|
|
|
use think\facade\Config;
|
|
|
+use think\facade\Db;
|
|
|
use think\facade\Validate;
|
|
|
|
|
|
|
|
@@ -113,6 +114,25 @@ class Index extends BaseController
|
|
|
}
|
|
|
|
|
|
|
|
|
+ //专属类型列表
|
|
|
+ public function getExclusiveList(){
|
|
|
+
|
|
|
+ $pid = $this->request->filter('trim')->post('pid/d',0);
|
|
|
+ $where=[["is_del","=",0],["pid","=",$pid]];
|
|
|
+
|
|
|
+ $cat_name=$this->request->filter('trim')->post('cat_name','');
|
|
|
+ if($cat_name!=="") $where[]=['cat_name',"like","%$cat_name%"];
|
|
|
+
|
|
|
+ $data = Db::name("exclusive")
|
|
|
+ ->where($where)
|
|
|
+ ->select()
|
|
|
+ ->toArray();
|
|
|
+ $vmp = [];
|
|
|
+ foreach ($data as $sts){
|
|
|
+ $vmp[]=coco($sts);
|
|
|
+ }
|
|
|
+ return json_show(0,"获取成功",$vmp);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|