Browse Source

首页改版

feature/societyOrg
lihenian 4 years ago
parent
commit
28473e64e4
  1. 12
      epdc-resident-mp-yushan/app.json
  2. BIN
      epdc-resident-mp-yushan/images/activity.png
  3. BIN
      epdc-resident-mp-yushan/images/association-select.png
  4. BIN
      epdc-resident-mp-yushan/images/discussSelected.png
  5. BIN
      epdc-resident-mp-yushan/images/discussion-active.png
  6. BIN
      epdc-resident-mp-yushan/images/group-active.png
  7. BIN
      epdc-resident-mp-yushan/images/home-active.png
  8. BIN
      epdc-resident-mp-yushan/images/home/add-discussion.png
  9. BIN
      epdc-resident-mp-yushan/images/home/all-service.png
  10. BIN
      epdc-resident-mp-yushan/images/home/avatar.jpg
  11. BIN
      epdc-resident-mp-yushan/images/home/community-education.png
  12. BIN
      epdc-resident-mp-yushan/images/home/community-news.png
  13. BIN
      epdc-resident-mp-yushan/images/home/heart.png
  14. BIN
      epdc-resident-mp-yushan/images/home/notice.png
  15. BIN
      epdc-resident-mp-yushan/images/home/point-ranking.png
  16. BIN
      epdc-resident-mp-yushan/images/home/safe-yushan.png
  17. BIN
      epdc-resident-mp-yushan/images/home/service-company.png
  18. BIN
      epdc-resident-mp-yushan/images/homeSelected.png
  19. BIN
      epdc-resident-mp-yushan/images/mine-active.png
  20. BIN
      epdc-resident-mp-yushan/images/mineSelected.png
  21. BIN
      epdc-resident-mp-yushan/images/property-active.png
  22. BIN
      epdc-resident-mp-yushan/images/propertySelected.png
  23. 123
      epdc-resident-mp-yushan/pages/index/index.js
  24. 12
      epdc-resident-mp-yushan/pages/index/index.json
  25. 98
      epdc-resident-mp-yushan/pages/index/index.wxml
  26. 255
      epdc-resident-mp-yushan/pages/index/index.wxss
  27. 0
      epdc-resident-mp-yushan/pages/index_bk/components/banner/banner.js
  28. 0
      epdc-resident-mp-yushan/pages/index_bk/components/banner/banner.json
  29. 0
      epdc-resident-mp-yushan/pages/index_bk/components/banner/banner.wxml
  30. 0
      epdc-resident-mp-yushan/pages/index_bk/components/banner/banner.wxss
  31. 0
      epdc-resident-mp-yushan/pages/index_bk/components/communityNewsList/communityNewsList.js
  32. 0
      epdc-resident-mp-yushan/pages/index_bk/components/communityNewsList/communityNewsList.json
  33. 0
      epdc-resident-mp-yushan/pages/index_bk/components/communityNewsList/communityNewsList.wxml
  34. 0
      epdc-resident-mp-yushan/pages/index_bk/components/communityNewsList/communityNewsList.wxss
  35. 0
      epdc-resident-mp-yushan/pages/index_bk/components/griderList/griderList.js
  36. 0
      epdc-resident-mp-yushan/pages/index_bk/components/griderList/griderList.json
  37. 0
      epdc-resident-mp-yushan/pages/index_bk/components/griderList/griderList.wxml
  38. 0
      epdc-resident-mp-yushan/pages/index_bk/components/griderList/griderList.wxss
  39. 0
      epdc-resident-mp-yushan/pages/index_bk/components/newsList/newsList.js
  40. 0
      epdc-resident-mp-yushan/pages/index_bk/components/newsList/newsList.json
  41. 0
      epdc-resident-mp-yushan/pages/index_bk/components/newsList/newsList.wxml
  42. 0
      epdc-resident-mp-yushan/pages/index_bk/components/newsList/newsList.wxss
  43. 0
      epdc-resident-mp-yushan/pages/index_bk/components/notice/notice.js
  44. 0
      epdc-resident-mp-yushan/pages/index_bk/components/notice/notice.json
  45. 0
      epdc-resident-mp-yushan/pages/index_bk/components/notice/notice.wxml
  46. 0
      epdc-resident-mp-yushan/pages/index_bk/components/notice/notice.wxss
  47. 0
      epdc-resident-mp-yushan/pages/index_bk/components/project/project.js
  48. 0
      epdc-resident-mp-yushan/pages/index_bk/components/project/project.json
  49. 0
      epdc-resident-mp-yushan/pages/index_bk/components/project/project.wxml
  50. 0
      epdc-resident-mp-yushan/pages/index_bk/components/project/project.wxss
  51. 0
      epdc-resident-mp-yushan/pages/index_bk/components/projectProgress/projectProgress.js
  52. 0
      epdc-resident-mp-yushan/pages/index_bk/components/projectProgress/projectProgress.json
  53. 0
      epdc-resident-mp-yushan/pages/index_bk/components/projectProgress/projectProgress.wxml
  54. 0
      epdc-resident-mp-yushan/pages/index_bk/components/projectProgress/projectProgress.wxss
  55. 0
      epdc-resident-mp-yushan/pages/index_bk/components/sudoku/sudoku.js
  56. 0
      epdc-resident-mp-yushan/pages/index_bk/components/sudoku/sudoku.json
  57. 2
      epdc-resident-mp-yushan/pages/index_bk/components/sudoku/sudoku.wxml
  58. 4
      epdc-resident-mp-yushan/pages/index_bk/components/sudoku/sudoku.wxss
  59. 447
      epdc-resident-mp-yushan/pages/index_bk/index.js
  60. 18
      epdc-resident-mp-yushan/pages/index_bk/index.json
  61. 46
      epdc-resident-mp-yushan/pages/index_bk/index.wxml
  62. 84
      epdc-resident-mp-yushan/pages/index_bk/index.wxss
  63. 9
      epdc-resident-mp-yushan/project.config.json

12
epdc-resident-mp-yushan/app.json

@ -202,38 +202,38 @@
},
"tabBar": {
"color": "#666666",
"selectedColor": "#FF0000",
"selectedColor": "#27be99",
"backgroundColor": "#FFFFFF",
"borderStyle": "white",
"list": [{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "images/home.png",
"selectedIconPath": "images/homeSelected.png"
"selectedIconPath": "images/home-active.png"
},
{
"pagePath": "pages/discussion/discussion",
"text": "有么说么",
"iconPath": "images/discuss.png",
"selectedIconPath": "images/discussSelected.png"
"selectedIconPath": "images/discussion-active.png"
},
{
"pagePath": "pages/association/association",
"text": "左邻右舍",
"iconPath": "images/association.png",
"selectedIconPath": "images/association-select.png"
"selectedIconPath": "images/group-active.png"
},
{
"pagePath": "pages/property/property",
"text": "我的物业",
"iconPath": "images/property.png",
"selectedIconPath": "images/propertySelected.png"
"selectedIconPath": "images/property-active.png"
},
{
"pagePath": "pages/mine/mine",
"text": "我的",
"iconPath": "images/mine.png",
"selectedIconPath": "images/mineSelected.png"
"selectedIconPath": "images/mine-active.png"
}
]
},

BIN
epdc-resident-mp-yushan/images/activity.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
epdc-resident-mp-yushan/images/association-select.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

BIN
epdc-resident-mp-yushan/images/discussSelected.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

BIN
epdc-resident-mp-yushan/images/discussion-active.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
epdc-resident-mp-yushan/images/group-active.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
epdc-resident-mp-yushan/images/home-active.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
epdc-resident-mp-yushan/images/home/add-discussion.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

BIN
epdc-resident-mp-yushan/images/home/all-service.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

BIN
epdc-resident-mp-yushan/images/home/avatar.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

BIN
epdc-resident-mp-yushan/images/home/community-education.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

BIN
epdc-resident-mp-yushan/images/home/community-news.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

BIN
epdc-resident-mp-yushan/images/home/heart.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

BIN
epdc-resident-mp-yushan/images/home/notice.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

BIN
epdc-resident-mp-yushan/images/home/point-ranking.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

BIN
epdc-resident-mp-yushan/images/home/safe-yushan.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

BIN
epdc-resident-mp-yushan/images/home/service-company.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

BIN
epdc-resident-mp-yushan/images/homeSelected.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

BIN
epdc-resident-mp-yushan/images/mine-active.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
epdc-resident-mp-yushan/images/mineSelected.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

BIN
epdc-resident-mp-yushan/images/property-active.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
epdc-resident-mp-yushan/images/propertySelected.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

123
epdc-resident-mp-yushan/pages/index/index.js

@ -29,7 +29,16 @@ Page({
departmentName: '', // 所在网格
isCarryLoad: false,
vaccinationSwitch: false, // 疫苗入口开关
griderList: []
griderList: [],
communityNewsList: [],
currentIndex: 0,
moduleList: [
{ icon: 'https://epdc-yushan.elinkservice.cn/files-pro/20210914/b37b7368b6b64dd5993d096ef1ee33cc.png', tip: '积分排名' },
{ icon: 'https://epdc-yushan.elinkservice.cn/files-pro/20210914/59c1cf60c4214789a6ef3750588de98f.png', tip: '指尖榆山' },
{ icon: 'https://epdc-yushan.elinkservice.cn/files-pro/20210914/9d34f487426841cc8c32c42488c78969.png', tip: '网格队伍' },
{ icon: 'https://epdc-yushan.elinkservice.cn/files-pro/20210914/c6c7c00117ab41eba7d240fcfba5b148.png', tip: '志愿服务' },
{ icon: 'https://epdc-yushan.elinkservice.cn/files-pro/20210914/b884f294e3634f66b7ff36be682046a2.png', tip: '社会组织' }
]
},
onLoad(options) {
if (options.scene) {
@ -74,6 +83,13 @@ Page({
this.getNewsList()
}
},
swiperChange: function (e) {
if (e.detail.source === "touch") {
this.setData({
currentIndex: e.detail.current
})
}
},
// 根据微信code查询用户当前状态
getUserState() {
let that = this
@ -225,61 +241,6 @@ Page({
console.log(err)
})
},
// 九宫格检查状态
// getIndexSudokuState () {
// api.getIndexSudokuState().then(res => {
// console.log('九宫格状态', res)
// let consultAvailable = '0'
// let appraiseAvailable = '0'
// if (res.data.length > 0) {
// res.data.forEach(item => {
// if (item.name === '咨询' && item.availableFlag === '1') {
// consultAvailable = '1'
// } else if (item.name === '干部评价' && item.availableFlag === '1') {
// appraiseAvailable = '1'
// }
// })
// }
// this.setData({
// sudokuState: {
// consultAvailable,
// appraiseAvailable
// }
// })
// }).catch(() => {
// console.log('获取九宫格状态失败')
// this.setData({
// sudokuState: {
// consultAvailable: '0',
// appraiseAvailable: '0'
// }
// })
// })
// },
// 跳转到互帮互助
navigateToHeart() {
if (app.globalData.infoCompleted == 0) {
this.setData({
completeInfoDialogVisible: !this.data.completeInfoDialogVisible
})
return false
}
wx.navigateTo({
url: '/pages/heart/heart'
})
},
// 跳转到左邻右舍
navigateToAssociation() {
if (app.globalData.infoCompleted == 0) {
this.setData({
completeInfoDialogVisible: !this.data.completeInfoDialogVisible
})
return false
}
wx.switchTab({
url: '/pages/association/association',
})
},
// 获取 网格员
gridmanList() {
const params = {
@ -295,29 +256,6 @@ Page({
console.error('网格员列表', err)
})
},
// 跳转到有么说么
navigateToDiscussion() {
wx.switchTab({
url: '/pages/discussion/discussion'
})
},
// 跳转到物业服务
navigateToProperty() {
// if (app.globalData.infoCompleted == 0) {
// this.setData({
// completeInfoDialogVisible: !this.data.completeInfoDialogVisible
// })
// return false
// }
wx.switchTab({
url: '/pages/property/property'
})
},
navigateToSafe() {
wx.navigateTo({
url: '/subpages/safety/pages/index/index',
})
},
// 初始化加载
initLoad() {
this.setData({
@ -329,7 +267,6 @@ Page({
loadMoreVisible: false
})
this.getBannerList()
// this.getIndexSudokuState()
this.getProjectList()
this.getInfoList()
this.getNoticeList()
@ -342,26 +279,12 @@ Page({
changeGrid() {
wx.navigateTo({ url: '/subpages/changegrid/pages/changeGrid/changeGrid' })
},
// 跳转到新闻详情
navigatetoNewsDetail(e) {
wx.navigateTo({ url: `/subpages/home/pages/newsDetail/newsDetail?id=${e.detail.newsId}` })
},
// 跳转到 项目详情
navigatetoItemDetail(e) {
wx.navigateTo({
url: `/subpages/discussion/pages/discussionDetail/discussionDetail?type=project&detailId=${e.detail.itemId}&showClassify=show`
})
},
// 跳转到通知公告列表
navigateToInfoList() {
wx.navigateTo({
url: '/subpages/home/pages/notice/notice'
})
},
// 跳转到消息页面
navigateToNotice() {
wx.navigateTo({ url: '/subpages/home/pages/info/info' })
},
// 消息没有数据
noMore() {
wx.showToast({
@ -370,14 +293,18 @@ Page({
duration: 1000
})
},
// 跳转到消息页面
navigateToNotice() {
wx.navigateTo({ url: '/subpages/home/pages/info/info' })
},
// 跳转到banner详情
navigatetoBannerDetail(e) {
const { id, url, newsFlag } = e.detail
if (newsFlag == '0') {
const { id, url, newsflag } = e.currentTarget.dataset
if (newsflag == '0') {
wx.navigateTo({
url: `/subpages/home/pages/webview/webview?url=${url}`
})
} else if (newsFlag == '1') {
} else if (newsflag == '1') {
wx.navigateTo({
url: `/subpages/home/pages/newsDetail/newsDetail?id=${id}`
})
@ -437,7 +364,7 @@ Page({
homeApi.contentList(params).then(res => {
console.log('社区最新资讯', res)
this.setData({
newsList: res.data
communityNewsList: res.data
})
}).catch(err => {
console.error(err)

12
epdc-resident-mp-yushan/pages/index/index.json

@ -1,18 +1,8 @@
{
"navigationBarTitleText": "现代榆山",
"navigationStyle": "custom",
"navigationBarTextStyle": "white",
"usingComponents": {
"banner": "./components/banner/banner",
"sudoku": "./components/sudoku/sudoku",
"notice": "./components/notice/notice",
"project": "./components/project/project",
"news-list": "./components/newsList/newsList",
"load-more": "../../components/loadMore/loadMore",
"complete-info-dialog": "../../components/completeInfoDialog/completeInfoDialog",
"move-btn": "/components/moveButton/moveButton",
"grider-list": "./components/griderList/griderList",
"project-progress": "./components/projectProgress/projectProgress",
"community-news-list": "./components/communityNewsList/communityNewsList"
"community-news-list": "../index_bk/components/communityNewsList/communityNewsList"
}
}

98
epdc-resident-mp-yushan/pages/index/index.wxml

@ -1,5 +1,5 @@
<view class="header" style="height: {{statusHeight + navigationHeight}}px;">
<image class="header-bg" src="../../images/home/home-status.png" />
<image class="header-bg" src="https://epdc-kongcun.elinkit.com.cn/epdcFile/M00/00/06/rBAB7160-w6AJBH6AAAk6D4lsPc207.png" />
<view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;">
现代榆山
</view>
@ -7,36 +7,80 @@
<view class="home" style="margin-top: {{statusHeight + navigationHeight}}px">
<!-- 所属网格 -->
<view class="belong-grid">
<!-- <image class="belong-grid-bg" src="../../images/home/home-grid-bg.png" /> -->
<view class="grid" bindtap="changeGrid">
<image class="party-logo" src="../../images/home/dang_logo.png" />
<view class="grid-name">{{departmentName}}</view>
<image class="more-grid" src="../../images/home/right-sword.png" />
<image class="belong-grid-bg" src="https://epdc-kongcun.elinkit.com.cn/epdcFile/M00/00/06/rBAB7160-u6ATTx1AAEZrXGthow458.png" />
<view class="newbelong-grid">
<view class="grid" bindtap="changeGrid">
<image class="party-logo" src="https://epdc-kongcun.elinkit.com.cn/epdcFile/M00/00/05/rBAB716nk1aAGwwcAAAFdGPP-1s507.png" />
<view class="grid-name">{{departmentName}}</view>
<image class="more-grid" src="https://epdc-kongcun.elinkit.com.cn/epdcFile/M00/00/05/rBAB716nk3uAAMMcAAADckZSIh0279.png" />
</view>
<view class="notice">
<image wx:if="{{infoList.length == 0}}" bindtap="noMore" src="../../images/home/no-notice.png"></image>
<image wx:elif="{{infoList.length > 0 && unReadNum == 0}}" bindtap="navigateToNotice" src="../../images/home/no-notice.png"></image>
<image wx:elif="{{infoList.length > 0 && unReadNum > 0}}" bindtap="navigateToNotice" src="../../images/home/yes-notice.png"></image>
</view>
</view>
<!-- 202.9.8 把原消息的入口放在这里了 -->
<view class="notice">
<image wx:if="{{infoList.length == 0}}" bindtap="noMore" src="../../images/home/no-notice.png"></image>
<image wx:elif="{{infoList.length > 0 && unReadNum == 0}}" bindtap="navigateToNotice" src="../../images/home/no-notice.png"></image>
<image wx:elif="{{infoList.length > 0 && unReadNum > 0}}" bindtap="navigateToNotice" src="../../images/home/yes-notice.png"></image>
<view class="newImage">
<image src="https://epdc-yushan.elinkservice.cn/files-pro/20210913/32b8ebf77da5499d9e98c605efa4fe64.png"></image>
</view>
</view>
<!-- banner列表 -->
<banner bind:navigatetoBannerDetail="navigatetoBannerDetail" bannerList="{{bannerList}}"></banner>
<!-- 通知公告列表 注 以前是消息列表,通知公告需求还没有定下来,数据获取的还是消息的列表数据 -->
<!-- <notice
bind:navigateToInfoList="navigateToInfoList"
noticeList="{{noticeList}}">
</notice> -->
<!-- sudoku九宫格 -->
<sudoku sudokuState="{{sudokuState}}" bind:navigateToAssociation="navigateToAssociation" bind:navigateToDiscussion="navigateToDiscussion" bind:navigateToProperty="navigateToProperty" bind:navigateToHeart="navigateToHeart" bind:navigateToEducation="navigateToEducation" bind:navigateToSafe="navigateToSafe" bind:navigateToIntegral="navigateToIntegral" bind:navigateToSynthetical="navigateToSynthetical"></sudoku>
<!-- 网格员列表 -->
<grider-list griderList="{{griderList}}"></grider-list>
<!-- 项目列表 -->
<!-- <project bind:navigatetoItemDetail="navigatetoItemDetail" projectList="{{projectList}}"></project> -->
<project-progress projectList="{{projectList}}"></project-progress>
<!-- 新闻列表 -->
<!-- <news-list newsList="{{newsList}}" bind:navigatetoNewsDetail="navigatetoNewsDetail"></news-list> -->
<community-news-list newsList="{{newsList}}"></community-news-list>
<view class="banner">
<swiper circular="{{true}}" autoplay="{{true}}" interval="{{3000}}" current="{{currentIndex}}" bindchange="swiperChange">
<swiper-item wx:for="{{bannerList}}" wx:key="index" wx:for-index="index" wx:for-item="item">
<view class="banner-item" data-id="{{item.id}}" data-url="{{item.url}}" data-newsflag="{{item.newsFlag}}" bindtap="navigatetoBannerDetail">
<image mode="aspectFill" class="banner-img" src="{{item.imgUrl}}" />
<view class="banner-content">
<view class="title">
<view class="title-text">{{item.title}}</view>
</view>
<view class="indication">
<block wx:for="{{bannerList}}" wx:key="index">
<view class="spot{{index == currentIndex? ' active' : ''}}"></view>
</block>
</view>
</view>
</view>
</swiper-item>
</swiper>
</view>
<!-- 服务电话 -->
<view class="cell-phone-container">
<view class="call-phone">
<view class="tip">
<image src="https://epdc-yushan.elinkservice.cn/files-pro/20210914/1bb0b4a7d3524c599b19fcb874929409.png" />
</view>
<view class="num">
<image src="https://epdc-yushan.elinkservice.cn/files-pro/20210914/9930f010ddcd4b11a4261ffad212ac29.png" />
</view>
<view class="call">拨打</view>
</view>
</view>
<!-- 我有事要说、要办、要提 -->
<view class="grid-list">
<view class="grid-item-left">
<image src="https://epdc-yushan.elinkservice.cn/files-pro/20210914/3e2b3a7d912448c8bc0178aa7fdffb60.png" />
</view>
<view class="grid-item-right">
<view class="grid-item">
<image src="https://epdc-yushan.elinkservice.cn/files-pro/20210914/1c514f1965594c6cba008227e4db6889.png" />
</view>
<view class="grid-item">
<image src="https://epdc-yushan.elinkservice.cn/files-pro/20210914/1b4bc38e6169415fbcf1e742476bebd8.png" />
</view>
</view>
</view>
<!-- 积分排名、指尖榆山、网格队伍、志愿服务、社会组织模块 -->
<view class="module-list">
<view class="module-item" wx:for="{{moduleList}}" wx:key="index" wx:for-item="item">
<view class="icon">
<image src="{{item.icon}}" />
</view>
<view class="tip">{{item.tip}}</view>
</view>
</view>
<!-- 最新资讯 -->
<community-news-list newsList="{{communityNewsList}}"></community-news-list>
<!-- 加载更多提示 -->
<load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more>
<!-- 完善过信息提示框 -->

255
epdc-resident-mp-yushan/pages/index/index.wxss

@ -12,6 +12,7 @@ page {
left: 0;
z-index: 1000;
}
.header .header-bg {
width: 100%;
height: 100%;
@ -20,28 +21,30 @@ page {
left: 0;
top: 0;
}
.header .navigation {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
color: rgba(255,255,255, 0.9);
color: rgba(255, 255, 255, 0.9);
font-size: 32rpx;
position: relative;
z-index: 100;
letter-spacing: 2rpx;
}
.home {
width: 100%;
}
.belong-grid {
width: 100%;
height: 100rpx;
height: 160rpx;
position: relative;
}
.belong-grid .newbelong-grid {
display: flex;
justify-content: space-between;
align-items: center;
}
.belong-grid .belong-grid-bg {
width: 100%;
height: 100%;
@ -50,35 +53,247 @@ page {
left: 0;
z-index: 10;
}
.belong-grid .grid {
width: calc(100% - 50rpx);
height: 100%;
.belong-grid .newbelong-grid .grid {
/* width: 90%; */
width: calc(100% - 240rpx);
height: 34rpx;
position: relative;
z-index: 100;
display: flex;
align-items: center;
}
.belong-grid .newbelong-grid .grid .party-logo {
width: 24rpx;
height: 30rpx;
margin: 0 14rpx 0 22rpx;
}
.belong-grid .newbelong-grid .grid .grid-name {
font-size: 32rpx;
color: #fff;
}
.belong-grid .newbelong-grid .grid .more-grid {
width: 16rpx;
height: 22rpx;
margin-left: 10rpx;
margin-top: 5rpx;
}
.belong-grid .notice {
width: 40rpx;
height: 40rpx;
margin-right: 10px;
position: relative;
z-index: 100;
}
.belong-grid .notice image{
width: 40rpx;
height: 40rpx;
}
.belong-grid .grid .party-logo {
width: 32rpx;
height: 32rpx;
.belong-grid .newImage {
position: relative;
height: calc(100% - 34rpx);
z-index: 999;
display: flex;
align-items: center;
justify-content: center;
}
.belong-grid .newImage image {
width: 576rpx;
height: 52rpx;
}
.banner {
width: 100%;
height: 340rpx;
}
.banner swiper {
width: 100%;
height: 340rpx;
}
.banner-item {
width: 100%;
height: 340rpx;
position: relative;
}
.banner-item .banner-img {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.banner-item .banner-content {
position: relative;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 100;
display: flex;
align-items: flex-end;
}
.banner-item .banner-content .title {
width: 100%;
height: 91rpx;
background: rgba(0, 0, 0, 0.4);
box-sizing: border-box;
padding: 0 20rpx;
display: flex;
justify-content: space-between;
}
.banner-item .banner-content .title .title-text {
width: 75%;
color: #fff;
font-size: 26rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-top: 10rpx;
}
.indication {
height: 70rpx;
display: flex;
position: absolute;
right: 20rpx;
flex-direction: row;
justify-content: center;
}
.spot {
width: 10rpx;
height: 10rpx;
border-radius: 50%;
margin-right: 10rpx;
background-color: #c6c6c8;
}
.spot.active {
width: 10rpx;
height: 10rpx;
border-radius: 50%;
background-color: #fff;
}
.cell-phone-container {
width: 100%;
background: #fff;
box-sizing: border-box;
padding: 0 24rpx;
}
.call-phone {
width: 100%;
height: 102rpx;
position: relative;
z-index: 888;
margin-top: -31rpx;
border-radius: 10rpx;
background: rgba(253, 253, 253, 1);
box-shadow: 0px 4px 29px 0px rgba(63, 63, 63, 0.1);
box-sizing: border-box;
padding: 0 20rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.call-phone image {
width: 100%;
height: 100%;
float: left;
}
.call-phone .tip {
width: 216rpx;
height: 35rpx;
margin-left: 20rpx;
}
.belong-grid .grid .grid-name {
margin-left: 10rpx;
font-size: 32rpx;
.call-phone .num {
width: 229rpx;
height: 50rpx;
margin-left: -40rpx;
}
.belong-grid .grid .more-grid {
width: 18rpx;
height: 26rpx;
margin-left: 10rpx;
margin-top: 6rpx;
.call-phone .call {
color: #fff;
font-style: oblique;
font-weight: bolder;
font-size: 26rpx;
letter-spacing: 4rpx;
width: 110rpx;
height: 60rpx;
border-radius: 30rpx;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(to right, #feba03, #ff9701);
margin-right: 20rpx;
}
.grid-list {
width: 100%;
box-sizing: border-box;
padding: 30rpx 10px 0;
display: flex;
align-items: center;
background: #fff;
}
.grid-list image {
width: 100%;
height: 100%;
float: left;
}
.grid-list .grid-item-left, .grid-list .grid-item-right {
width: 50%;
height: 278rpx;
}
.grid-list .grid-item-right .grid-item {
width: 100%;
height: 139rpx;
}
.module-list {
width: 100%;
display: flex;
align-items: center;
justify-content: space-around;
box-sizing: border-box;
padding: 24rpx 20rpx 30rpx;
background: #ffF;
}
.module-list .module-item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.module-list .module-item .icon {
width: 126rpx;
height: 126rpx;
}
.module-list .module-item .icon image {
width: 100%;
height: 100%;
float: left;
}
.module-list .module-item .tip {
font-size: 28rpx;
color: #3f3f3f;
line-height: 50 rpx;
}

0
epdc-resident-mp-yushan/pages/index/components/banner/banner.js → epdc-resident-mp-yushan/pages/index_bk/components/banner/banner.js

0
epdc-resident-mp-yushan/pages/index/components/banner/banner.json → epdc-resident-mp-yushan/pages/index_bk/components/banner/banner.json

0
epdc-resident-mp-yushan/pages/index/components/banner/banner.wxml → epdc-resident-mp-yushan/pages/index_bk/components/banner/banner.wxml

0
epdc-resident-mp-yushan/pages/index/components/banner/banner.wxss → epdc-resident-mp-yushan/pages/index_bk/components/banner/banner.wxss

0
epdc-resident-mp-yushan/pages/index/components/communityNewsList/communityNewsList.js → epdc-resident-mp-yushan/pages/index_bk/components/communityNewsList/communityNewsList.js

0
epdc-resident-mp-yushan/pages/index/components/communityNewsList/communityNewsList.json → epdc-resident-mp-yushan/pages/index_bk/components/communityNewsList/communityNewsList.json

0
epdc-resident-mp-yushan/pages/index/components/communityNewsList/communityNewsList.wxml → epdc-resident-mp-yushan/pages/index_bk/components/communityNewsList/communityNewsList.wxml

0
epdc-resident-mp-yushan/pages/index/components/communityNewsList/communityNewsList.wxss → epdc-resident-mp-yushan/pages/index_bk/components/communityNewsList/communityNewsList.wxss

0
epdc-resident-mp-yushan/pages/index/components/griderList/griderList.js → epdc-resident-mp-yushan/pages/index_bk/components/griderList/griderList.js

0
epdc-resident-mp-yushan/pages/index/components/griderList/griderList.json → epdc-resident-mp-yushan/pages/index_bk/components/griderList/griderList.json

0
epdc-resident-mp-yushan/pages/index/components/griderList/griderList.wxml → epdc-resident-mp-yushan/pages/index_bk/components/griderList/griderList.wxml

0
epdc-resident-mp-yushan/pages/index/components/griderList/griderList.wxss → epdc-resident-mp-yushan/pages/index_bk/components/griderList/griderList.wxss

0
epdc-resident-mp-yushan/pages/index/components/newsList/newsList.js → epdc-resident-mp-yushan/pages/index_bk/components/newsList/newsList.js

0
epdc-resident-mp-yushan/pages/index/components/newsList/newsList.json → epdc-resident-mp-yushan/pages/index_bk/components/newsList/newsList.json

0
epdc-resident-mp-yushan/pages/index/components/newsList/newsList.wxml → epdc-resident-mp-yushan/pages/index_bk/components/newsList/newsList.wxml

0
epdc-resident-mp-yushan/pages/index/components/newsList/newsList.wxss → epdc-resident-mp-yushan/pages/index_bk/components/newsList/newsList.wxss

0
epdc-resident-mp-yushan/pages/index/components/notice/notice.js → epdc-resident-mp-yushan/pages/index_bk/components/notice/notice.js

0
epdc-resident-mp-yushan/pages/index/components/notice/notice.json → epdc-resident-mp-yushan/pages/index_bk/components/notice/notice.json

0
epdc-resident-mp-yushan/pages/index/components/notice/notice.wxml → epdc-resident-mp-yushan/pages/index_bk/components/notice/notice.wxml

0
epdc-resident-mp-yushan/pages/index/components/notice/notice.wxss → epdc-resident-mp-yushan/pages/index_bk/components/notice/notice.wxss

0
epdc-resident-mp-yushan/pages/index/components/project/project.js → epdc-resident-mp-yushan/pages/index_bk/components/project/project.js

0
epdc-resident-mp-yushan/pages/index/components/project/project.json → epdc-resident-mp-yushan/pages/index_bk/components/project/project.json

0
epdc-resident-mp-yushan/pages/index/components/project/project.wxml → epdc-resident-mp-yushan/pages/index_bk/components/project/project.wxml

0
epdc-resident-mp-yushan/pages/index/components/project/project.wxss → epdc-resident-mp-yushan/pages/index_bk/components/project/project.wxss

0
epdc-resident-mp-yushan/pages/index/components/projectProgress/projectProgress.js → epdc-resident-mp-yushan/pages/index_bk/components/projectProgress/projectProgress.js

0
epdc-resident-mp-yushan/pages/index/components/projectProgress/projectProgress.json → epdc-resident-mp-yushan/pages/index_bk/components/projectProgress/projectProgress.json

0
epdc-resident-mp-yushan/pages/index/components/projectProgress/projectProgress.wxml → epdc-resident-mp-yushan/pages/index_bk/components/projectProgress/projectProgress.wxml

0
epdc-resident-mp-yushan/pages/index/components/projectProgress/projectProgress.wxss → epdc-resident-mp-yushan/pages/index_bk/components/projectProgress/projectProgress.wxss

0
epdc-resident-mp-yushan/pages/index/components/sudoku/sudoku.js → epdc-resident-mp-yushan/pages/index_bk/components/sudoku/sudoku.js

0
epdc-resident-mp-yushan/pages/index/components/sudoku/sudoku.json → epdc-resident-mp-yushan/pages/index_bk/components/sudoku/sudoku.json

2
epdc-resident-mp-yushan/pages/index/components/sudoku/sudoku.wxml → epdc-resident-mp-yushan/pages/index_bk/components/sudoku/sudoku.wxml

@ -1,5 +1,5 @@
<view class="sudoku">
<view class="content">
<view class="sudoku-content">
<view class="item first" hover-stay-time="150" bindtap="navigateToCommunityNews">
<image src="../../../../images/home/community-news.png" />
<view class="name">社区资讯</view>

4
epdc-resident-mp-yushan/pages/index/components/sudoku/sudoku.wxss → epdc-resident-mp-yushan/pages/index_bk/components/sudoku/sudoku.wxss

@ -3,7 +3,7 @@
padding: 0 20rpx;
margin-top: 20rpx;
}
.content {
.sudoku-content {
width: 100%;
display: inline-block;
box-sizing: border-box;
@ -15,6 +15,8 @@
justify-content: center;
align-items: center;
width: 25%;
}
.item:nth-child(n + 3) {
margin-top: 20rpx;
}
.item image {

447
epdc-resident-mp-yushan/pages/index_bk/index.js

@ -0,0 +1,447 @@
const app = getApp()
const api = require('../../utils/api')
const homeApi = require('../../utils/home')
const global = require('../../utils/config')
import { getTimestamp } from '../../utils/common'
import checkoutVersion from '../../utils/checkVersion'
import home from '../../utils/home'
Page({
data: {
statusHeight: 0, // 自定义头部状态栏高度
navigationHeight: 0, // 自定义头部导航栏高度
bannerList: [], // banner列表
newsList: [], // 新闻列表
projectList: [], // 项目列表
infoList: [], // 消息列表
noticeList: [], // 通知公告列表
unReadNum: 0, // 未读数量
loadMoreType: 'none',
loadMoreVisible: false,
pageNo: 1, // 新闻列表-分页页码
pageSize: 10, // 新闻列表-分页页长
timestamp: '', // 时间戳
sudokuState: { // 九宫格显隐状态
consultAvailable: '0', // 网格专员
appraiseAvailable: '0' // 请您监督
},
completeInfoDialogVisible: false, // 完善信息弹框显隐
gridId: '', // 网格id
departmentName: '', // 所在网格
isCarryLoad: false,
vaccinationSwitch: false, // 疫苗入口开关
griderList: [],
communityNewsList: []
},
onLoad(options) {
if (options.scene) {
if (options.scene.indexOf('RP') > -1) {
this.setData({
statusHeight: app.globalData.deviceInfo.statusHeight,
navigationHeight: app.globalData.deviceInfo.navigationHeight,
gridId: options.scene.substring(0, options.scene.length - 2)
})
wx.setStorageSync('redirectToAddIssue', options.scene.substr(options.scene.length - 2, 2))
} else {
this.setData({
statusHeight: app.globalData.deviceInfo.statusHeight,
navigationHeight: app.globalData.deviceInfo.navigationHeight,
gridId: options.scene
})
}
} else {
this.setData({
statusHeight: app.globalData.deviceInfo.statusHeight,
navigationHeight: app.globalData.deviceInfo.navigationHeight,
})
}
this.getUserState()
this.data.isCarryLoad = true
this.getResidentConfig()
},
onTabItemTap() {
this.getUserState()
},
onShow() {
this.getUnreadNum() // 实时获取有无未读消息
// 检查版本更新
checkoutVersion()
},
onReachBottom() {
this.setData({
loadMoreVisible: true
})
if (this.data.loadMoreType === 'loading') {
this.data.pageNo += 1
this.getNewsList()
}
},
// 根据微信code查询用户当前状态
getUserState() {
let that = this
wx.login({
success(res) {
if (res.code) {
let code = res.code
api.getToken(code).then(res => {
const state = res.data.userState
app.globalData.infoCompleted = state
wx.setStorageSync('topGridName', res.data.grid)
wx.setStorageSync('token', res.data.token)
that.setData({
departmentName: res.data.grid
})
// 扫码进入
if (that.data.gridId !== '') {
// 扫的是网格长码
if (that.data.gridId == 'gridLeader') {
wx.redirectTo({
url: '/pages/gridLeaderRegister/gridLeaderRegister'
})
// 扫的是网格码
} else {
wx.redirectTo({
url: '/pages/formid/formid?gid=' + that.data.gridId
})
}
} else {
if (state == '4') {
// 非扫码进入,通过搜索小程序直接进入的情况
wx.redirectTo({
url: '/pages/toRegister/toRegister'
})
} else {
if (wx.getStorageSync('redirectToAddIssue')) {
wx.navigateTo({
url: '/subpages/discussion/pages/addIssue/addIssue'
})
} else {
that.initLoad()
}
}
}
})
} else {
console.log('登录失败' + res.errMsg)
}
}
})
},
// 获取banner列表
getBannerList() {
api.bannerList('0').then(res => {
console.log('首页banner列表', res)
this.setData({
bannerList: res.data
})
}).catch(() => {
console.log('获取banner列表失败')
this.setData({
bannerList: []
})
})
},
// 获取新闻列表
getNewsList() {
let para = {
pageIndex: this.data.pageNo,
pageSize: this.data.pageSize,
timestamp: this.data.timestamp,
categoryCode: ""
}
api.newsList(para).then((res) => {
console.log('首页新闻列表', res)
this.setData({
loadMoreType: res.data.length === this.data.pageSize ? 'loading' : 'none',
newsList: this.data.newsList.concat(res.data)
})
}).catch(() => {
console.log('首页新闻列表获取失败')
this.setData({
loadMoreType: 'none',
newsList: []
})
})
},
// 获取项目列表
getProjectList() {
const para = {
pageIndex: 1,
pageSize: 10,
timestamp: this.data.timestamp,
searchContent: '',
firstCategoryCode: ''
}
api.getProjectList(para).then(res => {
console.log('项目列表', res)
this.setData({
projectList: res.data,
})
}).catch(() => {
console.log('获取项目列表失败')
this.setData({
projectList: []
})
})
},
// 获取最新一条消息-主要获取消息未读数
getUnreadNum() {
api.getFirstInfo().then(res => {
console.log('获取消息未读数', res)
this.setData({
unReadNum: res.data.amount
})
}).catch(() => {
console.log('获取消息未读数失败')
})
},
// 获取消息列表
getInfoList() {
let para = {
pageIndex: 1,
pageSize: 10,
timestamp: this.data.timestamp
}
homeApi.getInfoList(para).then(res => {
console.log('消息列表', res)
this.setData({
infoList: res.data
})
}).catch((err) => {
console.log('获取消息列表失败')
})
},
// 获取通知公告列表
getNoticeList() {
let para = {
pageIndex: 1,
pageSize: 10,
timestamp: this.data.timestamp
}
homeApi.getNoticeList(para).then(res => {
this.setData({
noticeList: res.data
})
}).catch(err => {
console.log(err)
})
},
// 九宫格检查状态
// getIndexSudokuState () {
// api.getIndexSudokuState().then(res => {
// console.log('九宫格状态', res)
// let consultAvailable = '0'
// let appraiseAvailable = '0'
// if (res.data.length > 0) {
// res.data.forEach(item => {
// if (item.name === '咨询' && item.availableFlag === '1') {
// consultAvailable = '1'
// } else if (item.name === '干部评价' && item.availableFlag === '1') {
// appraiseAvailable = '1'
// }
// })
// }
// this.setData({
// sudokuState: {
// consultAvailable,
// appraiseAvailable
// }
// })
// }).catch(() => {
// console.log('获取九宫格状态失败')
// this.setData({
// sudokuState: {
// consultAvailable: '0',
// appraiseAvailable: '0'
// }
// })
// })
// },
// 跳转到互帮互助
navigateToHeart() {
if (app.globalData.infoCompleted == 0) {
this.setData({
completeInfoDialogVisible: !this.data.completeInfoDialogVisible
})
return false
}
wx.navigateTo({
url: '/pages/heart/heart'
})
},
// 跳转到左邻右舍
navigateToAssociation() {
if (app.globalData.infoCompleted == 0) {
this.setData({
completeInfoDialogVisible: !this.data.completeInfoDialogVisible
})
return false
}
wx.switchTab({
url: '/pages/association/association',
})
},
// 获取 网格员
gridmanList() {
const params = {
pageIndex: 1,
pageSize: 10
}
api.gridmanList(params).then(res => {
console.log('网格员列表', res)
this.setData({
griderList: res.data
})
}).catch(err => {
console.error('网格员列表', err)
})
},
// 跳转到有么说么
navigateToDiscussion() {
wx.switchTab({
url: '/pages/discussion/discussion'
})
},
// 跳转到物业服务
navigateToProperty() {
// if (app.globalData.infoCompleted == 0) {
// this.setData({
// completeInfoDialogVisible: !this.data.completeInfoDialogVisible
// })
// return false
// }
wx.switchTab({
url: '/pages/property/property'
})
},
navigateToSafe() {
wx.navigateTo({
url: '/subpages/safety/pages/index/index',
})
},
// 初始化加载
initLoad() {
this.setData({
pageNo: 1,
pageSize: 10,
timestamp: getTimestamp(),
newsList: [],
loadMoreType: 'loading',
loadMoreVisible: false
})
this.getBannerList()
// this.getIndexSudokuState()
this.getProjectList()
this.getInfoList()
this.getNoticeList()
this.getUnreadNum()
this.getNewsList()
this.gridmanList()
this.contentList()
},
// 切换网格,跳转到网格列表
changeGrid() {
wx.navigateTo({ url: '/subpages/changegrid/pages/changeGrid/changeGrid' })
},
// 跳转到新闻详情
navigatetoNewsDetail(e) {
wx.navigateTo({ url: `/subpages/home/pages/newsDetail/newsDetail?id=${e.detail.newsId}` })
},
// 跳转到 项目详情
navigatetoItemDetail(e) {
wx.navigateTo({
url: `/subpages/discussion/pages/discussionDetail/discussionDetail?type=project&detailId=${e.detail.itemId}&showClassify=show`
})
},
// 跳转到通知公告列表
navigateToInfoList() {
wx.navigateTo({
url: '/subpages/home/pages/notice/notice'
})
},
// 跳转到消息页面
navigateToNotice() {
wx.navigateTo({ url: '/subpages/home/pages/info/info' })
},
// 消息没有数据
noMore() {
wx.showToast({
title: "暂无更多消息~",
icon: "none",
duration: 1000
})
},
// 跳转到banner详情
navigatetoBannerDetail(e) {
const { id, url, newsFlag } = e.detail
if (newsFlag == '0') {
wx.navigateTo({
url: `/subpages/home/pages/webview/webview?url=${url}`
})
} else if (newsFlag == '1') {
wx.navigateTo({
url: `/subpages/home/pages/newsDetail/newsDetail?id=${id}`
})
}
},
//积分排行
navigateToIntegral() {
api.getUserInfo().then(res => {
// console.log('用户信息', res)
wx.navigateTo({
url: "/subpages/integralCentre/pages/index/index?points=" + res.data.points
})
}).catch(err => {
console.log(err)
})
},
//社区教育
navigateToEducation() {
wx.navigateTo({
url: '/subpages/education/pages/index/index'
})
},
navigateToSynthetical() {
wx.navigateTo({
url: '/subpages/education/pages/healthyLife/healthyLife?page=zhfw'
})
},
// 获取疫苗配置
getResidentConfig() {
homeApi.getResidentConfig().then(res => {
if (res.code === 0 && res.msg === "success") {
res.data.forEach(item => {
if (item.residentType === "vaccination_config" && item.residentCode === "vaccination_switch") {
this.setData({
vaccinationSwitch: item.residentValue === 'on'
})
}
})
}
}).catch(err => {
console.log(err)
})
},
//疫苗接种
toVaccines() {
wx.navigateTo({
url: '/subpages/extend/pages/vaccines/vaccines'
})
},
// 获取最新社区资讯
contentList() {
const params = {
pageIndex: 1,
pageSize: 5,
typeId: ''
}
homeApi.contentList(params).then(res => {
console.log('社区最新资讯', res)
this.setData({
communityNewsList: res.data
})
}).catch(err => {
console.error(err)
})
}
})

18
epdc-resident-mp-yushan/pages/index_bk/index.json

@ -0,0 +1,18 @@
{
"navigationBarTitleText": "现代榆山",
"navigationStyle": "custom",
"navigationBarTextStyle": "white",
"usingComponents": {
"banner": "./components/banner/banner",
"sudoku": "./components/sudoku/sudoku",
"notice": "./components/notice/notice",
"project": "./components/project/project",
"news-list": "./components/newsList/newsList",
"load-more": "../../components/loadMore/loadMore",
"complete-info-dialog": "../../components/completeInfoDialog/completeInfoDialog",
"move-btn": "/components/moveButton/moveButton",
"grider-list": "./components/griderList/griderList",
"project-progress": "./components/projectProgress/projectProgress",
"community-news-list": "./components/communityNewsList/communityNewsList"
}
}

46
epdc-resident-mp-yushan/pages/index_bk/index.wxml

@ -0,0 +1,46 @@
<view class="header" style="height: {{statusHeight + navigationHeight}}px;">
<image class="header-bg" src="../../images/home/home-status.png" />
<view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;">
现代榆山
</view>
</view>
<view class="home" style="margin-top: {{statusHeight + navigationHeight}}px">
<!-- 所属网格 -->
<view class="belong-grid">
<!-- <image class="belong-grid-bg" src="../../images/home/home-grid-bg.png" /> -->
<view class="grid" bindtap="changeGrid">
<image class="party-logo" src="../../images/home/dang_logo.png" />
<view class="grid-name">{{departmentName}}</view>
<image class="more-grid" src="../../images/home/right-sword.png" />
</view>
<!-- 202.9.8 把原消息的入口放在这里了 -->
<view class="notice">
<image wx:if="{{infoList.length == 0}}" bindtap="noMore" src="../../images/home/no-notice.png"></image>
<image wx:elif="{{infoList.length > 0 && unReadNum == 0}}" bindtap="navigateToNotice" src="../../images/home/no-notice.png"></image>
<image wx:elif="{{infoList.length > 0 && unReadNum > 0}}" bindtap="navigateToNotice" src="../../images/home/yes-notice.png"></image>
</view>
</view>
<!-- banner列表 -->
<banner bind:navigatetoBannerDetail="navigatetoBannerDetail" bannerList="{{bannerList}}"></banner>
<!-- 通知公告列表 注 以前是消息列表,通知公告需求还没有定下来,数据获取的还是消息的列表数据 -->
<!-- <notice
bind:navigateToInfoList="navigateToInfoList"
noticeList="{{noticeList}}">
</notice> -->
<!-- sudoku九宫格 -->
<sudoku sudokuState="{{sudokuState}}" bind:navigateToAssociation="navigateToAssociation" bind:navigateToDiscussion="navigateToDiscussion" bind:navigateToProperty="navigateToProperty" bind:navigateToHeart="navigateToHeart" bind:navigateToEducation="navigateToEducation" bind:navigateToSafe="navigateToSafe" bind:navigateToIntegral="navigateToIntegral" bind:navigateToSynthetical="navigateToSynthetical"></sudoku>
<!-- 网格员列表 -->
<grider-list griderList="{{griderList}}"></grider-list>
<!-- 项目列表 -->
<!-- <project bind:navigatetoItemDetail="navigatetoItemDetail" projectList="{{projectList}}"></project> -->
<project-progress projectList="{{projectList}}"></project-progress>
<!-- 新闻列表 -->
<!-- <news-list newsList="{{newsList}}" bind:navigatetoNewsDetail="navigatetoNewsDetail"></news-list> -->
<community-news-list newsList="{{communityNewsList}}"></community-news-list>
<!-- 加载更多提示 -->
<load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more>
<!-- 完善过信息提示框 -->
<complete-info-dialog completeInfoDialogVisible="{{completeInfoDialogVisible}}"></complete-info-dialog>
</view>
<!-- 悬浮按钮 -->
<move-btn wx:if="{{vaccinationSwitch}}" button-width="142" button-height="164" area-top="120" area-height="90%" img-url="../../images/vaccines.png" bindmovebtnCallBack="toVaccines"></move-btn>

84
epdc-resident-mp-yushan/pages/index_bk/index.wxss

@ -0,0 +1,84 @@
page {
width: 100%;
height: auto;
overflow-y: auto;
background: #f7f7f7;
}
.header {
position: fixed;
width: 100%;
top: 0;
left: 0;
z-index: 1000;
}
.header .header-bg {
width: 100%;
height: 100%;
position: absolute;
z-index: 10;
left: 0;
top: 0;
}
.header .navigation {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
color: rgba(255,255,255, 0.9);
font-size: 32rpx;
position: relative;
z-index: 100;
}
.home {
width: 100%;
}
.belong-grid {
width: 100%;
height: 100rpx;
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
}
.belong-grid .belong-grid-bg {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 10;
}
.belong-grid .grid {
width: calc(100% - 50rpx);
height: 100%;
position: relative;
z-index: 100;
display: flex;
align-items: center;
}
.belong-grid .notice {
width: 40rpx;
height: 40rpx;
margin-right: 10px;
}
.belong-grid .notice image{
width: 40rpx;
height: 40rpx;
}
.belong-grid .grid .party-logo {
width: 32rpx;
height: 32rpx;
margin-left: 20rpx;
}
.belong-grid .grid .grid-name {
margin-left: 10rpx;
font-size: 32rpx;
}
.belong-grid .grid .more-grid {
width: 18rpx;
height: 26rpx;
margin-left: 10rpx;
margin-top: 6rpx;
}

9
epdc-resident-mp-yushan/project.config.json

@ -6,25 +6,30 @@
"setting": {
"urlCheck": false,
"es6": true,
"enhance": false,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
"newFeature": true,
"coverView": true,
"nodeModules": false,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"useMultiFrameRuntime": false,
"useApiHook": false,
"compileHotReLoad": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": false,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"enableEngineNative": false,
"useIsolateContext": false,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,

Loading…
Cancel
Save