增加专题底部图片
This commit is contained in:
@@ -45,6 +45,7 @@ class Welcome extends Wx
|
||||
'banner' => $jsonData['banner'] ? build_qiniu_image_url($jsonData['banner']) : '',
|
||||
'bgColor' => $jsonData['bg_color'] ?: '',
|
||||
'buttonType' => $jsonData['button_type'] ? (int)$jsonData['button_type'] : '',
|
||||
'bottom_img' => $jsonData['bottom_img'] ? build_qiniu_image_url($jsonData['bottom_img']) : '',
|
||||
];
|
||||
$moduleLists = $this->module_option_model->getTopicModelOptionsList($this->a_id);
|
||||
$this->data['modules'] = array_values($moduleLists);
|
||||
|
||||
@@ -390,6 +390,9 @@
|
||||
</li>
|
||||
</ul>
|
||||
</aside>
|
||||
<div class="card-module" v-if="info.bottom_img" style="padding:0">
|
||||
<img :src="info.bottom_img" style="width: 100%">
|
||||
</div>
|
||||
<!-- 富文本模块 -->
|
||||
<div v-if="0" class="card-module overflowhidden" style="padding:0;background-color: transparent;">
|
||||
<div class="font-28 line-height-15 color-555" v-html="info.content"></div>
|
||||
|
||||
@@ -65,6 +65,11 @@ class Topic extends BaseController
|
||||
}else{
|
||||
$jsonData['banner'] = [];
|
||||
}
|
||||
if($jsonData['bottom_img']){
|
||||
$jsonData['bottom_img'] = [['uid' => 1, 'fileUrl' => $jsonData['bottom_img'], 'url' => build_qiniu_image_url($jsonData['bottom_img']), 'status' => 'done']];
|
||||
}else{
|
||||
$jsonData['bottom_img'] = [];
|
||||
}
|
||||
$v['status'] = intval($v['status']);
|
||||
$v['sharePhoto'] = $sharePhoto;
|
||||
$v['banner'] = $banner;
|
||||
@@ -131,6 +136,11 @@ class Topic extends BaseController
|
||||
} else {
|
||||
$setJsonData['banner'] = '';
|
||||
}
|
||||
if ($jsonData['bottom_img']) {
|
||||
$setJsonData['bottom_img'] = $jsonData['bottom_img'] ? $jsonData['bottom_img'][0]['fileUrl'] : '';
|
||||
} else {
|
||||
$setJsonData['bottom_img'] = '';
|
||||
}
|
||||
$setJsonData['bg_color'] = $jsonData['bg_color'] ?: '';
|
||||
$setJsonData['button_type'] = $jsonData['button_type'] ?: '';
|
||||
$createTime = date('Y-m-d H:i:s');
|
||||
@@ -185,6 +195,11 @@ class Topic extends BaseController
|
||||
} else {
|
||||
$setJsonData['banner'] = '';
|
||||
}
|
||||
if ($jsonData['bottom_img']) {
|
||||
$setJsonData['bottom_img'] = $jsonData['bottom_img'] ? $jsonData['bottom_img'][0]['fileUrl'] : '';
|
||||
} else {
|
||||
$setJsonData['bottom_img'] = '';
|
||||
}
|
||||
$setJsonData['bg_color'] = $jsonData['bg_color'] ?: '';
|
||||
$setJsonData['button_type'] = $jsonData['button_type'] ?: '';
|
||||
$addData = ['title' => $title, 'banner' => $banner, 'organizationId' => $organizationId, 'sharePhoto' => $sharePhoto,
|
||||
|
||||
Reference in New Issue
Block a user