|
@@ -17,29 +17,30 @@
|
|
|
<div>精选推荐</div>
|
|
|
</div>
|
|
|
<div class="select-content">
|
|
|
- <div class="select-content-item" th:each="select: ${pageData.results}">
|
|
|
+ <div class="select-content-item" v-for="item in articlerecommendationData.results">
|
|
|
<div class="img-left">
|
|
|
- <img style="width: 100%;height: 100%;" th:src="${select.image}" />
|
|
|
+ <img style="width: 100%;height: 100%;" :src="item.image" />
|
|
|
</div>
|
|
|
<div class="item-content">
|
|
|
<div>
|
|
|
- <div class="item-1" th:text="${select.title}"></div>
|
|
|
- <div class="item-2" th:text="${select.title}"></div>
|
|
|
- <div class="item-3" th:text="${select.title}"></div>
|
|
|
+ <div class="item-1" v-html="item.title"></div>
|
|
|
+ <div class="item-2" v-html="item.title"></div>
|
|
|
+ <div class="item-3" v-html="item.title"></div>
|
|
|
</div>
|
|
|
- <div class="item-4" th:text="${select.title}"></div>
|
|
|
+ <div class="item-4" v-html="item.title"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-if="isPC" class="pageWrap clear" th:if="${pageData.totalRecord} > 0">
|
|
|
- <a class="prev" th:href="'/info/articlerecommendation-1-' + ${pageData.pageNum - 1} + '.html?isSelected'" th:if="${pageData.hasPreviousPage}"></a>
|
|
|
- <template th:each="selectInfo: ${pageData.totalPage}">
|
|
|
- <a th:href="'/info/articlerecommendation-1-' + ${selectInfo} + '.html?isSelected'" th:text="${selectInfo}"></a>
|
|
|
+
|
|
|
+ <div class="pageWrap clear" v-if="isPC && articlerecommendationData.totalRecord > 0">
|
|
|
+ <a class="prev" :href="'/info/articlerecommendation-1-' + (articlerecommendationData.pageNum - 1) + '.html?isSelected'" v-if="articlerecommendationData.hasPreviousPage"></a>
|
|
|
+ <template v-for="item in articlerecommendationData.totalPage">
|
|
|
+ <a :href="'/info/articlerecommendation-1-' + item + '.html?isSelected'" v-text="item"></a>
|
|
|
<!-- <span th:else>···</span>-->
|
|
|
</template>
|
|
|
- <a class="next" th:if="${pageData.hasNextPage}" th:href="'/info/articlerecommendation-1-' + ${pageData.pageNum + 1} + '.html?isSelected'"></a>
|
|
|
- <span>共<b th:text="${pageData.totalPage}"></b>页</span>
|
|
|
+ <a class="next" v-if="articlerecommendationData.hasNextPage" :href="'/info/articlerecommendation-1-' + (articlerecommendationData.pageNum + 1) + '.html?isSelected'"></a>
|
|
|
+ <span>共<b v-text="articlerecommendationData.totalPage"></b>页</span>
|
|
|
<span>跳至</span>
|
|
|
<input v-model="pageInput"/>
|
|
|
<span>页</span>
|
|
@@ -65,12 +66,12 @@
|
|
|
</li>
|
|
|
</ul>
|
|
|
<ul v-else>
|
|
|
- <li th:each="file: ${pageData}">
|
|
|
- <a class="info-item" th:href="${file.ossUrl}">
|
|
|
+ <li v-for="item in listData">
|
|
|
+ <a class="info-item" :href="item.ossUrl">
|
|
|
<div>
|
|
|
<img src="/img/article/PC--pdf.png" style="width: 100%;height: 100%;object-fit: contain;"/>
|
|
|
</div>
|
|
|
- <div th:text="${file.fileName}"></div>
|
|
|
+ <div v-html="item.fileName"></div>
|
|
|
</a>
|
|
|
</li>
|
|
|
</ul>
|