Commit b8bf495b by 汪睦雄

'修改文案,爆款专区更改为活动'

parent c47063eb
......@@ -131,9 +131,10 @@ class Project extends Base
});
$newProjects = $newProjects ? collection($newProjects)->visible(['id', 'title', 'poster', 'night_num', 'price', 'vip_price'])->toArray() : [];
//爆款专区-只显示3个
// 爆款专区-只显示3个
// 2019-04-15 littlebear:爆款专区 --> 更改为显示“推荐置顶”的活动
$heatProjects = ProjectModel::all(function ($query) {
$query->where('type', 2)
$query->where('type', 1)
->where('is_transfer', 0)
->where(function ($query) {
//地域
......@@ -153,7 +154,7 @@ class Project extends Base
->limit(6);
});
$heatProjects = $heatProjects ? collection($heatProjects)->visible(['id', 'title', 'poster', 'night_num', 'price', 'vip_price'])->toArray() : [];
// 酒店预订
$businessProjects = ProjectModel::all(function ($query) {
$query->where('catalog_id', 5)
......@@ -405,11 +406,11 @@ class Project extends Base
$endTime = strtotime($project['sign_endtime']);
// 正常
$project['status'] = 0;
$project['status_text'] = '立即报名';
$project['status_text'] = '立即购买';
if (strtotime($project['sign_endtime']) < time()) {
// 已过期
$project['status'] = 1;
$project['status_text'] = '预约下次';
$project['status_text'] = '期待下次';
} else {
if (intval($project['sign_limits']) <= intval($project['sign_num'])) {
// 已售罄
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment