动态控制今日推荐功能
This commit is contained in:
parent
5cb1838162
commit
0e738acbec
|
@ -140,6 +140,8 @@ spec:
|
|||
- $formkit: radio
|
||||
if: "$get(recentTop).value"
|
||||
name: todayRecommend
|
||||
id: todayRecommend
|
||||
key: todayRecommend
|
||||
label: 今日推荐
|
||||
value: false
|
||||
options:
|
||||
|
@ -147,24 +149,30 @@ spec:
|
|||
value: true
|
||||
- label: 隐藏
|
||||
value: false
|
||||
- $formkit: url
|
||||
if: "$get(recentTop).value"
|
||||
name: todayRecommendUrl
|
||||
label: 今日推荐跳转地址
|
||||
placeholder: 请输入地址
|
||||
validation: "url"
|
||||
- $formkit: text
|
||||
if: "$get(recentTop).value"
|
||||
name: todayRecommendTitle
|
||||
label: 今日推荐标题
|
||||
placeholder: 请输入标题
|
||||
value: "今日推荐"
|
||||
- $formkit: url
|
||||
if: "$get(recentTop).value"
|
||||
name: todayRecommendCover
|
||||
label: 今日推荐背景图
|
||||
placeholder: 请输入地址
|
||||
validation: "url"
|
||||
- $formkit: group
|
||||
if: "$get(todayRecommend).value"
|
||||
name: todayRecommendContent
|
||||
label: 公众号
|
||||
value:
|
||||
todayRecommendUrl:
|
||||
todayRecommendTitle:
|
||||
todayRecommendCover:
|
||||
children:
|
||||
- $formkit: url
|
||||
name: todayRecommendUrl
|
||||
label: 今日推荐跳转地址
|
||||
placeholder: 请输入地址
|
||||
validation: "url"
|
||||
- $formkit: text
|
||||
name: todayRecommendTitle
|
||||
label: 今日推荐标题
|
||||
placeholder: 请输入标题
|
||||
value: "今日推荐"
|
||||
- $formkit: url
|
||||
name: todayRecommendCover
|
||||
label: 今日推荐背景图
|
||||
placeholder: 请输入地址
|
||||
validation: "url"
|
||||
|
||||
- group: layout
|
||||
label: 布局
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
th:utext="${theme.config.top.bannersTitleSmall}"></div>
|
||||
</div>
|
||||
|
||||
<!-- 改成后台动态可配置-->
|
||||
<!-- 后台可配置,未配置时使用默认值-->
|
||||
<div class="tags-group-all">
|
||||
<div class="tags-group-wrapper" th:if="${#lists.isEmpty(theme.config.top.bannersIconPair)}">
|
||||
<div class="tags-group-icon-pair">
|
||||
|
|
|
@ -24,13 +24,13 @@
|
|||
<!-- 今日推荐 -->
|
||||
<div class="todayCard" id="todayCard"
|
||||
th:if="${theme.config.top.todayRecommendSwitch}"
|
||||
th:onclick="'window.open('+ ${theme.config.top.todayRecommendUrl} +')'">
|
||||
th:onclick="'window.open('+ ${theme.config.top.todayRecommendContent.todayRecommendUrl} +')'">
|
||||
<div class="todayCard-info">
|
||||
<div class="todayCard-tips">今日推荐</div>
|
||||
<div class="todayCard-title" th:text="${theme.config.top.todayRecommendTitle}"></div>
|
||||
<div class="todayCard-title" th:text="${theme.config.top.todayRecommendContent.todayRecommendTitle}"></div>
|
||||
</div>
|
||||
<div class="todayCard-cover"
|
||||
th:style="'background:url('+ ${theme.config.top.todayRecommendCover} +') no-repeat center/cover'">
|
||||
th:style="'background:url('+ ${theme.config.top.todayRecommendContent.todayRecommendCover} +') no-repeat center/cover'">
|
||||
</div>
|
||||
<div class="banner-button-group">
|
||||
<a class="banner-button" onclick="window.event.cancelBubble=!0;heo.hideTodayCard()">
|
||||
|
|
Loading…
Reference in New Issue