|
@@ -48,9 +48,9 @@ class BuyhouseController extends WebBaseController
|
|
//房源
|
|
//房源
|
|
$house = TalentHouse::orderBy('updated_at', 'desc')->orderByRaw(DB::raw("FIELD(status,2,1,3)"))->limit(8)->get();
|
|
$house = TalentHouse::orderBy('updated_at', 'desc')->orderByRaw(DB::raw("FIELD(status,2,1,3)"))->limit(8)->get();
|
|
foreach ($house as $v) {
|
|
foreach ($house as $v) {
|
|
|
|
+ $v['status'] = $this->_get_status($v);
|
|
$v['apply_time_start'] = date('Y-m-d', strtotime($v['apply_time_start']));
|
|
$v['apply_time_start'] = date('Y-m-d', strtotime($v['apply_time_start']));
|
|
$v['apply_time_end'] = date('Y-m-d', strtotime($v['apply_time_end']));
|
|
$v['apply_time_end'] = date('Y-m-d', strtotime($v['apply_time_end']));
|
|
- $v['status'] = $this->_get_status($v);
|
|
|
|
$v['status_text'] = $this->house_status[$v['status']];
|
|
$v['status_text'] = $this->house_status[$v['status']];
|
|
$v['status_tag'] = $this->tag_status[$v['status']];
|
|
$v['status_tag'] = $this->tag_status[$v['status']];
|
|
$v['url'] = route('buyhouse.detail', ['id' => $v['id']]);
|
|
$v['url'] = route('buyhouse.detail', ['id' => $v['id']]);
|
|
@@ -111,9 +111,9 @@ class BuyhouseController extends WebBaseController
|
|
{
|
|
{
|
|
$lists = TalentHouse::orderByRaw(DB::raw("FIELD(status,2,1,3)"))->paginate(10);
|
|
$lists = TalentHouse::orderByRaw(DB::raw("FIELD(status,2,1,3)"))->paginate(10);
|
|
foreach ($lists as $v) {
|
|
foreach ($lists as $v) {
|
|
|
|
+ $v['status'] = $this->_get_status($v);
|
|
$v['apply_time_start'] = date('Y-m-d', strtotime($v['apply_time_start']));
|
|
$v['apply_time_start'] = date('Y-m-d', strtotime($v['apply_time_start']));
|
|
$v['apply_time_end'] = date('Y-m-d', strtotime($v['apply_time_end']));
|
|
$v['apply_time_end'] = date('Y-m-d', strtotime($v['apply_time_end']));
|
|
- $v['status'] = $this->_get_status($v);
|
|
|
|
$v['status_text'] = $this->house_status[$v['status']];
|
|
$v['status_text'] = $this->house_status[$v['status']];
|
|
$v['status_tag'] = $this->tag_status[$v['status']];
|
|
$v['status_tag'] = $this->tag_status[$v['status']];
|
|
}
|
|
}
|