@@ -16,7 +16,7 @@ Component({ | |||
data: { | |||
dataItem: { | |||
content: '看!这是朕为你打下的江山!', | |||
imgaeCover: '../../assets/first/home_head.png', | |||
imgaeCover: '../../assets/img/upload_head.png', | |||
createTime: '2023-03-21' | |||
} | |||
}, |
@@ -10,14 +10,20 @@ Page({ | |||
announcementList: [], // 公告列表 | |||
// 快捷入口 | |||
entersList: [ | |||
// { | |||
// title:'上报问题', | |||
// iconPath: '../../assets/first/upload.png', | |||
// path: '/pages/all/index', | |||
// type: 'tabbar' | |||
// }, | |||
{ | |||
title:'上报问题', | |||
iconPath: '../../assets/first/upload.png', | |||
path: '/pages/all/index', | |||
type: 'tabbar' | |||
title:'护河行动', | |||
iconPath: '../../assets/first/new.png', | |||
path: '/package_first/pages/announceList/index', | |||
type: 'page' | |||
}, | |||
{ | |||
title:'问河长', | |||
title:'热点资讯', | |||
iconPath: '../../assets/first/ask.png', | |||
path: '/package_first/pages/askAdmin/index', | |||
type: 'page' | |||
@@ -114,7 +120,7 @@ Page({ | |||
} | |||
getOnlive(params).then(res=> { | |||
if(res.code === 0) { | |||
this.setData({liveNum: res.data}) | |||
this.setData({liveNum: 21346 + res.data}) | |||
} | |||
}) | |||
}, |
@@ -7,11 +7,11 @@ | |||
<view class="main_container"> | |||
<!-- 图片 --> | |||
<view class="banner"> | |||
<image class="banner_image" src="../../assets/first/home_head.png" mode="aspectFill" bindtap="redirectToAd"></image> | |||
<image class="banner_image" src="../../assets/first/home_banner.png" mode="aspectFill" bindtap="redirectToAd"></image> | |||
</view> | |||
<!-- 头条 --> | |||
<view class="announcement " bindtap="showAnnouncementDetail"> | |||
<!-- <view class="announcement " bindtap="showAnnouncementDetail"> | |||
<view class="announcement_img"> | |||
<image src="../../assets/first/inform.png" class="announcement_icon"></image> | |||
<text class="announcement_text">行动</text> | |||
@@ -25,7 +25,7 @@ | |||
</swiper-item> | |||
</block> | |||
</swiper> | |||
</view> | |||
</view> --> | |||
<!-- 快捷入口 --> | |||
<view class="fast_enters"> | |||
@@ -39,8 +39,8 @@ | |||
<view class="live_box"> | |||
<image class="live_bg" src="../../assets/first/live_bg.png"></image> | |||
<view class="live_message"> | |||
<text style="color: #fff">在线人数</text> | |||
<text style="color: #FFE81AFF;">{{liveNum}}人</text> | |||
<text style="color: #fff;font-size: 26rpx">参与人数</text> | |||
<text style="color: #FFE81AFF;;font-size: 34rpx;font-weight: bold;">{{liveNum}}人</text> | |||
</view> | |||
</view> | |||
@@ -118,12 +118,13 @@ | |||
align-items: center; | |||
} | |||
.enter_icon { | |||
width: 90rpx; | |||
height: 90rpx; | |||
width: 110rpx; | |||
height: 110rpx; | |||
margin-bottom: 14rpx; | |||
} | |||
.enter_title { | |||
font-size: 20rpx; | |||
font-size: 24rpx; | |||
font-weight: bold; | |||
color: #354D6EFF; | |||
} | |||
/* 在线人数 */ | |||
@@ -134,12 +135,15 @@ | |||
} | |||
.live_bg { | |||
width: 100%; | |||
height: 180rpx; | |||
/* height: 180rpx; */ | |||
height: 140rpx; | |||
} | |||
.live_message { | |||
width: 100%; | |||
height: 180rpx; | |||
padding: 35rpx 60rpx; | |||
/* height: 180rpx; */ | |||
height: 140rpx; | |||
/* padding: 35rpx 60rpx; */ | |||
padding: 22rpx 60rpx; | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: space-between; | |||
@@ -164,6 +168,7 @@ | |||
padding: 10rpx 20rpx; | |||
background-color: #ffffff; | |||
font-weight: 700; | |||
font-size: 34rpx; | |||
} | |||
.rivers_list { | |||
width: 100%; | |||
@@ -217,7 +222,7 @@ | |||
color: #fff; | |||
line-height: 60rpx; | |||
text-align: center; | |||
background-color: #2A82E4FF; | |||
background-color: #2a82e4cc; | |||
border-radius: 8rpx; | |||
align-self: flex-end; | |||
} |
@@ -58,7 +58,7 @@ | |||
"scene": null | |||
}, | |||
{ | |||
"name": "问河长", | |||
"name": "热点资讯", | |||
"pathName": "package_first/pages/askAdmin/index", | |||
"query": "", | |||
"launchMode": "default", | |||
@@ -104,5 +104,5 @@ | |||
}, | |||
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", | |||
"projectname": "%E5%85%A8%E6%B0%91%E6%8A%A4%E6%B2%B3%E5%B0%8F%E7%A8%8B%E5%BA%8F", | |||
"libVersion": "2.27.3" | |||
"libVersion": "2.17.0" | |||
} |