Browse Source

调整界面

master
lqq 6 years ago
parent
commit
70e3d53132
  1. 1
      pages/billboards/firm/index.wxml
  2. 9
      pages/billboards/firm/index.wxss
  3. 30
      pages/user/myFavorite/index.js
  4. 2
      utils/http.js

1
pages/billboards/firm/index.wxml

@ -13,4 +13,5 @@
bind:clickCardItem="clickCardItem"/>
</block>
</view>
<view wx:if="{{list.length <= 0}}" class="page_empty">暂无数据</view>
</view>

9
pages/billboards/firm/index.wxss

@ -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;
}

30
pages/user/myFavorite/index.js

@ -10,35 +10,7 @@ Page({
* 页面的初始数据
*/
data: {
list: [
{
topicId: '1',
title: "市北区举行国际航运贸易金融创新中心核心区产业建设",
topicImg: "asdsad",
userIcon: "",
userName: "用户名",
time: "刚刚",
commentNum: "33",
},
{
topicId: "2",
title: "《大众日报》市北区举行国际航运贸易金融创新中心核心区产业建设",
topicImg: "",
userIcon: "",
userName: "用户名",
time: "1分钟前",
commentNum: "33",
},
{
topicId: "3",
title: "青岛医疗人工智能科技创新中心落户市北",
topicImg: "asdsadad",
userIcon: "",
userName: "用户名",
time: "1分钟前",
commentNum: "33",
}
],
list: [],
currentPage:1
},

2
utils/http.js

@ -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,

Loading…
Cancel
Save