diff --git a/epdc-resident-mp-yushan/app.json b/epdc-resident-mp-yushan/app.json
index 3020a95..a2a5da9 100644
--- a/epdc-resident-mp-yushan/app.json
+++ b/epdc-resident-mp-yushan/app.json
@@ -195,7 +195,8 @@
"pages": [
"pages/index/index",
"pages/list/index",
- "pages/detail/detail"
+ "pages/detail/detail",
+ "pages/moduleList/moduleList"
]
},
{
diff --git a/epdc-resident-mp-yushan/pages/toRegister/toRegister.js b/epdc-resident-mp-yushan/pages/toRegister/toRegister.js
index 72d2484..d6dd2a6 100644
--- a/epdc-resident-mp-yushan/pages/toRegister/toRegister.js
+++ b/epdc-resident-mp-yushan/pages/toRegister/toRegister.js
@@ -21,7 +21,7 @@ Page({
}
})
let that = this
- const versionNum = '1.2.23'
+ const versionNum = '1.2.24'
api.getScanSwitch(versionNum).then(function (res) {
console.log(res.data)
let state = res.data ? res.data.scanFlag : '1'
diff --git a/epdc-resident-mp-yushan/subpages/communityNews/pages/detail/detail.json b/epdc-resident-mp-yushan/subpages/communityNews/pages/detail/detail.json
index bcd8d2f..484a89f 100644
--- a/epdc-resident-mp-yushan/subpages/communityNews/pages/detail/detail.json
+++ b/epdc-resident-mp-yushan/subpages/communityNews/pages/detail/detail.json
@@ -1,3 +1,3 @@
{
- "navigationBarTitleText": "资讯详情"
+ "navigationBarTitleText": "详情"
}
\ No newline at end of file
diff --git a/epdc-resident-mp-yushan/subpages/fingertipYushan/pages/index/index.js b/epdc-resident-mp-yushan/subpages/fingertipYushan/pages/index/index.js
index 2ef612f..397bf03 100644
--- a/epdc-resident-mp-yushan/subpages/fingertipYushan/pages/index/index.js
+++ b/epdc-resident-mp-yushan/subpages/fingertipYushan/pages/index/index.js
@@ -83,7 +83,7 @@ Page({
},
goDetails (e) {
wx.navigateTo({
- url: `/subpages/workTodo/pages/list/index?pid=${e.currentTarget.dataset.pid}&name=${e.currentTarget.dataset.name}`,
+ url: `/subpages/workTodo/pages/moduleList/moduleList?pid=${e.currentTarget.dataset.module.id}&typeCode=${e.currentTarget.dataset.module.typeCode}&name=${e.currentTarget.dataset.module.name}&style=${e.currentTarget.dataset.module.moduleStyle}`,
})
}
})
\ No newline at end of file
diff --git a/epdc-resident-mp-yushan/subpages/fingertipYushan/pages/index/index.wxml b/epdc-resident-mp-yushan/subpages/fingertipYushan/pages/index/index.wxml
index da0342d..c57e292 100644
--- a/epdc-resident-mp-yushan/subpages/fingertipYushan/pages/index/index.wxml
+++ b/epdc-resident-mp-yushan/subpages/fingertipYushan/pages/index/index.wxml
@@ -5,8 +5,7 @@
wx:key="index"
wx:for-index="index"
wx:for="{{modulelist}}"
- data-pid="{{item.id}}"
- data-name="{{item.name}}">
+ data-module="{{item}}">
diff --git a/epdc-resident-mp-yushan/subpages/workTodo/images/danwei.png b/epdc-resident-mp-yushan/subpages/workTodo/images/danwei.png
new file mode 100644
index 0000000..51d455d
Binary files /dev/null and b/epdc-resident-mp-yushan/subpages/workTodo/images/danwei.png differ
diff --git a/epdc-resident-mp-yushan/subpages/workTodo/images/eye.png b/epdc-resident-mp-yushan/subpages/workTodo/images/eye.png
new file mode 100644
index 0000000..ee6cbf0
Binary files /dev/null and b/epdc-resident-mp-yushan/subpages/workTodo/images/eye.png differ
diff --git a/epdc-resident-mp-yushan/subpages/workTodo/pages/index/index.js b/epdc-resident-mp-yushan/subpages/workTodo/pages/index/index.js
index 2984794..d5836ef 100644
--- a/epdc-resident-mp-yushan/subpages/workTodo/pages/index/index.js
+++ b/epdc-resident-mp-yushan/subpages/workTodo/pages/index/index.js
@@ -67,8 +67,11 @@ Page({
}
},
goDetails(e) {
+ // wx.navigateTo({
+ // url: `/subpages/workTodo/pages/list/index?pid=${e.currentTarget.dataset.pid}&name=${e.currentTarget.dataset.name}`,
+ // })
wx.navigateTo({
- url: `/subpages/workTodo/pages/list/index?pid=${e.currentTarget.dataset.pid}&name=${e.currentTarget.dataset.name}`,
+ url: `/subpages/workTodo/pages/moduleList/moduleList?pid=${e.currentTarget.dataset.module.id}&typeCode=${e.currentTarget.dataset.module.typeCode}&name=${e.currentTarget.dataset.module.name}&style=${e.currentTarget.dataset.module.moduleStyle}`,
})
},
toJoinVolunteerOrg() {
diff --git a/epdc-resident-mp-yushan/subpages/workTodo/pages/index/index.wxml b/epdc-resident-mp-yushan/subpages/workTodo/pages/index/index.wxml
index 7092237..0344c5b 100644
--- a/epdc-resident-mp-yushan/subpages/workTodo/pages/index/index.wxml
+++ b/epdc-resident-mp-yushan/subpages/workTodo/pages/index/index.wxml
@@ -3,8 +3,7 @@
bindtap="goDetails"
wx:key="index"
wx:for="{{modulelist}}"
- data-pid="{{item.id}}"
- data-name="{{item.name}}">
+ data-module="{{item}}">
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+ {{item.noticeTitle}}
+
+ {{item.deptName}}
+ {{item.readingAmount}}
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+ {{item.noticeTitle}}
+
+ {{item.deptName}}
+ {{common.getTimeStr(item.releaseTime)}}
+
+
+
+
+
+
+
+
+ module.exports.getStr = function(content) {
+ return content.replace(getRegExp('<\/?.+?\/?>|[ ]','g'),'')
+ }
+ module.exports.getTimeStr = function(time) {
+ return time.split(' ')[0].replace(getRegExp('-','g'),'.')
+ }
+
\ No newline at end of file
diff --git a/epdc-resident-mp-yushan/subpages/workTodo/pages/moduleList/moduleList.wxss b/epdc-resident-mp-yushan/subpages/workTodo/pages/moduleList/moduleList.wxss
new file mode 100644
index 0000000..aac90d4
--- /dev/null
+++ b/epdc-resident-mp-yushan/subpages/workTodo/pages/moduleList/moduleList.wxss
@@ -0,0 +1,346 @@
+page {
+ background: #f7f7f7;
+ height: auto;
+}
+
+/* 轮播图start */
+.altitle {
+ position: absolute;
+ width: 100%;
+ height: 66rpx;
+ background-color: black;
+ margin-top: 237rpx;
+ border-bottom-right-radius: 16rpx;
+ border-bottom-left-radius: 16rpx;
+ opacity: 0.5;
+ font-size: 22rpx;
+ font-weight: 500;
+ color: rgba(255, 255, 255, 1);
+}
+
+.altitle-name {
+ margin: 10rpx 20rpx;
+}
+
+.container {
+ width: 100vw;
+}
+
+.page-body {
+ padding-top: 30rpx;
+ background: #fff;
+ height: 350rpx;
+}
+
+.page-section {
+ width: 100%;
+ margin-bottom: 60rpx;
+}
+
+.page-section_center {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+}
+
+.page-section:last-child {
+ margin-bottom: 0;
+}
+
+.page-section-gap {
+ box-sizing: border-box;
+ padding: 0 30rpx;
+}
+
+.page-section-spacing {
+ box-sizing: border-box;
+ /* padding: 0 20rpx; */
+ height: 350rpx;
+ background-color: #fff;
+}
+
+.page-section-title {
+ font-size: 28rpx;
+ color: #999;
+ margin-bottom: 10rpx;
+ padding-left: 30rpx;
+ padding-right: 30rpx;
+}
+
+.page-section-gap .page-section-title {
+ padding-left: 0;
+ padding-right: 0;
+}
+
+.swiper-item {
+ display: block;
+ height: 350rpx;
+}
+
+.banner {
+ overflow: hidden;
+ height: 350rpx;
+ display: flex;
+ width: 100%;
+ margin: 0 auto;
+ background-color: #FFF;
+ padding: 44rpx 0;
+}
+
+.banner-item {
+ overflow: hidden;
+ height: 350rpx;
+ display: flex;
+ width: 100%;
+ border-radius: 16rpx;
+ margin-bottom: 8rpx;
+}
+.dots {
+ display: flex;
+ justify-content: center;
+ margin-top: -16rpx;
+ z-index: 999;
+ position: relative;
+}
+
+.dots .dot {
+ width: 8rpx;
+ height: 8rpx;
+ border-radius: 8rpx;
+ margin-left: 10rpx;
+ background: #d2d5da;
+ transition: all 0.3s;
+}
+
+.dots .dot.active {
+ width: 24rpx;
+ background: #fff;
+}
+
+.page-section-title {
+ margin-top: 60rpx;
+ position: relative;
+}
+
+swiper {
+ width: 710rpx;
+ height: 350rpx;
+ margin: 0 auto;
+ box-shadow: 0px 4px 29px 0px rgba(63, 63, 63, 0.1);
+ border-radius: 16rpx;
+ overflow: hidden;
+ -webkit-backface-visibility: hidden;
+ -webkit-transform: translate3d(0, 0, 0);
+}
+
+.video-title {
+ width: 100%;
+ height: 50rpx;
+ line-height: 50rpx;
+ padding-left: 40rpx;
+ color: white;
+ background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0));
+ background: -webkit-linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0));
+ position: absolute;
+ top: 0;
+}
+/* 轮播图end */
+
+/* type-1 start */
+.type-1 {
+ display: flex;
+ flex-wrap: wrap;
+ padding: 20rpx 40rpx;
+ background-color: #ffffff;
+ margin-top: 10rpx;
+}
+.type-1 .list-item {
+ width: 200rpx;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ margin: 20rpx 10rpx;
+}
+.type-1 .list-item .list-icon {
+ width: 60rpx;
+ height: 60rpx;
+}
+.type-1 .list-item .list-name {
+ font-size: 28rpx;
+ color: #333333;
+}
+/* type-1 end */
+
+/* type-2 start */
+.type-2 {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+}
+.type-2 .list-item {
+ width: 710rpx;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin: 10rpx 0;
+ border-radius: 6rpx;
+ background-color: #ffffff;
+ padding: 20rpx;
+ box-sizing: border-box;
+}
+.type-2 .list-item .item-info {
+ width: 420rpx;
+ min-height: 160rpx;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+}
+.type-2 .list-item .item-info .item-info-title {
+ font-size: 32rpx;
+ color: #000000;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-wrap:break-word;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+ display: -webkit-box;
+}
+.type-2 .list-item .item-info .item-info-dept {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-top: 20rpx;
+ font-size: 26rpx;
+ color: #aaaaaa;
+}
+.type-2 .list-item .item-info .item-info-dept .dept {
+ display: flex;
+ align-items: center;
+}
+.type-2 .list-item .item-info .item-info-dept .dept-icon-1{
+ width: 30rpx;
+ height: 30rpx;
+ margin-right: 10rpx;
+}
+.type-2 .list-item .item-info .item-info-dept .read{
+ display: flex;
+ align-items: center;
+ font-size: 24rpx;
+ color: #000000;
+}
+.type-2 .list-item .item-info .item-info-dept .dept-icon-2{
+ width: 28rpx;
+ height: 24rpx;
+ margin-right: 10rpx;
+}
+.type-2 .list-item .list-img {
+ width: 220rpx;
+ height: 146rpx;
+ border-radius: 12rpx;
+}
+/* type-2 end */
+
+/* type-3 start */
+.type-3 {
+ display: flex;
+ flex-wrap: wrap;
+ padding: 20rpx;
+ background-color: #ffffff;
+ margin-top: 10rpx;
+}
+.type-3 .list-item {
+ width: 330rpx;
+ height: 150rpx;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ margin: 20rpx 10rpx;
+ position: relative;
+ border-radius: 14rpx;
+}
+.type-3 .color-0 {
+ background-color: rgba(27, 171, 252, 0.13);
+}
+.type-3 .color-1 {
+ background-color: rgba(255, 100, 92, 0.13);
+}
+.type-3 .color-2 {
+ background-color: rgba(251, 128, 54, 0.13);
+}
+.type-3 .color-3 {
+ background-color: rgba(67, 204, 202, 0.13);
+}
+.type-3 .color-4 {
+ background-color: rgba(184, 159, 150, 0.13);
+}
+.type-3 .color-5 {
+ background-color: rgba(255, 213, 86, 0.13);
+}
+.type-3 .list-item .list-bg {
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ left: 0;
+ top: 0;
+ border-radius: 12rpx;
+ opacity: 0.2;
+}
+.type-3 .list-item .title {
+ margin-left: 30rpx;
+ font-size: 32rpx;
+ color: #333333;
+}
+.type-3 .list-item .content {
+ margin-left: 30rpx;
+ margin-top: 8rpx;
+ font-size: 26rpx;
+ color: #666666;
+ overflow: hidden;
+ text-overflow:ellipsis;
+ white-space: nowrap;
+}
+/* type-3 end */
+
+/* type-4 start */
+.type-4 {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ background-color: #ffffff;
+ margin-top: 10rpx;
+}
+.type-4 .list-item {
+ width: 690rpx;
+ min-height: 150rpx;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ margin: 20rpx 0;
+ border-radius: 6rpx;
+ background-color: #f5f7fa;
+ padding: 20rpx;
+ box-sizing: border-box;
+}
+.type-4 .list-item .item-name {
+ font-size: 34rpx;
+ color: #333333;
+}
+.type-4 .list-item .item-info {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+}
+.type-4 .list-item .item-info .dept{
+ font-size: 28rpx;
+ color: #fba84f;
+}
+.type-4 .list-item .item-info .time{
+ font-size: 28rpx;
+ color: #999999;
+}
+/* type-4 end */