diff --git a/epdc-resident-mp-yushan/app.json b/epdc-resident-mp-yushan/app.json
index 4b7b871..f33ec45 100644
--- a/epdc-resident-mp-yushan/app.json
+++ b/epdc-resident-mp-yushan/app.json
@@ -229,7 +229,8 @@
"name": "mediateHypermarket",
"pages": [
"page/index/index",
- "page/dotGeneral/dotGeneral"
+ "page/dotGeneral/dotGeneral",
+ "page/mtct/mtct"
]
},
{
diff --git a/epdc-resident-mp-yushan/pages/index/index.js b/epdc-resident-mp-yushan/pages/index/index.js
index cb151ce..fa9da72 100644
--- a/epdc-resident-mp-yushan/pages/index/index.js
+++ b/epdc-resident-mp-yushan/pages/index/index.js
@@ -45,8 +45,7 @@ Page({
//志愿服务
{
- icon:
- '../../images/home/sjzg.png',
+ icon:'../../images/home/sjzg.png',
tip: '双肩走格',
module: 'mediateHypermarket',
},
@@ -57,10 +56,21 @@ Page({
},
// {
// icon:
- // 'https://epdc-yushan.elinkservice.cn/files-pro/20220324/1083316800d948b4a8a4206dcb857722.png',
- // tip: '个人中心',
- // module: 'personalCenter',
+ // '../../images/home/mtcs.png',
+ // tip: '矛调超市',
+ // module: 'mediateHypermarket',
// },
+ // {
+ // icon:'../../images/home/jifen.png',
+ // tip: '积分排行',
+ // module: 'mediateHypermarket',
+ // },
+ // {
+ // icon:
+ // 'https://epdc-yushan.elinkservice.cn/files-pro/20220324/1083316800d948b4a8a4206dcb857722.png',
+ // tip: '个人中心',
+ // module: 'personalCenter',
+ // },
// {
// icon:
// 'https://epdc-yushan.elinkservice.cn/files-pro/20211009/ccbab2a8a4a847548a72972770009576.png',
@@ -368,9 +378,7 @@ Page({
.then((res) => {
// console.log('用户信息', res)
wx.navigateTo({
- url:
- '/subpages/integralCentre/pages/index/index?points=' +
- res.data.points,
+ url:'/subpages/mediateHypermarket/page/index/index',
})
})
.catch((err) => {
@@ -481,9 +489,10 @@ Page({
// url: '/subpages/family/pages/index/index',
// })
} else if (module === 'mediateHypermarket') {
- wx.navigateTo({
- url: '/subpages/mediateHypermarket/page/index/index',
- })
+ // wx.navigateTo({
+ // url: '/subpages/mediateHypermarket/page/index/index',
+ // })
+ this.navigateToIntegral()
} else if (module === 'societyOrg') {
wx.navigateTo({
url: '/subpages/societyOrg/pages/orgList/orgList',
diff --git a/epdc-resident-mp-yushan/pages/index/index.wxml b/epdc-resident-mp-yushan/pages/index/index.wxml
index 0831fc5..5f94a40 100644
--- a/epdc-resident-mp-yushan/pages/index/index.wxml
+++ b/epdc-resident-mp-yushan/pages/index/index.wxml
@@ -5,6 +5,7 @@
+
diff --git a/epdc-resident-mp-yushan/pages/index/index.wxss b/epdc-resident-mp-yushan/pages/index/index.wxss
index 4aac9fa..6a59562 100644
--- a/epdc-resident-mp-yushan/pages/index/index.wxss
+++ b/epdc-resident-mp-yushan/pages/index/index.wxss
@@ -48,6 +48,7 @@ justify-content: center;
} */
.header .navigation .header-left {
justify-content: left;
+ width: fit-content !important;
}
.header .navigation hedaer-center image{
width: 150rpx;
diff --git a/epdc-resident-mp-yushan/project.private.config.json b/epdc-resident-mp-yushan/project.private.config.json
index 90c4d0c..8a43f4b 100644
--- a/epdc-resident-mp-yushan/project.private.config.json
+++ b/epdc-resident-mp-yushan/project.private.config.json
@@ -125,7 +125,14 @@
},
{
"name": "",
- "pathName": "subpages/communityNews/pages/detail/detail",
+ "pathName": "pages/index/index",
+ "query": "",
+ "launchMode": "default",
+ "scene": null
+ },
+ {
+ "name": "矛盾解了",
+ "pathName": "subpages/mediateHypermarket/page/index/index",
"query": "",
"launchMode": "default",
"scene": null
@@ -135,5 +142,5 @@
},
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"projectname": "%252525E7%2525258E%252525B0%252525E4%252525BB%252525A3%252525E6%252525A6%25252586%252525E5%252525B1%252525B1-%252525E5%252525B1%25252585%252525E6%252525B0%25252591%252525E7%252525AB%252525AF",
- "libVersion": "2.10.4"
+ "libVersion": "2.33.0"
}
\ No newline at end of file
diff --git a/epdc-resident-mp-yushan/subpages/family/pages/index/index.js b/epdc-resident-mp-yushan/subpages/family/pages/index/index.js
index f226bf1..e45e832 100644
--- a/epdc-resident-mp-yushan/subpages/family/pages/index/index.js
+++ b/epdc-resident-mp-yushan/subpages/family/pages/index/index.js
@@ -181,9 +181,15 @@ chooseTabBar(e) {
if (e.currentTarget.dataset.type === 'resiNew') {
// this.getresiNewList()
} else if (e.currentTarget.dataset.type === 'housePrice') {
- this.data.pageNo = 1
- this.data.pageSize = 10
- this.getHousesalerentinfo()
+ // this.data.pageNo = 1
+ // this.data.pageSize = 10
+ // this.getHousesalerentinfo()
+ // wx.navigateTo({
+ // url: '/subpages/mediateHypermarket/page/index/index' ,
+ // })
+ wx.navigateTo({
+ url: '/subpages/mediateHypermarket/page/mtct/mtct',
+ })
} else if (e.currentTarget.dataset.type === 'groupPrice') {
}else if (e.currentTarget.dataset.type === 'integral'){
diff --git a/epdc-resident-mp-yushan/subpages/family/pages/index/index.wxml b/epdc-resident-mp-yushan/subpages/family/pages/index/index.wxml
index 5676327..efcf132 100644
--- a/epdc-resident-mp-yushan/subpages/family/pages/index/index.wxml
+++ b/epdc-resident-mp-yushan/subpages/family/pages/index/index.wxml
@@ -1,5 +1,5 @@
-
+
@@ -36,17 +36,17 @@
成员新了
-
- 房价涨了
-
+
团购火了
-
+
+ 矛盾解了
+
+
积分多了
-
-
+
@@ -77,7 +77,7 @@
-
+
我要买房
我要租房
@@ -142,7 +142,6 @@
-
diff --git a/epdc-resident-mp-yushan/subpages/family/wxss/family.wxss b/epdc-resident-mp-yushan/subpages/family/wxss/family.wxss
index ff0f847..e7b026a 100644
--- a/epdc-resident-mp-yushan/subpages/family/wxss/family.wxss
+++ b/epdc-resident-mp-yushan/subpages/family/wxss/family.wxss
@@ -112,7 +112,97 @@ page {
box-sizing: border-box;
padding: 100rpx 0 0
}
+.f-wr .housePrice-list {
+ overflow-y: scroll;
+}
+.f-wr .housePrice-list .housePrice-hader{
+ display: flex;
+ padding: 20rpx 61rpx;
+ background-color: #fff;
+}
+.f-wr .housePrice-list .housePrice-hader .active_btn{
+ background: #dc1e20;
+ color: #fff;
+ border: 1px solid #dc1e20;
+ opacity: 1;
+}
+.f-wr .housePrice-list .search-box{
+ display: flex;
+ margin-top: 20rpx;
+ height: 60rpx;
+ line-height: 60rpx;
+ align-items: center;
+ padding: 0 30rpx;
+ position: relative;
+}
+.f-wr .housePrice-list .housePrice-content{
+ width: 100%;
+ height: 440rpx;
+ border-radius: 5%;
+ margin-top: 20rpx;
+ box-sizing: border-box;
+ background-color: #fff;
+}
+.f-wr .housePrice-list .housePrice-content view{
+ background-color: #fff;
+}
+.f-wr .housePrice-list .housePrice-content .housePrice-header{
+ display: flex;
+ background-color: #fff;
+ box-sizing: border-box;
+ padding: 10rpx 0 10rpx 0;
+ border-radius: 5rpx 5rpx 0 0 ;
+}
+.f-wr .housePrice-list .housePrice-content .housePrice-body{
+ padding: 0 20rpx;
+}
+.f-wr .housePrice-list .housePrice-content .housePrice-header image{
+ width: 100rpx;
+ height: 100rpx;
+ border-radius: 50%;
+}
+.f-wr .housePrice-list .housePrice-content .housePrice-header .housePrice-header-name {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ padding:0 20rpx;
+ flex: 1;
+}
+.f-wr .housePrice-list .search-img{
+ width:40rpx;
+ height:40rpx;
+ object-fit: cover;
+ margin: 0 7rpx 0 25rpx;
+ position: absolute;
+ z-index: 5;
+}
+.f-wr .housePrice-list .search-box .search-input{
+ background: #fff;
+ border-radius: 25rpx;
+ padding-left: 24rpx;
+ width:100%;
+ height: 100%;
+}
+.f-wr .housePrice-list .search-box .search-img{
+ position: absolute;
+ right: 38rpx;
+ width: 29rpx;
+ height: 32rpx;
+ top:12rpx ;
+}
+.f-wr .housePrice-list .housePrice-hader view{
+ width: 166rpx;
+ height: 56rpx;
+ line-height: 56rpx;
+ background: #FFFFFF;
+ border: 1px solid #828282a9;
+ border-radius: 28rpx;
+ text-align: center;
+ color: #333333;
+ font-family: PingFang SC;
+ font-weight: bold;
+}
.title-right,
.title-wr {
display: flex;
@@ -408,38 +498,7 @@ page {
left: 75%;
transition: left 0.5s ease;
}
-.f-wr .housePrice-list {
- overflow-y: scroll;
-}
-.f-wr .housePrice-list .housePrice-hader{
- display: flex;
- padding: 20rpx 61rpx;
- background-color: #fff;
-}
-.f-wr .housePrice-list .housePrice-hader .active_btn{
- background: #dc1e20;
- color: #fff;
- border: 1px solid #dc1e20;
- opacity: 1;
-}
-.f-wr .housePrice-list .search-box{
- display: flex;
- margin-top: 20rpx;
- height: 60rpx;
- line-height: 60rpx;
- align-items: center;
- padding: 0 30rpx;
- position: relative;
-}
-.f-wr .housePrice-list .housePrice-content{
- width: 100%;
- height: 440rpx;
- border-radius: 5%;
- margin-top: 20rpx;
- box-sizing: border-box;
- background-color: #fff;
-}
.housePrice-images{
display: flex;
justify-content: left;
@@ -455,31 +514,7 @@ page {
height: 207rpx;
width: 202rpx;
}
-.f-wr .housePrice-list .housePrice-content view{
- background-color: #fff;
-}
-.f-wr .housePrice-list .housePrice-content .housePrice-header{
- display: flex;
- background-color: #fff;
- box-sizing: border-box;
- padding: 10rpx 0 10rpx 0;
- border-radius: 5rpx 5rpx 0 0 ;
-}
-.f-wr .housePrice-list .housePrice-content .housePrice-body{
- padding: 0 20rpx;
-}
-.f-wr .housePrice-list .housePrice-content .housePrice-header image{
- width: 100rpx;
- height: 100rpx;
- border-radius: 50%;
-}
-.f-wr .housePrice-list .housePrice-content .housePrice-header .housePrice-header-name {
- display: flex;
- flex-direction: column;
- justify-content: center;
- padding:0 20rpx;
- flex: 1;
-}
+
.housePrice-header-top{
display: flex;
justify-content: space-between;
@@ -518,40 +553,7 @@ page {
.housePrice-header-name .price{
color: #e74636;
}
-.f-wr .housePrice-list .search-img{
- width:40rpx;
- height:40rpx;
- object-fit: cover;
- margin: 0 7rpx 0 25rpx;
- position: absolute;
- z-index: 5;
-}
-.f-wr .housePrice-list .search-box .search-input{
- background: #fff;
- border-radius: 25rpx;
- padding-left: 24rpx;
- width:100%;
- height: 100%;
-}
-.f-wr .housePrice-list .search-box .search-img{
- position: absolute;
- right: 38rpx;
- width: 29rpx;
- height: 32rpx;
- top:12rpx ;
-}
-.f-wr .housePrice-list .housePrice-hader view{
- width: 166rpx;
- height: 56rpx;
- line-height: 56rpx;
- background: #FFFFFF;
- border: 1px solid #828282a9;
- border-radius: 28rpx;
- text-align: center;
- color: #333333;
- font-family: PingFang SC;
- font-weight: bold;
-}
+
.img_btn{
width: 134rpx;
height: 134rpx;
diff --git a/epdc-resident-mp-yushan/subpages/mediateHypermarket/page/mtct/mtct.js b/epdc-resident-mp-yushan/subpages/mediateHypermarket/page/mtct/mtct.js
new file mode 100644
index 0000000..0476811
--- /dev/null
+++ b/epdc-resident-mp-yushan/subpages/mediateHypermarket/page/mtct/mtct.js
@@ -0,0 +1,104 @@
+const api = require('../../utils/mediateHypermarket')
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ pageIndex: 1,
+ pageSize: 10,
+ nodata: false,
+ loadMoreType: 'none',
+ loadMoreVisible: false,
+ isLoadMore: false,
+ modulelist: [],
+ pid: '1438320938730868737',
+ typeCode: 'MTCS'
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ // this.modulelist()
+ // wx.setNavigationBarTitle({
+ // title: options.title
+ // })
+ this.getModuleList()
+ },
+ // modulelist() {
+ // let that = this;
+ // api.modulelist(that.data.moduleCategory).then(function (res) {
+ // that.setData({
+ // modulelist: res.data,
+ // })
+ // console.log(that.data.modulelist)
+ // })
+ // },
+ getModuleList() {
+ let params = {
+ pageIndex: this.data.pageIndex,
+ pageSize: this.data.pageSize,
+ // pid: this.data.pid
+ typeCode: this.data.typeCode
+ }
+ api.getModuleList(params).then(res => {
+ const customOrder = ["有话说", "点将台", "联动轴", "闪光灯"];
+ res.data.sort((a, b) => {
+ return customOrder.indexOf(a.name) - customOrder.indexOf(b.name);
+ });
+ this.setData({
+ modulelist: this.data.modulelist.concat(res.data),
+ loadMoreType: res.data.length === this.data.pageSize ? 'loading' : 'none',
+ loadMoreVisible: res.data.length === this.data.pageSize ? false : true
+ })
+ if (this.data.modulelist.length == 0) {//没有值
+ this.setData({
+ nodata: true,
+ loadMoreType: 'none',
+ loadMoreVisible: false,
+ })
+ }
+ }).catch(err => {
+ this.setData({
+ modulelist: [],
+ nodata: true,
+ loadMoreType: 'none',
+ loadMoreVisible: false,
+ })
+ console.log(err)
+ })
+ },
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+ this.setData({
+ loadMoreVisible: true
+ })
+ if (this.data.loadMoreType === 'loading') {
+ this.setData({
+ pageIndex: this.data.pageIndex + 1,
+ pageSize: this.data.pageSize,
+ })
+ this.getModuleList()
+ }
+ },
+ goDetails (e) {
+ console.log(e);
+ if(e.currentTarget.dataset.module.typeCode == '01'){
+ wx.redirectTo({
+ url: '/pages/discussion/discussion',
+ })
+ return
+ }else if(e.currentTarget.dataset.module.typeCode == 'DJT'){
+ wx.navigateTo({
+ url: '/subpages/mediateHypermarket/page/dotGeneral/dotGeneral',
+ })
+ return
+ }
+ wx.navigateTo({
+ 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/mediateHypermarket/page/mtct/mtct.json b/epdc-resident-mp-yushan/subpages/mediateHypermarket/page/mtct/mtct.json
new file mode 100644
index 0000000..0940bed
--- /dev/null
+++ b/epdc-resident-mp-yushan/subpages/mediateHypermarket/page/mtct/mtct.json
@@ -0,0 +1,9 @@
+{
+ "navigationBarTitleText": "矛调超市",
+ "navigationBarTextStyle": "white",
+ "navigationBarBackgroundColor": "#bb0300",
+ "usingComponents": {
+ "load-more": "/components/loadMore/loadMore",
+ "no-data":"/components/nodata/nodata"
+ }
+ }
\ No newline at end of file
diff --git a/epdc-resident-mp-yushan/subpages/mediateHypermarket/page/mtct/mtct.wxml b/epdc-resident-mp-yushan/subpages/mediateHypermarket/page/mtct/mtct.wxml
new file mode 100644
index 0000000..3bacd01
--- /dev/null
+++ b/epdc-resident-mp-yushan/subpages/mediateHypermarket/page/mtct/mtct.wxml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
diff --git a/epdc-resident-mp-yushan/subpages/mediateHypermarket/page/mtct/mtct.wxss b/epdc-resident-mp-yushan/subpages/mediateHypermarket/page/mtct/mtct.wxss
new file mode 100644
index 0000000..4c04048
--- /dev/null
+++ b/epdc-resident-mp-yushan/subpages/mediateHypermarket/page/mtct/mtct.wxss
@@ -0,0 +1,37 @@
+/* subpages/mediateHypermarket/page/index/index.wxss */
+.index {
+ width: calc(100% - 60rpx);
+ /* margin-top: 28rpx; */
+ height: 300rpx;
+ line-height: 300rpx;
+ margin-left: 30rpx;
+ border-radius: 10rpx;
+ position: relative;
+ margin-bottom: 28rpx;
+ padding: 0;
+ background: #fff;
+ box-shadow: 0rpx 4rpx 14rpx 0rpx rgba(5, 5, 5, 0.4);
+ }
+
+ button::after {
+ border: none;
+ }
+
+ .hover-btn {
+ box-shadow: 0 0 10rpx rgba(63, 63, 63, 0.1);
+ }
+
+ .index.top {
+ margin-top: 28rpx;
+ }
+
+ .index .img-bj {
+ border-radius: 10rpx;
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ top: 0;
+ left: 0;
+ z-index: 10;
+ }
+
\ No newline at end of file