Browse Source

首页相关修改和社区资讯页面开发完成

feature/societyOrg
lihenian 4 years ago
parent
commit
36ee0f2afc
  1. 26
      epdc-resident-mp-yushan/app.json
  2. BIN
      epdc-resident-mp-yushan/images/home/add-discussion.png
  3. BIN
      epdc-resident-mp-yushan/images/home/all-service.png
  4. BIN
      epdc-resident-mp-yushan/images/home/association.png
  5. BIN
      epdc-resident-mp-yushan/images/home/avatar.jpg
  6. BIN
      epdc-resident-mp-yushan/images/home/community-education.png
  7. BIN
      epdc-resident-mp-yushan/images/home/community-news.png
  8. BIN
      epdc-resident-mp-yushan/images/home/discussion.png
  9. BIN
      epdc-resident-mp-yushan/images/home/edu.png
  10. BIN
      epdc-resident-mp-yushan/images/home/eye.png
  11. BIN
      epdc-resident-mp-yushan/images/home/heart.png
  12. BIN
      epdc-resident-mp-yushan/images/home/integral.png
  13. BIN
      epdc-resident-mp-yushan/images/home/notice.png
  14. BIN
      epdc-resident-mp-yushan/images/home/point-ranking.png
  15. BIN
      epdc-resident-mp-yushan/images/home/policy.png
  16. BIN
      epdc-resident-mp-yushan/images/home/property.png
  17. BIN
      epdc-resident-mp-yushan/images/home/remark.png
  18. BIN
      epdc-resident-mp-yushan/images/home/right-sword-thin.png
  19. BIN
      epdc-resident-mp-yushan/images/home/safe-yushan.png
  20. BIN
      epdc-resident-mp-yushan/images/home/safe.png
  21. BIN
      epdc-resident-mp-yushan/images/home/service-company.png
  22. BIN
      epdc-resident-mp-yushan/images/home/synthetical-service.png
  23. 5
      epdc-resident-mp-yushan/pages/index/components/communityNewsList/communityNewsList.js
  24. 3
      epdc-resident-mp-yushan/pages/index/components/communityNewsList/communityNewsList.json
  25. 30
      epdc-resident-mp-yushan/pages/index/components/communityNewsList/communityNewsList.wxml
  26. 124
      epdc-resident-mp-yushan/pages/index/components/communityNewsList/communityNewsList.wxss
  27. 5
      epdc-resident-mp-yushan/pages/index/components/griderList/griderList.js
  28. 3
      epdc-resident-mp-yushan/pages/index/components/griderList/griderList.json
  29. 38
      epdc-resident-mp-yushan/pages/index/components/griderList/griderList.wxml
  30. 129
      epdc-resident-mp-yushan/pages/index/components/griderList/griderList.wxss
  31. 5
      epdc-resident-mp-yushan/pages/index/components/projectProgress/projectProgress.js
  32. 3
      epdc-resident-mp-yushan/pages/index/components/projectProgress/projectProgress.json
  33. 75
      epdc-resident-mp-yushan/pages/index/components/projectProgress/projectProgress.wxml
  34. 145
      epdc-resident-mp-yushan/pages/index/components/projectProgress/projectProgress.wxss
  35. 32
      epdc-resident-mp-yushan/pages/index/components/sudoku/sudoku.js
  36. 42
      epdc-resident-mp-yushan/pages/index/components/sudoku/sudoku.wxml
  37. 8
      epdc-resident-mp-yushan/pages/index/components/sudoku/sudoku.wxss
  38. 7
      epdc-resident-mp-yushan/pages/index/index.json
  39. 72
      epdc-resident-mp-yushan/pages/index/index.wxml
  40. 9
      epdc-resident-mp-yushan/project.config.json
  41. 57
      epdc-resident-mp-yushan/project.private.config.json
  42. BIN
      epdc-resident-mp-yushan/subpages/communityNews/images/avatar.jpg
  43. BIN
      epdc-resident-mp-yushan/subpages/communityNews/images/eye.png
  44. 26
      epdc-resident-mp-yushan/subpages/communityNews/pages/index/index.js
  45. 5
      epdc-resident-mp-yushan/subpages/communityNews/pages/index/index.json
  46. 30
      epdc-resident-mp-yushan/subpages/communityNews/pages/index/index.wxml
  47. 142
      epdc-resident-mp-yushan/subpages/communityNews/pages/index/index.wxss
  48. BIN
      epdc-resident-mp-yushan/subpages/discussion/images/reResh.png
  49. 42
      epdc-resident-mp-yushan/subpages/discussion/pages/addIssue/addIssue.js
  50. 12
      epdc-resident-mp-yushan/subpages/discussion/pages/addIssue/addIssue.wxml
  51. 61
      epdc-resident-mp-yushan/subpages/discussion/pages/addIssue/addIssue.wxss

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

@ -18,8 +18,7 @@
"pages/gridLeaderRegister/gridLeaderRegister",
"pages/property/property"
],
"subPackages": [
{
"subPackages": [{
"root": "subpages/home",
"name": "home",
"pages": [
@ -80,7 +79,13 @@
"pages/remarkOrReply/remarkOrReply",
"pages/searchDiscussion/searchDiscussion",
"pages/categoryList/categoryList"
]
],
"plugins": {
"esuaEpdcMpPlugin": {
"version": "0.1.1",
"provider": "wxdd8530c5f4926766"
}
}
},
{
"root": "subpages/mine",
@ -151,6 +156,13 @@
"pages": [
"pages/vaccines/vaccines"
]
},
{
"root": "subpages/communityNews",
"name": "communityNews",
"pages": [
"pages/index/index"
]
}
],
"preloadRule": {
@ -174,15 +186,14 @@
"network": "all",
"packages": ["subpages/property"]
}
},
"tabBar": {
"color": "#666666",
"selectedColor": "#FF0000",
"backgroundColor": "#FFFFFF",
"borderStyle": "white",
"list": [
{
"list": [{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "images/home.png",
@ -221,7 +232,8 @@
"navigationBarTextStyle": "black"
},
"usingComponents": {
"complete-info-dialog": "./components/completeInfoDialog/completeInfoDialog"
"complete-info-dialog": "./components/completeInfoDialog/completeInfoDialog",
"load-more": "/components/loadMore/loadMore"
},
"networkTimeout": {
"request": 60000

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

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/integral.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

BIN
epdc-resident-mp-yushan/images/home/right-sword-thin.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 331 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

5
epdc-resident-mp-yushan/pages/index/components/communityNewsList/communityNewsList.js

@ -0,0 +1,5 @@
Component({
data: {
communityNewsList: [1, 2, 3, 4, 5]
}
})

3
epdc-resident-mp-yushan/pages/index/components/communityNewsList/communityNewsList.json

@ -0,0 +1,3 @@
{
"component": true
}

30
epdc-resident-mp-yushan/pages/index/components/communityNewsList/communityNewsList.wxml

@ -0,0 +1,30 @@
<view class="community-news-list">
<view class="first">
<view class="title">最新资讯</view>
<view class="more">
<view class="tip">更多</view>
<view class="right-sword">
<image src="../../../../images/home/right-sword-thin.png" />
</view>
</view>
</view>
<view class="news-list">
<view class="list-item {{index === 0 ? 'first-item' : ''}}" wx:for="{{communityNewsList}}" wx-key="index" wx:for-item="item" wx:for-index="index">
<view class="news-img">
<image src="../../../../images/home/avatar.jpg" />
</view>
<view class="detail">
<view class="title">青岛市场常委、住址部部长李伟到市北区调研,为了家常标题的长度,凑一下字数,看看有没两行以上的字体</view>
<view class="bottom-detail">
<view class="time">2020.3.26</view>
<view class="page-view">
<view class="page-view-img">
<image src="../../../../images/home/eye.png" />
</view>
<view class="num">236</view>
</view>
</view>
</view>
</view>
</view>
</view>

124
epdc-resident-mp-yushan/pages/index/components/communityNewsList/communityNewsList.wxss

@ -0,0 +1,124 @@
image {
width: 100%;
height: 100%;
float: left;
}
.community-news-list {
width: 100%;
margin-top: 12rpx;
background: #fff;
}
.first {
width: 100%;
height: 85rpx;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: 0 30rpx;
}
.first .title {
font-size: 34rpx;
color: #333333;
}
.first .more {
display: flex;
align-items: center;
justify-content: flex-end;
}
.first .more .tip {
font-size: 28rpx;
color: #c5c5c5;
}
.first .more .right-sword {
width: 14rpx;
height: 22rpx;
margin-left: 4rpx;
}
.news-list {
width: 100%;
background: #fff;
box-sizing: border-box;
padding: 0 30rpx;
}
.news-list .list-item {
width: 100%;
box-sizing: border-box;
padding: 30rpx 0;
display: flex;
align-items: center;
}
.news-list .list-item.first-item {
padding: 0 0 30rpx 0;
}
.news-list .list-item + .list-item {
border-top: 1rpx solid #eaeaea;
}
.news-list .list-item .news-img {
width: 210rpx;
height: 150rpx;
border-radius: 8rpx;
overflow: hidden;
margin-right: 20rpx;
}
.news-list .list-item .detail {
width: calc(100% - 210rpx - 20rpx);
height: 150rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.news-list .list-item .detail .title {
font-size: 34rpx;
color: #3f3f3f;
line-height: 44rpx;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.news-list .list-item .bottom-detail {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.news-list .list-item .bottom-detail .time {
font-size: 22rpx;
letter-spacing: 1px;
color: #aaa;
}
.news-list .list-item .bottom-detail .page-view {
display: flex;
align-items: center;
justify-content: flex-start;
}
.news-list .list-item .bottom-detail .page-view .page-view-img {
width: 30rpx;
height: 24rpx;
margin-right: 12rpx;
}
.news-list .list-item .bottom-detail .page-view .num {
font-size: 24rpx;
letter-spacing: 1px;
color: #aaa;
}

5
epdc-resident-mp-yushan/pages/index/components/griderList/griderList.js

@ -0,0 +1,5 @@
Component({
data: {
griderList: [1, 2, 3, 4, 5]
}
})

3
epdc-resident-mp-yushan/pages/index/components/griderList/griderList.json

@ -0,0 +1,3 @@
{
"component": true
}

38
epdc-resident-mp-yushan/pages/index/components/griderList/griderList.wxml

@ -0,0 +1,38 @@
<view class="grider-list">
<view class="title">网格员在身边</view>
<scroll-view scroll-x="{{true}}">
<view class="grider-item-contaner">
<block wx:for="{{griderList}}" wx-key="index" wx:for-index="index">
<view wx:if="{{index !== griderList.length - 1}}" class="grider-item {{index === 0 ? 'first' : ''}}">
<view class="avatar">
<image src="../../../../images/home/avatar.jpg" />
<view class="grid-leader">网格长</view>
</view>
<view class="name">张扬</view>
<view class="logen">吹响锦详号召,奔向美好生活</view>
<view class="call-phone">
<view class="phone">
<image src="" />
</view>
<view class="tip">有事找我</view>
</view>
</view>
<view wx:else class="item-container">
<view class="grider-item {{index === 0 ? 'first' : ''}}">
<view class="avatar">
<image src="../../../../images/home/avatar.jpg" />
</view>
<view class="name">张扬</view>
<view class="logen">吹响锦详号召,奔向美好生活</view>
<view class="call-phone">
<view class="phone">
<image src="" />
</view>
<view class="tip">有事找我</view>
</view>
</view>
</view>
</block>
</view>
</scroll-view>
</view>

129
epdc-resident-mp-yushan/pages/index/components/griderList/griderList.wxss

@ -0,0 +1,129 @@
.grider-list {
width: 100%;
background: #fff;
margin-top: 12rpx;
}
.grider-list .title {
width: 100%;
height: 80rpx;
line-height: 90rpx;
text-indent: 30rpx;
font-size: 34rpx;
color: #333;
}
.grider-list scroll-view {
width: 100%;
height: calc(390rpx + 55rpx);
}
.grider-list scroll-view .grider-item-contaner {
min-width: auto;
display: flex;
align-items: center;
}
.grider-item {
width: 280rpx;
height: 390rpx;
flex-shrink: 0;
box-shadow: 0rpx 2rpx 24rpx 0rpx
rgba(227, 227, 227, 0.52);
border-radius: 10rpx;
margin: 10px 0px 0px 20rpx;
display: flex;
flex-direction: column;
align-items: center;
box-sizing: border-box;
padding: 0 5%;
overflow: hidden;
}
.grider-item .avatar {
width: 120rpx;
height: 120rpx;
position: relative;
margin-top: 42rpx;
position: relative;
}
.grider-item .avatar .grid-leader {
width: 80rpx;
height: 28rpx;
background-color: #f69635;
border-radius: 14rpx;
font-size: 20rpx;
color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
bottom: -14rpx;
left: calc(50% - 40rpx);
}
.grider-item .avatar image {
border-radius: 50%;
overflow: hidden;
}
.grider-item .name {
font-size: 30rpx;
color: #333333;
height: 52rpx;
line-height: 52rpx;
margin-top: 7rpx;
}
.grider-item .logen {
font-size: 26rpx;
line-height: 36rpx;
color: #aeaeae;
width: 100%;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.call-phone {
margin-top: 20rpx;
width: 160rpx;
height: 52rpx;
background-image: linear-gradient(90deg,
#e3271c 0%,
#f95c2c 100%),
linear-gradient(
#8da5eb,
#8da5eb);
background-blend-mode: normal,
normal;
border-radius: 25rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 26rpx;
color: #ffffff;
}
.grider-item.first {
margin-left: 30rpx;
}
.item-container {
flex-shrink: 0;
width: 310rpx;
height: 390rpx;
margin: 10px 0px 0px 20rpx;
}
.item-container .grider-item {
margin: 0;
}
.item-container .grider-item.first {
margin: 0 0 0 10rpx;
}

5
epdc-resident-mp-yushan/pages/index/components/projectProgress/projectProgress.js

@ -0,0 +1,5 @@
Component({
data: {
projectList: [1, 2, 3, , 4, 5]
}
})

3
epdc-resident-mp-yushan/pages/index/components/projectProgress/projectProgress.json

@ -0,0 +1,3 @@
{
"component": true
}

75
epdc-resident-mp-yushan/pages/index/components/projectProgress/projectProgress.wxml

@ -0,0 +1,75 @@
<view class="project-progress">
<view class="first">
<view class="title">项目进度</view>
<view class="more">
<view class="tip">更多</view>
<view class="right-sword">
<image src="../../../../images/home/right-sword-thin.png" />
</view>
</view>
</view>
<scroll-view scroll-x="{{true}}">
<view class="project-list">
<block wx:for="{{projectList}}" wx-key="index">
<view class="project-item" wx:if="{{index !== projectList.length - 1}}">
<view class="project-img">
<image src="../../../../images/home/avatar.jpg" />
</view>
<view class="content">青岛国际油轮航母区邀请全球区域来参观</view>
<view class="detail">
<view class="left">
<view class="avatar">
<image src="../../../../images/home/avatar.jpg" />
</view>
<view class="name">阜新路74号-王先生</view>
</view>
<view class="right">
<view class="item">
<view class="icon eye">
<image src="../../../../images/home/eye.png" />
</view>
<view class="tip">5632</view>
</view>
<view class="item">
<view class="icon">
<image src="../../../../images/home/remark.png" />
</view>
<view class="tip">610</view>
</view>
</view>
</view>
</view>
<view class="item-container" wx:else>
<view class="project-item">
<view class="project-img">
<image src="../../../../images/home/avatar.jpg" />
</view>
<view class="content">青岛国际油轮航母区邀请全球区域来参观</view>
<view class="detail">
<view class="left">
<view class="avatar">
<image src="../../../../images/home/avatar.jpg" />
</view>
<view class="name">阜新路74号-王先生</view>
</view>
<view class="right">
<view class="item">
<view class="icon eye">
<image src="../../../../images/home/eye.png" />
</view>
<view class="tip">5632</view>
</view>
<view class="item">
<view class="icon">
<image src="../../../../images/home/remark.png" />
</view>
<view class="tip">610</view>
</view>
</view>
</view>
</view>
</view>
</block>
</view>
</scroll-view>
</view>

145
epdc-resident-mp-yushan/pages/index/components/projectProgress/projectProgress.wxss

@ -0,0 +1,145 @@
image {
width: 100%;
height: 100%;
float: left;
}
.project-progress {
width: 100%;
margin-top: 12rpx;
background: #fff;
}
.first {
width: 100%;
height: 85rpx;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: 0 30rpx;
}
.first .title {
font-size: 34rpx;
color: #333333;
}
.first .more {
display: flex;
align-items: center;
justify-content: flex-end;
}
.first .more .tip {
font-size: 28rpx;
color: #c5c5c5;
}
.first .more .right-sword {
width: 14rpx;
height: 22rpx;
margin-left: 4rpx;
}
scroll-view {
width: 100%;
height: 364rpx;
}
scroll-view .project-list {
width: 100%;
display: flex;
align-items: center;
padding-bottom: 30rpx;
}
scroll-view .project-list .project-item {
flex-shrink: 0;
width: 472rpx;
margin-left: 30rpx;
}
scroll-view .project-list .item-container {
flex-shrink: 0;
width: 532rpx;
box-sizing: border-box;
padding-right: 30rpx;
}
scroll-view .project-list .project-item .project-img {
width: 100%;
height: 226rpx;
border-radius: 10rpx 10rpx 0 0;
overflow: hidden;
}
scroll-view .project-list .project-item .content {
font-size: 32rpx;
color: #333;
height: 76rpx;
line-height: 76rpx;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
scroll-view .project-list .project-item .detail {
width: 100%;
height: 32rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
scroll-view .project-list .project-item .detail .left {
display: flex;
align-items: center;
}
scroll-view .project-list .project-item .detail .left .avatar {
width: 30rpx;
height: 30rpx;
border-radius: 50%;
overflow: hidden;
margin-right: 6rpx;
}
scroll-view .project-list .project-item .detail .left .name {
font-size: 20rpx;
color: #444;
}
scroll-view .project-list .project-item .detail .right {
display: flex;
align-items: center;
justify-content: flex-end;
}
scroll-view .project-list .project-item .detail .right .item {
display: flex;
align-items: center;
justify-content: flex-end;
}
scroll-view .project-list .project-item .detail .right .item + .item {
margin-left: 22rpx;
}
scroll-view .project-list .project-item .detail .right .item .icon {
width: 23rpx;
height: 22rpx;
}
scroll-view .project-list .project-item .detail .right .item .icon.eye {
width: 27rpx;
height: 21rpx;
}
scroll-view .project-list .project-item .detail .right .item .tip {
font-size: 20rpx;
color: #999999;
margin-left: 8rpx;
}

32
epdc-resident-mp-yushan/pages/index/components/sudoku/sudoku.js

@ -10,42 +10,52 @@ Component({
},
methods: {
// 跳转到左邻右舍
navigateToAssociation () {
this.triggerEvent('navigateToAssociation')
navigateToCommunityNews() {
wx.navigateTo({
url: '/subpages/communityNews/pages/index/index'
})
},
// 跳转到有么说么
navigateToDiscussion() {
this.triggerEvent('navigateToDiscussion')
wx.navigateTo({
url: '/subpages/discussion/pages/addIssue/addIssue'
})
},
// 跳转到物业服务
navigateToProperty () {
navigateToProperty() {
this.triggerEvent('navigateToProperty')
},
// 跳转到互帮互助
navigateToHeart () {
navigateToHeart() {
this.triggerEvent('navigateToHeart')
},
// 跳转到社区教育
navigateToEducation () {
navigateToEducation() {
this.triggerEvent('navigateToEducation')
// this.triggerEvent('navigateToEducation')
},
// 跳转到平安榆山
navigateToSafe () {
navigateToSafe() {
this.triggerEvent('navigateToSafe')
},
// 跳转到积分排行
navigateToIntegral () {
navigateToIntegral() {
this.triggerEvent('navigateToIntegral')
},
// 跳转到综合服务
navigateToSyntheticalService () {
navigateToSyntheticalService() {
this.triggerEvent('navigateToSynthetical')
},
// 通知公告
navigateToInfoList() {
wx.navigateTo({
url: '/subpages/home/pages/notice/notice'
})
},
// 暂未开放
showNotAvailable () {
showNotAvailable() {
wx.showToast({
icon:'none',
icon: 'none',
title: '暂未开放',
})
},

42
epdc-resident-mp-yushan/pages/index/components/sudoku/sudoku.wxml

@ -1,36 +1,36 @@
<view class="sudoku">
<view class="content">
<view class="item" hover-stay-time="150" bindtap="navigateToAssociation">
<image src="../../../../images/home/association.png" />
<view class="name">左邻右舍</view>
<view class="item first" hover-stay-time="150" bindtap="navigateToCommunityNews">
<image src="../../../../images/home/community-news.png" />
<view class="name">社区资讯</view>
</view>
<view class="item" hover-stay-time="150" bindtap="navigateToDiscussion">
<image src="../../../../images/home/discussion.png" />
<view class="name">有么说么</view>
<view class="item" hover-stay-time="150" bindtap="navigateToDiscussion">
<image src="../../../../images/home/add-discussion.png" />
<view class="name">我要报事</view>
</view>
<view class="item" hover-stay-time="150" bindtap="navigateToProperty">
<image src="../../../../images/home/property.png" />
<view class="name">我的物业</view>
<view class="item" hover-stay-time="150" bindtap="navigateToSafe">
<image src="../../../../images/home/safe-yushan.png" />
<view class="name">平安榆山</view>
</view>
<view class="item" hover-stay-time="150" bindtap="navigateToHeart">
<image src="../../../../images/home/heart.png" />
<view class="name">互帮互助</view>
<view class="item" hover-stay-time="150" bindtap="navigateToProperty">
<image src="../../../../images/home/service-company.png" />
<view class="name">我的物业</view>
</view>
<view class="item" hover-stay-time="150" bindtap="navigateToIntegral">
<image src="../../../../images/home/integral.png" />
<image src="../../../../images/home/point-ranking.png" />
<view class="name">积分排行</view>
</view>
<view class="item" hover-stay-time="150" bindtap="navigateToSafe">
<image src="../../../../images/home/safe.png" />
<view class="name">平安榆山</view>
</view>
<view class="item" hover-stay-time="150" bindtap="navigateToEducation">
<image src="../../../../images/home/edu.png" />
<view class="item" hover-stay-time="150" bindtap="navigateToEducation">
<image src="../../../../images/home/community-education.png" />
<view class="name">社区教育</view>
</view>
<view class="item" hover-stay-time="150" bindtap="navigateToSyntheticalService">
<image src="../../../../images/home/synthetical-service.png" />
<view class="item" hover-stay-time="150" bindtap="navigateToSyntheticalService">
<image src="../../../../images/home/all-service.png" />
<view class="name">综合服务</view>
</view>
<view class="item" hover-stay-time="150" bindtap="navigateToInfoList">
<image src="../../../../images/home/notice.png" />
<view class="name">通知公告</view>
</view>
</view>
</view>

8
epdc-resident-mp-yushan/pages/index/components/sudoku/sudoku.wxss

@ -18,8 +18,12 @@
margin-top: 20rpx;
}
.item image {
width:110rpx;
height:110rpx;
width: 134rpx;
height: 134rpx;
}
.item.first image {
width: 124rpx;
height: 124rpx;
}
.item .name {
font-size: 26rpx;

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

@ -7,9 +7,12 @@
"sudoku": "./components/sudoku/sudoku",
"notice": "./components/notice/notice",
"project": "./components/project/project",
"news-list":"./components/newsList/newsList",
"news-list": "./components/newsList/newsList",
"load-more": "../../components/loadMore/loadMore",
"complete-info-dialog": "../../components/completeInfoDialog/completeInfoDialog",
"move-btn": "/components/moveButton/moveButton"
"move-btn": "/components/moveButton/moveButton",
"grider-list": "./components/griderList/griderList",
"project-progress": "./components/projectProgress/projectProgress",
"community-news-list": "./components/communityNewsList/communityNewsList"
}
}

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

@ -1,11 +1,11 @@
<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 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">
@ -20,57 +20,27 @@
<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
<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>
<!--项目列表-->
<project
bind:navigatetoItemDetail="navigatetoItemDetail"
projectList="{{projectList}}">
</project>
<!--新闻列表-->
<news-list
newsList="{{newsList}}"
bind:navigatetoNewsDetail="navigatetoNewsDetail">
</news-list>
<!--加载更多提示-->
</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></grider-list>
<!-- 项目列表 -->
<!-- <project bind:navigatetoItemDetail="navigatetoItemDetail" projectList="{{projectList}}"></project> -->
<project-progress></project-progress>
<!-- 新闻列表 -->
<!-- <news-list newsList="{{newsList}}" bind:navigatetoNewsDetail="navigatetoNewsDetail"></news-list> -->
<community-news-list></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>
<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>

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

@ -17,18 +17,21 @@
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"useMultiFrameRuntime": false,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": false,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useIsolateContext": true,
"useIsolateContext": false,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
"userConfirmedBundleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": []
"packNpmRelationList": [],
"minifyWXSS": true
},
"compileType": "miniprogram",
"libVersion": "2.10.4",

57
epdc-resident-mp-yushan/project.private.config.json

@ -0,0 +1,57 @@
{
"setting": {},
"condition": {
"plugin": {
"list": []
},
"game": {
"list": []
},
"gamePlugin": {
"list": []
},
"miniprogram": {
"list": [
{
"id": 0,
"name": "带参数二维码",
"pathName": "pages/index/index",
"query": "scene=1169158362718629889&inviteUserId=12345",
"scene": 1011
},
{
"id": 2,
"name": "网格长注册",
"pathName": "pages/index/index",
"query": "scene=gridLeader",
"scene": 1011
},
{
"id": 3,
"name": "补全用户信息",
"pathName": "pages/complete/complete",
"query": "",
"scene": null
},
{
"name": "网格注册",
"pathName": "pages/formid/formid",
"query": "gid=1258691044142047233",
"scene": null
},
{
"name": "pages/index/index",
"pathName": "pages/index/index",
"query": "",
"scene": null
},
{
"name": "subpages/communityNews/pages/index/index",
"pathName": "subpages/communityNews/pages/index/index",
"query": "",
"scene": null
}
]
}
}
}

BIN
epdc-resident-mp-yushan/subpages/communityNews/images/avatar.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

BIN
epdc-resident-mp-yushan/subpages/communityNews/images/eye.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

26
epdc-resident-mp-yushan/subpages/communityNews/pages/index/index.js

@ -0,0 +1,26 @@
Page({
data: {
tabList: [
{ label: '最新资讯', value: '1' },
{ label: '新闻动态', value: '2' },
{ label: '平安榆山', value: '3' },
{ label: '疫情防控', value: '4' },
{ label: '社会新闻', value: '5' },
{ label: '政策解读', value: '6' }
],
currentTab: '1',
loadMoreType: 'none',
loadMoreVisible: false
},
onPageScroll() {
this.setData({
loadMoreVisible: true
})
},
changeTab(e) {
const { tab } = e.currentTarget.dataset
this.setData({
currentTab: tab
})
}
})

5
epdc-resident-mp-yushan/subpages/communityNews/pages/index/index.json

@ -0,0 +1,5 @@
{
"navigationBarTitleText": "社区资讯",
"navigationBarTextStyle": "white",
"navigationBarBackgroundColor": "#bb0300"
}

30
epdc-resident-mp-yushan/subpages/communityNews/pages/index/index.wxml

@ -0,0 +1,30 @@
<view class="community-news">
<scroll-view scroll-x="{{true}}" scroll-with-animation="{{true}}">
<view class="tab-list">
<view hover-class="item-hover" hover-stay-time="250" class="tab-item {{currentTab === item.value ? 'active' : ''}}" wx:for="{{tabList}}" wx-key="index" wx:for-item="item" wx:for-index="index" bindtap="changeTab" data-tab="{{item.value}}">
{{item.label}}
<view class="select-tab"></view>
</view>
</view>
</scroll-view>
<view class="news-list">
<view class="list-item" wx:for="{{[1,2,3, 4, 5, 6, 7, 8]}}" wx-key="index" wx:for-item="item" wx:for-index="index">
<view class="news-img">
<image src="../../images/avatar.jpg" />
</view>
<view class="detail">
<view class="title">青岛市场常委、住址部部长李伟到市北区调研,为了家常标题的长度,凑一下字数,看看有没两行以上的字体</view>
<view class="bottom-detail">
<view class="time">2020.3.26</view>
<view class="page-view">
<view class="page-view-img">
<image src="../../images/eye.png" />
</view>
<view class="num">236</view>
</view>
</view>
</view>
</view>
</view>
<load-more loadMoreVisible="{{loadMoreVisible}}" loadMoreType="{{loadMoreType}}"></load-more>
</view>

142
epdc-resident-mp-yushan/subpages/communityNews/pages/index/index.wxss

@ -0,0 +1,142 @@
image {
width: 100%;
height: 100%;
float: left;
}
.community-news {
width: 100%;
min-height: 100vh;
overflow-y: auto;
background: #f7f7f7;
}
.community-news scroll-view {
width: 100%;
height: 90rpx;
background: #fff;
position: fixed;
top: 0;
left: 0;
}
.community-news scroll-view .tab-list {
display: flex;
align-items: center;
}
.community-news scroll-view .tab-item {
font-size: 28rpx;
color: #999;
line-height: 90rpx;
height: 90rpx;
padding: 0 29rpx;
flex-shrink: 0;
position: relative;
}
.item-hover {
background: #ddd;
}
.community-news scroll-view .tab-item.active {
font-size: 30rpx;
color: #bb0300;
}
.community-news scroll-view .tab-item .select-tab {
width: 40rpx;
height: 6rpx;
background-color: #bb0300;
border-radius: 3rpx;
position: absolute;
bottom: 0px;
left: calc(50% - 20rpx);
display: none;
}
.community-news scroll-view .tab-item.active .select-tab {
display: block;
}
.community-news scroll-view .tab-item + .tab-item {
margin-left: 19rpx;
}
.news-list {
width: 100%;
background: #fff;
margin-top: calc(16rpx + 90rpx);
box-sizing: border-box;
padding: 0 30rpx;
}
.news-list .list-item {
width: 100%;
box-sizing: border-box;
padding: 30rpx 0;
display: flex;
align-items: center;
}
.news-list .list-item + .list-item {
border-top: 1rpx solid #eaeaea;
}
.news-list .list-item .news-img {
width: 210rpx;
height: 150rpx;
border-radius: 8rpx;
overflow: hidden;
margin-right: 20rpx;
}
.news-list .list-item .detail {
width: calc(100% - 210rpx - 20rpx);
height: 150rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.news-list .list-item .detail .title {
font-size: 34rpx;
color: #3f3f3f;
line-height: 44rpx;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.news-list .list-item .bottom-detail {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.news-list .list-item .bottom-detail .time {
font-size: 22rpx;
letter-spacing: 1px;
color: #aaa;
}
.news-list .list-item .bottom-detail .page-view {
display: flex;
align-items: center;
justify-content: flex-start;
}
.news-list .list-item .bottom-detail .page-view .page-view-img {
width: 30rpx;
height: 24rpx;
margin-right: 12rpx;
}
.news-list .list-item .bottom-detail .page-view .num {
font-size: 24rpx;
letter-spacing: 1px;
color: #aaa;
}

BIN
epdc-resident-mp-yushan/subpages/discussion/images/reResh.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

42
epdc-resident-mp-yushan/subpages/discussion/pages/addIssue/addIssue.js

@ -3,6 +3,7 @@ import { $wuxActionSheet } from '../../../../dist/index'
const config = require('../../../../utils/config')
import { addIssue } from '../../utils/api'
const app = getApp()
const esuaEpdcMpPluginInterface = requirePlugin('esuaEpdcMpPlugin')
Page({
data: {
@ -31,6 +32,47 @@ Page({
})
}
},
onShow () {
if (esuaEpdcMpPluginInterface.locationSelectData.choose) {
const { latitude, longitude, address } = esuaEpdcMpPluginInterface.locationSelectData
this.setData({
latitude: latitude,
longitude: longitude,
addressContent: address
})
}
},
// 重新定位
getPosition(){
wx.getSetting({
success (res) {
if (!res.authSetting['scope.userLocation']) {
wx.showModal({
title: '温馨提示',
content: '重选定位需获取您的地理位置,是否去设置打开?',
confirmText: "确认",
cancelText: "取消",
success (res) {
console.log(res);
if (res.confirm) {
wx.openSetting()
} else {
wx.showToast({
title: '请允许获取地理位置后,再重选定位',
icon: 'none',
duration: 2000
})
}
}
})
} else {
wx.navigateTo({
url: 'plugin://esuaEpdcMpPlugin/location_select'
})
}
}
})
},
// 双向绑定 内容输入框
bindTextareaInput (e) {
this.setData({

12
epdc-resident-mp-yushan/subpages/discussion/pages/addIssue/addIssue.wxml

@ -17,9 +17,15 @@
</view>
<view class="issue-location">
<textarea maxlength="80" placeholder="请输入地址" placeholder-class="address-placeholder" value="{{addressContent}}" bindblur="bindAddressInput" bindinput="bindAddressInput"></textarea>
<view class="address">
<image src="../../images/ic_yitidingwei@2x.png" />
<view>议题定位</view>
<view class="flexBox">
<view class="address">
<image src="../../images/ic_yitidingwei@2x.png" />
<view>议题定位</view>
</view>
<view bindtap="getPosition" class="refresh">
<image src="../../images/reResh.png"></image>
<view class="refresh-name">重新定位</view>
</view>
</view>
</view>
<view class="publish-issue">

61
epdc-resident-mp-yushan/subpages/discussion/pages/addIssue/addIssue.wxss

@ -2,6 +2,7 @@ page {
width: 100%;
height: 100vh;
}
.add-issue {
width: 100%;
height: 100%;
@ -18,16 +19,18 @@ page {
box-sizing: border-box;
padding: 30rpx 20rpx 45rpx;
}
.add-issue .issue-content textarea {
width: 100%;
height: 298rpx;
box-sizing: border-box;
padding-bottom:20rpx;
padding-bottom: 20rpx;
font-size: 34rpx;
color: #333;
line-height: 50rpx;
position: relative;
}
.add-issue .issue-content textarea .textarea-placeholder {
font-size: 32rpx;
color: #999;
@ -36,6 +39,7 @@ page {
left: 0;
top: 0;
}
.add-issue .issue-content .image-list {
width: 100%;
display: grid;
@ -44,17 +48,20 @@ page {
grid-gap: 17rpx;
height: 214rpx;
}
.add-issue .issue-content .image-list .image-item {
width: 100%;
height: 100%;
position: relative;
}
.add-issue .issue-content .image-list image {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 8rpx;
}
.add-issue .issue-content .image-list .image-item .loading {
position: absolute;
left: 25%;
@ -62,6 +69,7 @@ page {
width: 50%;
height: 50%;
}
.add-issue .issue-content .image-list .image-item .close {
position: absolute;
top: -10rpx;
@ -79,27 +87,32 @@ page {
box-sizing: border-box;
padding: 34rpx 18rpx 9rpx 25rpx;
}
.add-issue .issue-location .address {
width:100%;
width: 50%;
height: 80rpx;
display: flex;
align-items: center;
}
.add-issue .issue-location textarea {
width:100%;
width: 100%;
height: 88rpx;
color: #333;
font-size: 34rpx;
line-height: 46rpx;
}
.add-issue .issue-location .address-placeholder {
font-size: 32rpx;
color: #999;
}
.add-issue .issue-location .address image {
width: 26rpx;
height:26rpx;
height: 26rpx;
}
.add-issue .issue-location .address view {
color: #999;
font-size: 26rpx;
@ -107,17 +120,18 @@ page {
}
.add-issue .publish-issue {
width:100%;
width: 100%;
height: 84rpx;
display: flex;
justify-content: center;
align-items: center;
margin-top: 180rpx;
}
.add-issue .publish-issue button {
width:560rpx;
width: 560rpx;
height: 84rpx;
line-height:84rpx;
line-height: 84rpx;
text-align: center;
margin: 0;
padding: 0;
@ -127,11 +141,42 @@ page {
font-size: 36rpx;
border-radius: 16rpx;
}
.add-issue .publish-issue .hover-publish {
background:red;
background: red;
}
.wux-actionsheet__button {
font-size: 34rpx !important;
color: #333 !important;
}
/* 重新定位 */
.flexBox {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
box-sizing: border-box;
}
.refresh {
margin-top: 20rpx;
margin-left: 30rpx;
}
.refresh image {
width: 34rpx;
height: 34rpx;
float: left;
position: relative;
top: 5rpx;
}
.refresh-name {
font-size: 28rpx;
font-weight: 500;
color: rgba(0, 179, 152, 1);
float: left;
margin-left: 10rpx;
}
Loading…
Cancel
Save