@ -13,4 +13,5 @@
bind:clickCardItem="clickCardItem"/>
</block>
</view>
<view wx:if="{{list.length <= 0}}" class="page_empty">暂无数据</view>
@ -23,4 +23,13 @@
.e_card {
width: 45vw;
margin-bottom: 13px;
}
.page_empty {
width: 100%;
height: 100px;
margin-top: 20px;
font-size: 14px;
color: #aaa;
text-align: center;
@ -10,35 +10,7 @@ Page({
* 页面的初始数据
*/
data: {
list: [
list: [],
{
topicId: '1',
title: "市北区举行国际航运贸易金融创新中心核心区产业建设",
topicImg: "asdsad",
userIcon: "",
userName: "用户名",
time: "刚刚",
commentNum: "33",
},
topicId: "2",
title: "《大众日报》市北区举行国际航运贸易金融创新中心核心区产业建设",
topicImg: "",
time: "1分钟前",
topicId: "3",
title: "青岛医疗人工智能科技创新中心落户市北",
topicImg: "asdsadad",
],
currentPage:1
@ -25,7 +25,7 @@ class HTTP {
// token 拼接到 请求体中
let data = params.data
console.log('请求参数:')
console.log('请求Header和Body参数:')
console.log({token: token, ...data})
wx.request({
url: url,