articleService = $articleService; $this->articleCategoryService = $articleCategoryService; $this->adService = $adService; $this->navigationService = $navigationService; } public function list(Request $request) { $list = [ [ 'id' => 1, 'status' => '进行中', 'project' => '永隆江滨城', 'declare_time' => '2021-01-05 至 2021-02-01', 'address' => '晋新路与拥军路交汇处往北500米', 'apply_time' => '2021-01-05 至 2021-02-01', 'describe' => '这是项目的描述', ] ]; $return_data = [ 'list' => json_encode($list), 'street' => json_encode($this->street), ]; return view('app.content.buyhouse.list', $return_data); } public function click($id) { $rst = $this->articleService->incrementData(['id' => $id], 1, 'click'); $data = ['status' => 0]; if ($rst) { $data = ['status' => 1]; } return response()->json($data); } }