data: { | data: { | ||||
dataItem: { | dataItem: { | ||||
content: '看!这是朕为你打下的江山!', | content: '看!这是朕为你打下的江山!', | ||||
imgaeCover: '../../assets/first/home_head.png', | |||||
imgaeCover: '../../assets/img/upload_head.png', | |||||
createTime: '2023-03-21' | createTime: '2023-03-21' | ||||
} | } | ||||
}, | }, |
announcementList: [], // 公告列表 | announcementList: [], // 公告列表 | ||||
// 快捷入口 | // 快捷入口 | ||||
entersList: [ | 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', | iconPath: '../../assets/first/ask.png', | ||||
path: '/package_first/pages/askAdmin/index', | path: '/package_first/pages/askAdmin/index', | ||||
type: 'page' | type: 'page' | ||||
} | } | ||||
getOnlive(params).then(res=> { | getOnlive(params).then(res=> { | ||||
if(res.code === 0) { | if(res.code === 0) { | ||||
this.setData({liveNum: res.data}) | |||||
this.setData({liveNum: 21346 + res.data}) | |||||
} | } | ||||
}) | }) | ||||
}, | }, |
<view class="main_container"> | <view class="main_container"> | ||||
<!-- 图片 --> | <!-- 图片 --> | ||||
<view class="banner"> | <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> | ||||
<!-- 头条 --> | <!-- 头条 --> | ||||
<view class="announcement " bindtap="showAnnouncementDetail"> | |||||
<!-- <view class="announcement " bindtap="showAnnouncementDetail"> | |||||
<view class="announcement_img"> | <view class="announcement_img"> | ||||
<image src="../../assets/first/inform.png" class="announcement_icon"></image> | <image src="../../assets/first/inform.png" class="announcement_icon"></image> | ||||
<text class="announcement_text">行动</text> | <text class="announcement_text">行动</text> | ||||
</swiper-item> | </swiper-item> | ||||
</block> | </block> | ||||
</swiper> | </swiper> | ||||
</view> | |||||
</view> --> | |||||
<!-- 快捷入口 --> | <!-- 快捷入口 --> | ||||
<view class="fast_enters"> | <view class="fast_enters"> | ||||
<view class="live_box"> | <view class="live_box"> | ||||
<image class="live_bg" src="../../assets/first/live_bg.png"></image> | <image class="live_bg" src="../../assets/first/live_bg.png"></image> | ||||
<view class="live_message"> | <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> | ||||
</view> | </view> | ||||
align-items: center; | align-items: center; | ||||
} | } | ||||
.enter_icon { | .enter_icon { | ||||
width: 90rpx; | |||||
height: 90rpx; | |||||
width: 110rpx; | |||||
height: 110rpx; | |||||
margin-bottom: 14rpx; | margin-bottom: 14rpx; | ||||
} | } | ||||
.enter_title { | .enter_title { | ||||
font-size: 20rpx; | |||||
font-size: 24rpx; | |||||
font-weight: bold; | |||||
color: #354D6EFF; | color: #354D6EFF; | ||||
} | } | ||||
/* 在线人数 */ | /* 在线人数 */ | ||||
} | } | ||||
.live_bg { | .live_bg { | ||||
width: 100%; | width: 100%; | ||||
height: 180rpx; | |||||
/* height: 180rpx; */ | |||||
height: 140rpx; | |||||
} | } | ||||
.live_message { | .live_message { | ||||
width: 100%; | width: 100%; | ||||
height: 180rpx; | |||||
padding: 35rpx 60rpx; | |||||
/* height: 180rpx; */ | |||||
height: 140rpx; | |||||
/* padding: 35rpx 60rpx; */ | |||||
padding: 22rpx 60rpx; | |||||
display: flex; | display: flex; | ||||
flex-direction: column; | flex-direction: column; | ||||
justify-content: space-between; | justify-content: space-between; | ||||
padding: 10rpx 20rpx; | padding: 10rpx 20rpx; | ||||
background-color: #ffffff; | background-color: #ffffff; | ||||
font-weight: 700; | font-weight: 700; | ||||
font-size: 34rpx; | |||||
} | } | ||||
.rivers_list { | .rivers_list { | ||||
width: 100%; | width: 100%; | ||||
color: #fff; | color: #fff; | ||||
line-height: 60rpx; | line-height: 60rpx; | ||||
text-align: center; | text-align: center; | ||||
background-color: #2A82E4FF; | |||||
background-color: #2a82e4cc; | |||||
border-radius: 8rpx; | border-radius: 8rpx; | ||||
align-self: flex-end; | align-self: flex-end; | ||||
} | } |
"scene": null | "scene": null | ||||
}, | }, | ||||
{ | { | ||||
"name": "问河长", | |||||
"name": "热点资讯", | |||||
"pathName": "package_first/pages/askAdmin/index", | "pathName": "package_first/pages/askAdmin/index", | ||||
"query": "", | "query": "", | ||||
"launchMode": "default", | "launchMode": "default", | ||||
}, | }, | ||||
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", | "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", | "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" | |||||
} | } |