goods->plugin_id,[0,92])) { return true; } return false; } public function getData() { $specs_info = []; $options = []; if (!is_null($this->goods)) { if ($this->goods->has_option) { $options = GoodsOption::uniacid() ->select('id','title') ->where('goods_id',$this->goods->id) ->get()->toArray(); } $specs_info = GoodsSpecInfo::uniacid() ->where('goods_id',$this->goods->id) ->get()->toArray(); } return [ 'options'=> $options, 'specs_info'=> $specs_info, ]; } public function pagePath() { return $this->getPath('resources/views/goods/assets/js/components/'); } }