/** * 视频预览 */ public function video($cid, $id, $videoid) { $company = \App\Models\CompanyModel::find($cid); $data = GoodsModel::find($id); $result = ['data' => $data, 'video' => \App\Models\Base\VideoModel::find($videoid), 'uid' => $company->uid, 'videoName' => $data->name]; return view('layout.videoPre', $result); }
public function show($id) { $curr['name'] = $this->lists['show']['name']; $curr['url'] = $this->lists['show']['url']; $result = ['data' => GoodsModel::find($id), 'model' => $this->model, 'pics' => $this->model->pics($this->userid), 'videos' => $this->model->videos($this->userid), 'lists' => $this->lists, 'curr' => $curr, 'curr_func' => $this->lists['func']['url']]; return view('company.admin.product.show', $result); }
public function pre($id) { $data = GoodsModel::find($id); $videoid = $data->video_id ? $data->video_id : 0; $result = ['data' => $data, 'video' => VideoModel::find($videoid), 'uid' => $this->userid, 'videoName' => $data->name]; return view('layout.videoPre', $result); }
public function show($id) { $curr['name'] = $this->crumb['trash']['name']; $curr['url'] = $this->crumb['trash']['url']; $result = ['data' => GoodsModel::find($id), 'model' => $this->model, 'crumb' => $this->crumb, 'curr' => $curr]; return view('admin.goods.show', $result); }
public function show($id) { $curr['name'] = $this->lists['show']['name']; $curr['url'] = $this->lists['show']['url']; $result = ['data' => GoodsModel::find($id), 'model' => $this->model, 'lists' => $this->lists, 'curr' => $curr]; return view('member.personSD.show', $result); }
public function show($id) { $curr['name'] = $this->lists['show']['name']; $curr['url'] = $this->lists['show']['url']; $data = GoodsModel::find($id); $result = ['data' => $data, 'model' => $this->model, 'types' => $this->model['types'], 'lists' => $this->lists, 'curr' => $curr]; return view('member.companySD.show', $result); }
/** * 订单来源的数据 */ public function getModel() { if (in_array($this->genre, [1, 2])) { $model = IdeasModel::find($this->fromid); } elseif (in_array($this->genre, [3, 4])) { $model = StoryBoardModel::find($this->fromid); } elseif (in_array($this->genre, [5, 6])) { $model = GoodsModel::find($this->fromid); } return isset($model) ? $model : ''; }