예제 #1
0
 /**
  * 视频预览
  */
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 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);
 }
예제 #4
0
 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);
 }
예제 #5
0
 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);
 }
예제 #6
0
 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);
 }
예제 #7
0
 /**
  * 订单来源的数据
  */
 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 : '';
 }