diff --git a/epdc-resident-mp-yushan/images/home/association.png b/epdc-resident-mp-yushan/images/home/association.png index 78dc34f..a3c192f 100644 Binary files a/epdc-resident-mp-yushan/images/home/association.png and b/epdc-resident-mp-yushan/images/home/association.png differ diff --git a/epdc-resident-mp-yushan/images/home/discussion.png b/epdc-resident-mp-yushan/images/home/discussion.png index 3e1b24a..ec9c25d 100644 Binary files a/epdc-resident-mp-yushan/images/home/discussion.png and b/epdc-resident-mp-yushan/images/home/discussion.png differ diff --git a/epdc-resident-mp-yushan/images/home/edu.png b/epdc-resident-mp-yushan/images/home/edu.png index 994368b..14c3d20 100644 Binary files a/epdc-resident-mp-yushan/images/home/edu.png and b/epdc-resident-mp-yushan/images/home/edu.png differ diff --git a/epdc-resident-mp-yushan/images/home/heart.png b/epdc-resident-mp-yushan/images/home/heart.png index 42ad032..3825df2 100644 Binary files a/epdc-resident-mp-yushan/images/home/heart.png and b/epdc-resident-mp-yushan/images/home/heart.png differ diff --git a/epdc-resident-mp-yushan/images/home/policy.png b/epdc-resident-mp-yushan/images/home/policy.png index 248689f..7f75b21 100644 Binary files a/epdc-resident-mp-yushan/images/home/policy.png and b/epdc-resident-mp-yushan/images/home/policy.png differ diff --git a/epdc-resident-mp-yushan/images/home/property.png b/epdc-resident-mp-yushan/images/home/property.png index 564d757..12d6e7e 100644 Binary files a/epdc-resident-mp-yushan/images/home/property.png and b/epdc-resident-mp-yushan/images/home/property.png differ diff --git a/epdc-resident-mp-yushan/images/home/safe.png b/epdc-resident-mp-yushan/images/home/safe.png index 85e179b..f4a4b48 100644 Binary files a/epdc-resident-mp-yushan/images/home/safe.png and b/epdc-resident-mp-yushan/images/home/safe.png differ diff --git a/epdc-resident-mp-yushan/images/home/synthetical-service.png b/epdc-resident-mp-yushan/images/home/synthetical-service.png index 90aa803..2bc398e 100644 Binary files a/epdc-resident-mp-yushan/images/home/synthetical-service.png and b/epdc-resident-mp-yushan/images/home/synthetical-service.png differ diff --git a/epdc-resident-mp-yushan/pages/index/components/sudoku/sudoku.wxss b/epdc-resident-mp-yushan/pages/index/components/sudoku/sudoku.wxss index 6b455cd..efad510 100644 --- a/epdc-resident-mp-yushan/pages/index/components/sudoku/sudoku.wxss +++ b/epdc-resident-mp-yushan/pages/index/components/sudoku/sudoku.wxss @@ -24,6 +24,7 @@ .item .name { font-size: 28rpx; color: #3f3f3f; + margin-top: 10rpx; } .sudoku .hover-sudoku { background: rgba(0,0,0,0.1); diff --git a/epdc-resident-mp-yushan/subpages/education/pages/hobby/hobby.js b/epdc-resident-mp-yushan/subpages/education/pages/hobby/hobby.js index 9b6e59b..647cfae 100644 --- a/epdc-resident-mp-yushan/subpages/education/pages/hobby/hobby.js +++ b/epdc-resident-mp-yushan/subpages/education/pages/hobby/hobby.js @@ -85,12 +85,12 @@ Page({ }) }, joinGroup(e){ - // if (app.globalData.infoCompleted == 0) { - // this.setData({ - // completeInfoDialogVisible: !this.data.completeInfoDialogVisible - // }) - // return false - // } + if (app.globalData.infoCompleted == 0) { + this.setData({ + completeInfoDialogVisible: !this.data.completeInfoDialogVisible + }) + return false + } const { joinstatus, groupid, groupname,state,index } = e.currentTarget.dataset console.log( e.currentTarget.dataset) if(joinstatus == '0'){ diff --git a/epdc-resident-mp-yushan/subpages/safety/components/policeInfo/policeInfo.wxml b/epdc-resident-mp-yushan/subpages/safety/components/policeInfo/policeInfo.wxml index 74746ad..a041dfe 100644 --- a/epdc-resident-mp-yushan/subpages/safety/components/policeInfo/policeInfo.wxml +++ b/epdc-resident-mp-yushan/subpages/safety/components/policeInfo/policeInfo.wxml @@ -2,7 +2,7 @@ - + @@ -23,7 +23,7 @@ - {{policeInfo.groupMemberFlag=='0'?'加入':policeInfo.groupMemberFlag=='1'?'待审核':'进入'}} + 进入 diff --git a/epdc-resident-mp-yushan/subpages/safety/components/policeInfo/policeInfo.wxss b/epdc-resident-mp-yushan/subpages/safety/components/policeInfo/policeInfo.wxss index 5c87c66..129432b 100644 --- a/epdc-resident-mp-yushan/subpages/safety/components/policeInfo/policeInfo.wxss +++ b/epdc-resident-mp-yushan/subpages/safety/components/policeInfo/policeInfo.wxss @@ -33,9 +33,9 @@ line-height: 100rpx; padding-top: 20rpx; } -.group-pic{ - width: 120rpx; - height: 120rpx; +.police-pic{ + width: 100rpx; + height: 140rpx; border-radius: 60px; padding: 20rpx; } @@ -97,6 +97,7 @@ padding-left: 40rpx; height: 120rpx; width: 70%; + margin-top: 20rpx; } .police-name{ font-size: 30rpx; diff --git a/epdc-resident-mp-yushan/subpages/safety/pages/index/index.js b/epdc-resident-mp-yushan/subpages/safety/pages/index/index.js index 1c4a958..52cda56 100644 --- a/epdc-resident-mp-yushan/subpages/safety/pages/index/index.js +++ b/epdc-resident-mp-yushan/subpages/safety/pages/index/index.js @@ -79,45 +79,16 @@ Page({ } const { groupMemberFlag, groupId, groupName,groupState } = this.data.policeInfo if(groupMemberFlag == '0'){ - wx.showModal({ - title:'提示', - content:'尚未加入群组,是否申请加入?', - confirmText:'申请', - cancelColor: 'cancelColor', - success:(res)=>{ - if(res.cancel){ - - }else{ - api.applyForGroup(groupId).then(res=>{ - if(res.code == '0'){ - wx.showToast({ - title: '申请成功' - }) - let info = this.data.policeInfo; - info.groupMemberFlag = '1'; - this.setData({ - policeInfo:info - }) - }else{ - wx.showToast({ - title: '申请失败', - icon:"none" - }) - } - }).catch(err=>{ - - }) - } - } - }) - }else if(groupMemberFlag == '1'){ - wx.showToast({ - title: '您已申请过加入该社群,请等待群主审核', - icon:"none" + api.joinGroup({groupId:groupId}).then(res=>{ + wx.navigateTo({ + url: `/subpages/property/pages/topicList/topicList?groupId=${groupId}&groupName=${groupName}&state=${groupState}&from=hobby` + }) + }).catch(err=>{ + }) - }else if(groupMemberFlag == '2'){ + }else{ wx.navigateTo({ - url: `/subpages/property/pages/topicList/topicList?groupId=${groupId}&groupName=${groupName}&state=${groupState}` + url: `/subpages/property/pages/topicList/topicList?groupId=${groupId}&groupName=${groupName}&state=${groupState}&from=hobby` }) } },