|
@ -29,11 +29,17 @@ Page({ |
|
|
communityNewsList: [], |
|
|
communityNewsList: [], |
|
|
currentIndex: 0, |
|
|
currentIndex: 0, |
|
|
moduleList: [ |
|
|
moduleList: [ |
|
|
{ |
|
|
// {
|
|
|
icon: |
|
|
// icon:
|
|
|
'https://epdc-yushan.elinkservice.cn/files-pro/20211009/db9d4408de344c419bb22be21ba163b9.png', |
|
|
// 'https://epdc-yushan.elinkservice.cn/files-pro/20211009/db9d4408de344c419bb22be21ba163b9.png',
|
|
|
tip: '积分排名', |
|
|
// tip: '积分排名',
|
|
|
|
|
|
// module: 'pointRank',
|
|
|
|
|
|
// },
|
|
|
|
|
|
{ |
|
|
|
|
|
icon:'../../images/my-home.png', |
|
|
|
|
|
tip: '一户一码', |
|
|
module: 'pointRank', |
|
|
module: 'pointRank', |
|
|
|
|
|
imgHeightFlag:true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
icon: |
|
|
icon: |
|
@ -437,6 +443,60 @@ Page({ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 模块列表跳转
|
|
|
|
|
|
navigateToModule(e) { |
|
|
|
|
|
const { module } = e.currentTarget.dataset |
|
|
|
|
|
if (module === 'gridArmy') { |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: '/subpages/gridArmy/pages/communityList/communityList', |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (module === 'pointRank') { |
|
|
|
|
|
if (!this.data.identityNo) { |
|
|
|
|
|
wx.showToast({ |
|
|
|
|
|
title: '请先扫描房屋码,绑定家庭', |
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
duration: 2500 |
|
|
|
|
|
}) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
const params = { |
|
|
|
|
|
idCard: this.data.identityNo |
|
|
|
|
|
} |
|
|
|
|
|
api.getRoomCodeByIdCard(params).then(res => { |
|
|
|
|
|
if (res.data && res.data.roomCode) { |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: `/subpages/family/pages/index/index?roomCode=${res.data.roomCode}`, |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
wx.showToast({ |
|
|
|
|
|
title: '请扫房屋码绑定房屋', |
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
duration: 2500 |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
// wx.navigateTo({
|
|
|
|
|
|
// // /subpages/integralCentre/pages/index/index
|
|
|
|
|
|
// url: '/subpages/family/pages/index/index',
|
|
|
|
|
|
// })
|
|
|
|
|
|
} else if (module === 'volunteerService') { |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: '/pages/heart/heart', |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (module === 'societyOrg') { |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: '/subpages/societyOrg/pages/orgList/orgList', |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (module === 'fingerYushan') { |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: '/subpages/fingertipYushan/pages/index/index', |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (module === 'personalCenter') { |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: '/pages/mine/mine' |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
// 获取最新社区资讯
|
|
|
// 获取最新社区资讯
|
|
|
contentList() { |
|
|
contentList() { |
|
|
const params = { |
|
|
const params = { |
|
@ -456,35 +516,7 @@ Page({ |
|
|
console.error(err) |
|
|
console.error(err) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 模块列表跳转
|
|
|
|
|
|
navigateToModule(e) { |
|
|
|
|
|
const { module } = e.currentTarget.dataset |
|
|
|
|
|
if (module === 'gridArmy') { |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: '/subpages/gridArmy/pages/communityList/communityList', |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (module === 'pointRank') { |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: '/subpages/integralCentre/pages/index/index', |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (module === 'volunteerService') { |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: '/pages/heart/heart', |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (module === 'societyOrg') { |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: '/subpages/societyOrg/pages/orgList/orgList', |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (module === 'fingerYushan') { |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: '/subpages/fingertipYushan/pages/index/index', |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (module === 'personalCenter') { |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: '/pages/mine/mine' |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// 我有事要说跳转
|
|
|
// 我有事要说跳转
|
|
|
navigateToDiscussion() { |
|
|
navigateToDiscussion() { |
|
|
if (app.globalData.infoCompleted == 0) { |
|
|
if (app.globalData.infoCompleted == 0) { |
|
|