修改报名专题

This commit is contained in:
lcc
2024-08-11 18:26:19 +08:00
parent 73e2fd94ab
commit 8d2ae810ac
7 changed files with 105 additions and 30 deletions
@@ -14,6 +14,8 @@ class Market_sytopic_module_model extends HD_Model
const TYPE_ENROLL_BANNER = 7; // 报名轮播图
const TYPE_ENROLL_GIFT = 8; // 礼品模块
const TYPE_ENROLL = 9; // 报名模块
const TYPE_ARRAY = [
// self::TYPE_BANNER => '主图',
self::TYPE_DISCOUNT => '轮播报名',
@@ -23,6 +25,7 @@ class Market_sytopic_module_model extends HD_Model
self::TYPE_ARTICLE => '富文本',
self::TYPE_ENROLL_BANNER => '横排轮播图',
self::TYPE_ENROLL_GIFT => '礼品',
self::TYPE_ENROLL => '直接报名',
];
public function __construct()
@@ -45,7 +45,11 @@ class Market_sytopic_module_option_model extends HD_Model
$modelOptionsList = $this->select($where, "FIELD (moduleId,{$modelIdsStr})", 1, 100);
foreach ($modelOptionsList as $item) {
$lists[] = [
'banner' => $item['banner'] ? build_qiniu_image_url($item['banner']) : ''
'id' => $item['id'],
'title' => '',
'popUpType' => $item['popUpType'],
'banner' => $item['banner'] ? build_qiniu_image_url($item['banner']) : '',
'type' => $moduleModel::TYPE_ENROLL_BANNER,
];
}
}