Browse Source

显示点赞人员;显示本社区居民标识

master
ZhaoTongYao 6 years ago
parent
commit
a026dac52b
  1. 335
      app.json
  2. 2
      project.config.json
  3. 86
      subpages/associationNew/components/communityList/communityList.wxss
  4. 113
      subpages/associationNew/components/membersList/membersList.wxml
  5. 336
      subpages/associationNew/components/membersList/membersList.wxss
  6. BIN
      subpages/associationNew/images/leader-logo.png
  7. BIN
      subpages/associationNew/images/leader-logo@2x.png
  8. BIN
      subpages/associationNew/images/leader2-logo@2x.png
  9. BIN
      subpages/associationNew/images/resident@2x.png
  10. 137
      subpages/associationNew/pages/community/community.js
  11. 30
      subpages/associationNew/pages/community/community.wxml
  12. 121
      subpages/associationNew/pages/eventlist/eventlist.wxml
  13. 447
      subpages/associationNew/pages/eventlist/eventlist.wxss
  14. 15
      subpages/associationNew/pages/guideInfo/guideInfo.js
  15. 5
      subpages/associationNew/pages/guideInfo/guideInfo.json
  16. 5
      subpages/associationNew/pages/guideInfo/guideInfo.wxml
  17. 9
      subpages/associationNew/pages/guideInfo/guideInfo.wxss
  18. 263
      subpages/associationNew/utils/api.js
  19. 58
      utils/config.js

335
app.json

@ -1,168 +1,169 @@
{ {
"pages": [ "pages": [
"pages/start/start", "pages/start/start",
"pages/indexNew/indexNew", "pages/indexNew/indexNew",
"pages/index/index", "pages/index/index",
"pages/mine/mine", "pages/mine/mine",
"pages/association/association", "pages/association/association",
"pages/discussion/discussion", "pages/discussion/discussion",
"pages/toRegister/toRegister", "pages/toRegister/toRegister",
"pages/toScan/toScan", "pages/toScan/toScan",
"pages/complete/complete", "pages/complete/complete",
"pages/formid/formid", "pages/formid/formid",
"pages/register/register", "pages/register/register",
"pages/detail/detail", "pages/detail/detail",
"pages/accept/accept", "pages/accept/accept",
"pages/gridLeaderRegister/gridLeaderRegister", "pages/gridLeaderRegister/gridLeaderRegister",
"pages/heart/heart", "pages/heart/heart",
"pages/heartNew/heartNew" "pages/heartNew/heartNew"
], ],
"subPackages": [ "subPackages": [
{ {
"root": "subpages/home", "root": "subpages/home",
"name": "home", "name": "home",
"pages": [ "pages": [
"pages/webview/webview", "pages/webview/webview",
"pages/agreement/agreement", "pages/agreement/agreement",
"pages/notice/notice", "pages/notice/notice",
"pages/noticeNew/noticeNew", "pages/noticeNew/noticeNew",
"pages/info/info", "pages/info/info",
"pages/noticeDetail/noticeDetail", "pages/noticeDetail/noticeDetail",
"pages/newsDetail/newsDetail", "pages/newsDetail/newsDetail",
"pages/newsList/newsList" "pages/newsList/newsList"
] ]
}, },
{ {
"root": "subpages/changegrid", "root": "subpages/changegrid",
"name": "changeGrid", "name": "changeGrid",
"pages": [ "pages": [
"pages/changeGrid/changeGrid" "pages/changeGrid/changeGrid"
] ]
}, },
{ {
"root": "subpages/association", "root": "subpages/association",
"name": "association", "name": "association",
"pages": [ "pages": [
"pages/joinassociation/joinassociation", "pages/joinassociation/joinassociation",
"pages/createassociation/createassociation", "pages/createassociation/createassociation",
"pages/associationMember/associationMember", "pages/associationMember/associationMember",
"pages/associationDetail/associationDetail", "pages/associationDetail/associationDetail",
"pages/inviteFriend/inviteFriend", "pages/inviteFriend/inviteFriend",
"pages/incomingVerify/incomingVerify", "pages/incomingVerify/incomingVerify",
"pages/unpassAssociation/unpassAssociation", "pages/unpassAssociation/unpassAssociation",
"pages/topicList/topicList", "pages/topicList/topicList",
"pages/addTopic/addTopic", "pages/addTopic/addTopic",
"pages/topicDetail/topicDetail", "pages/topicDetail/topicDetail",
"pages/replyOrRemark/replyOrRemark", "pages/replyOrRemark/replyOrRemark",
"pages/changeToIssue/changeToIssue" "pages/changeToIssue/changeToIssue"
] ]
}, },
{ {
"root": "subpages/associationNew", "root": "subpages/associationNew",
"name": "associationNew", "name": "associationNew",
"pages": [ "pages": [
"pages/associationlist/associationlist", "pages/associationlist/associationlist",
"pages/community/community", "pages/community/community",
"pages/gMembersList/gMembersList", "pages/guideInfo/guideInfo",
"pages/gOfficialsList/gOfficialsList", "pages/gMembersList/gMembersList",
"pages/talklist/talklist", "pages/gOfficialsList/gOfficialsList",
"pages/eventlist/eventlist", "pages/talklist/talklist",
"pages/addTopic/addTopic" "pages/eventlist/eventlist",
] "pages/addTopic/addTopic"
}, ]
{ },
"root": "subpages/discussion", {
"name": "discussion", "root": "subpages/discussion",
"pages": [ "name": "discussion",
"pages/addIssue/addIssue", "pages": [
"pages/discussionDetail/discussionDetail", "pages/addIssue/addIssue",
"pages/publishEvaluation/publishEvaluation", "pages/discussionDetail/discussionDetail",
"pages/remarkOrReply/remarkOrReply", "pages/publishEvaluation/publishEvaluation",
"pages/searchDiscussion/searchDiscussion", "pages/remarkOrReply/remarkOrReply",
"pages/categoryList/categoryList" "pages/searchDiscussion/searchDiscussion",
] "pages/categoryList/categoryList"
}, ]
{ },
"root": "subpages/mine", {
"name": "mine", "root": "subpages/mine",
"pages": [ "name": "mine",
"pages/eventDetail/eventDetail", "pages": [
"pages/inviteRecord/inviteRecord", "pages/eventDetail/eventDetail",
"pages/gridManage/gridManage" "pages/inviteRecord/inviteRecord",
] "pages/gridManage/gridManage"
}, ]
{ },
"root": "subpages/integralCentre", {
"name": "integralCentre", "root": "subpages/integralCentre",
"pages": [ "name": "integralCentre",
"pages/index/index" "pages": [
] "pages/index/index"
}, ]
{ },
"root": "subpages/heart", {
"pages": [ "root": "subpages/heart",
"pages/heartDetail/heartDetail", "pages": [
"pages/leaderboard/leaderboard", "pages/heartDetail/heartDetail",
"pages/leaderboardNew/leaderboardNew", "pages/leaderboard/leaderboard",
"pages/myNews/myNews", "pages/leaderboardNew/leaderboardNew",
"pages/clockIn/clockIn", "pages/myNews/myNews",
"pages/volunteer/volunteer", "pages/clockIn/clockIn",
"pages/signed/signed", "pages/volunteer/volunteer",
"pages/refusedOrEndedDetail/refusedOrEndedDetail", "pages/signed/signed",
"pages/cancelDetail/cancelDetail" "pages/refusedOrEndedDetail/refusedOrEndedDetail",
] "pages/cancelDetail/cancelDetail"
}, ]
{ },
"root": "subpages/understandJs", {
"pages": [ "root": "subpages/understandJs",
"pages/index/index", "pages": [
"pages/impression/impression", "pages/index/index",
"pages/delicious/delicious", "pages/impression/impression",
"pages/sclerotia/sclerotia", "pages/delicious/delicious",
"pages/archives/archives", "pages/sclerotia/sclerotia",
"pages/noticeDetail/noticeDetail" "pages/archives/archives",
] "pages/noticeDetail/noticeDetail"
} ]
], }
"preloadRule": { ],
"pages/indexNew/indexNew": { "preloadRule": {
"network": "all", "pages/indexNew/indexNew": {
"packages": [ "network": "all",
"subpages/changegrid" "packages": [
] "subpages/changegrid"
}, ]
"pages/discussion/discussion": { },
"network": "all", "pages/discussion/discussion": {
"packages": [ "network": "all",
"discussion" "packages": [
] "discussion"
}, ]
"pages/association/association": { },
"network": "all", "pages/association/association": {
"packages": [ "network": "all",
"subpages/association" "packages": [
] "subpages/association"
}, ]
"pages/mine/mine": { },
"network": "all", "pages/mine/mine": {
"packages": [ "network": "all",
"mine" "packages": [
] "mine"
} ]
}, }
"window": { },
"backgroundTextStyle": "light", "window": {
"navigationBarBackgroundColor": "#fff", "backgroundTextStyle": "light",
"navigationBarTitleText": "WeChat", "navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black" "navigationBarTitleText": "WeChat",
}, "navigationBarTextStyle": "black"
"networkTimeout": { },
"request": 6000 "networkTimeout": {
}, "request": 6000
"permission": { },
"scope.userLocation": { "permission": {
"desc": "e锦水将获取您的位置信息" "scope.userLocation": {
} "desc": "e锦水将获取您的位置信息"
}, }
"sitemapLocation": "sitemap84.json" },
"sitemapLocation": "sitemap84.json"
} }

2
project.config.json

@ -22,7 +22,7 @@
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
}, },
"useCompilerModule": false, "useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false "userConfirmedUseCompilerModuleSwitch": false
}, },
"compileType": "miniprogram", "compileType": "miniprogram",

86
subpages/associationNew/components/communityList/communityList.wxss

@ -1,44 +1,44 @@
.hover-btn { .hover-btn {
box-shadow: 0 0 10rpx rgba(63, 63, 63, 0.1); box-shadow: 0 0 10rpx rgba(63, 63, 63, 0.1);
} }
.community-item{ .community-item{
width: 690rpx; width: 690rpx;
height: 300rpx; height: 300rpx;
border-radius: 10rpx; border-radius: 10rpx;
position: relative; position: relative;
margin: 0 auto; margin: 0 auto;
margin-top: 28rpx; margin-top: 28rpx;
} }
.community-item image{ .community-item image{
width: 100%; width: 100%;
height: 100%; height: 100%;
position: absolute; position: absolute;
border-radius: 10rpx; border-radius: 10rpx;
} }
.community-item .cover-image{ .community-item .cover-image{
width: 100%; width: 100%;
height: 100%; height: 100%;
position: absolute; position: absolute;
background: rgba(0, 0, 0, 0.1); background: rgba(0, 0, 0, 0.2);
border-radius: 10rpx; border-radius: 10rpx;
text-align: center; text-align: center;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
} }
.community-item .cover-image .community-name{ .community-item .cover-image .community-name{
color: white; color: white;
font-size: 48rpx; font-size: 48rpx;
} }
.community-item .cover-image .community-add{ .community-item .cover-image .community-add{
width: 150rpx; width: 150rpx;
height: 46rpx; height: 46rpx;
text-align: left; text-align: left;
padding: 0; padding: 0;
margin-top: 32rpx; margin-top: 32rpx;
border: 0px; border: 0px;
} }
.community-item .cover-image .community-add image{ .community-item .cover-image .community-add image{
width: 100%; width: 100%;
height: 100%; height: 100%;
} }

113
subpages/associationNew/components/membersList/membersList.wxml

@ -1,56 +1,59 @@
<wxs module="filters" src="../../utils/filters.wxs"></wxs> <wxs module="filters" src="../../utils/filters.wxs"></wxs>
<view class="members-list"> <view class="members-list">
<block wx:if="{{gMembersList.length > 0}}"> <block wx:if="{{gMembersList.length > 0}}">
<view class="members-item" <view class="members-item"
wx:for="{{gMembersList}}" wx:for="{{gMembersList}}"
wx:for-index="index" wx:for-index="index"
wx:for-item="item" wx:for-item="item"
wx:key="index"> wx:key="index">
<view class="item-top"> <view class="item-top">
<image class="head-icon" src="{{item.userAvatar}}"></image> <image class="head-icon" src="{{item.userAvatar}}"></image>
<text class="user-name">{{item.nickname}}</text><image wx:if="{{item.identityFlag === '0'}}" class="leader-logo" src="../../images/leader-logo.png"></image> <text class="user-name">{{item.nickname}}</text>
</view> <image wx:if="{{item.identityFlag === '0'}}" class="identity-logo identity0" src="../../images/leader-logo@2x.png"></image>
<view class="line"></view> <image wx:if="{{item.identityFlag === '1'}}" class="identity-logo identity1" src="../../images/leader2-logo@2x.png"></image>
<view class="item-bottom"> <image wx:if="{{item.thisCommunity === '1'}}" class="identity-logo this-community" src="../../images/resident@2x.png"></image>
<button bindtap="gLevelUp" data-group-user-id="{{item.id}}" class="levelup-btn" plain='true' hover-class="hover-btn" wx:if="{{filters.getIdentity(0,currentUser.identityFlag,item.identityFlag)}}"> </view>
<text>升级副群主</text> <view class="line"></view>
<image src="../../images/btn1.png"/> <view class="item-bottom">
</button> <button bindtap="gLevelUp" data-group-user-id="{{item.id}}" class="levelup-btn" plain='true' hover-class="hover-btn" wx:if="{{filters.getIdentity(0,currentUser.identityFlag,item.identityFlag)}}">
<button bindtap="gLevelDown" data-group-user-id="{{item.id}}" class="levelup-btn" plain='true' hover-class="hover-btn" wx:if="{{filters.getIdentity(1,currentUser.identityFlag,item.identityFlag)}}"> <text>升级副群主</text>
<text>降为群成员</text> <image src="../../images/btn1.png"/>
<image src="../../images/btn1.png"/> </button>
</button> <button bindtap="gLevelDown" data-group-user-id="{{item.id}}" class="levelup-btn" plain='true' hover-class="hover-btn" wx:if="{{filters.getIdentity(1,currentUser.identityFlag,item.identityFlag)}}">
<!-- <button class="takeout-btn" plain='true' hover-class="hover-btn"> <text>降为群成员</text>
<text>踢出群</text> <image src="../../images/btn1.png"/>
<image src="../../images/btn2.png"/> </button>
</button> --> <!-- <button class="takeout-btn" plain='true' hover-class="hover-btn">
<button disabled="{{!filters.disabledBanned(currentUser.identityFlag,item.identityFlag)}}" bindtap="onNoSpeak" data-group-user-id="{{item.id}}" class="forbidden-btn {{filters.forbiddenClass(currentUser.identityFlag,item.identityFlag)?'disForbidden-btn':''}}" plain='true' hover-class="hover-btn" wx:if="{{item.identityFlag!=='0'}}"> <text>踢出群</text>
<text space="ensp">{{filters.getBanned(item.bannedFlag)}}</text> <image src="../../images/btn2.png"/>
<image src="../../images/{{filters.forbiddenClass(currentUser.identityFlag,item.identityFlag)?'arrowd2.png':'arrowd.png'}}"/> </button> -->
</button> <button disabled="{{!filters.disabledBanned(currentUser.identityFlag,item.identityFlag)}}" bindtap="onNoSpeak" data-group-user-id="{{item.id}}" class="forbidden-btn {{filters.forbiddenClass(currentUser.identityFlag,item.identityFlag)?'disForbidden-btn':''}}" plain='true' hover-class="hover-btn" wx:if="{{item.identityFlag!=='0'}}">
</view> <text space="ensp">{{filters.getBanned(item.bannedFlag)}}</text>
</view> <image src="../../images/{{filters.forbiddenClass(currentUser.identityFlag,item.identityFlag)?'arrowd2.png':'arrowd.png'}}"/>
</block> </button>
<block wx:if="{{gOfficialsList.length > 0}}"> </view>
<view class="members-item" </view>
wx:for="{{gOfficialsList}}" </block>
wx:for-index="index" <block wx:if="{{gOfficialsList.length > 0}}">
wx:for-item="item" <view class="members-item"
wx:key="index"> wx:for="{{gOfficialsList}}"
<view class="item-top"> wx:for-index="index"
<image class="head-icon" src="{{item.faceImg}}"></image> wx:for-item="item"
<view class="np-info"> wx:key="index">
<text class="user-name">{{item.name}}</text> <view class="item-top">
<text class="user-phone">{{item.mobile}}</text> <image class="head-icon" src="{{item.faceImg}}"></image>
</view> <view class="np-info">
<button class="call-btn" plain='true' hover-class="hover-btn" bindtap="onPhone" data-number="{{item.mobile}}"> <text class="user-name">{{item.name}}</text>
<image src="../../images/call.png"/> <text class="user-phone">{{item.mobile}}</text>
</button> </view>
</view> <button class="call-btn" plain='true' hover-class="hover-btn" bindtap="onPhone" data-number="{{item.mobile}}">
<view class="line"></view> <image src="../../images/call.png"/>
<view class="item-bottom2"> </button>
<text class="member-label">{{item.motto}}</text> </view>
</view> <view class="line"></view>
</view> <view class="item-bottom2">
</block> <text class="member-label">{{item.motto}}</text>
</view>
</view>
</block>
</view> </view>

336
subpages/associationNew/components/membersList/membersList.wxss

@ -1,164 +1,172 @@
.hover-btn { .hover-btn {
box-shadow: 0 0 10rpx rgba(63, 63, 63, 0.1); box-shadow: 0 0 10rpx rgba(63, 63, 63, 0.1);
} }
.line { .line {
width: 690rpx; width: 690rpx;
height: 2rpx; height: 2rpx;
margin: 0 auto; margin: 0 auto;
background: rgba(240, 240, 240, 1); background: rgba(240, 240, 240, 1);
} }
.members-item{ .members-item{
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
margin-top: 20rpx; margin-top: 20rpx;
position: relative; position: relative;
} }
.members-item .item-top{ .members-item .item-top{
width: 750rpx; width: 750rpx;
height: 130rpx; height: 130rpx;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: left; justify-content: left;
align-items: center; align-items: center;
} }
.members-item .item-top .head-icon{ .members-item .item-top .head-icon{
width: 90rpx; width: 90rpx;
height: 90rpx; height: 90rpx;
border-radius: 50%; border-radius: 50%;
margin-left: 29rpx; margin-left: 29rpx;
} }
.members-item .item-top .user-name{ .members-item .item-top .user-name{
font-size: 32rpx; font-size: 32rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
color: rgba(0, 0, 0, 1); color: rgba(0, 0, 0, 1);
margin-left: 20rpx; margin-left: 20rpx;
} }
.members-item .item-top .leader-logo{ .members-item .item-top .identity-logo{
width: 59rpx; height: 28rpx;
height: 28rpx; margin-left: 8rpx;
margin-left: 8rpx; }
} .members-item .item-top .identity0{
.members-item .item-bottom{ width: 59rpx;
height: 100rpx; }
width: 750rpx; .members-item .item-top .identity1{
position: relative; width: 76rpx;
} }
.members-item .item-bottom .levelup-btn{ .members-item .item-top .this-community{
display: inline-block; width: 116rpx;
width: 180rpx; }
height: 48rpx; .members-item .item-bottom{
padding: 0; height: 100rpx;
position: relative; width: 750rpx;
border: none; position: relative;
margin-left: 29rpx; }
margin-top: 26rpx; .members-item .item-bottom .levelup-btn{
} display: inline-block;
.members-item .item-bottom .takeout-btn{ width: 180rpx;
display: inline-block; height: 48rpx;
width: 140rpx; padding: 0;
height: 48rpx; position: relative;
padding: 0; border: none;
position: relative; margin-left: 29rpx;
border: none; margin-top: 26rpx;
z-index: 0; }
margin-left: 20rpx; .members-item .item-bottom .takeout-btn{
} display: inline-block;
.members-item .item-bottom .forbidden-btn{ width: 140rpx;
display: inline-block; height: 48rpx;
width: 170rpx; padding: 0;
height: 48rpx; position: relative;
padding: 0; border: none;
position: absolute; z-index: 0;
z-index: 0; margin-left: 20rpx;
margin-left: 20rpx; }
right: 32rpx; .members-item .item-bottom .forbidden-btn{
top: 26rpx; display: inline-block;
border: 1rpx solid rgba(241, 86, 28, 1); width: 170rpx;
border-radius: 23rpx; height: 48rpx;
} padding: 0;
.levelup-btn image, .takeout-btn image, .forbidden-btn image, .call-btn image{ position: absolute;
width: 100%; z-index: 0;
height: 100%; margin-left: 20rpx;
position: absolute; right: 32rpx;
left: 0; top: 26rpx;
top: 0; border: 1rpx solid rgba(241, 86, 28, 1);
} border-radius: 23rpx;
.forbidden-btn image{ }
width: 24rpx; .levelup-btn image, .takeout-btn image, .forbidden-btn image, .call-btn image{
height: 14rpx; width: 100%;
position: absolute; height: 100%;
left: 135rpx; position: absolute;
top: 18rpx; left: 0;
} top: 0;
.levelup-btn text, .takeout-btn text{ }
font-size: 26rpx; .forbidden-btn image{
font-family: PingFang SC; width: 24rpx;
font-weight: bold; height: 14rpx;
color: rgba(255, 255, 255, 1); position: absolute;
z-index: 1; left: 135rpx;
position: absolute; top: 18rpx;
left: 25rpx; }
top: 0; .levelup-btn text, .takeout-btn text{
height: 48rpx; font-size: 26rpx;
line-height: 48rpx; font-family: PingFang SC;
} font-weight: bold;
.forbidden-btn text{ color: rgba(255, 255, 255, 1);
font-size: 26rpx; z-index: 1;
font-family: PingFang SC; position: absolute;
font-weight: 500; left: 25rpx;
color: rgba(242, 80, 27, 1); top: 0;
z-index: 1; height: 48rpx;
position: absolute; line-height: 48rpx;
left: 28rpx; }
top: 0; .forbidden-btn text{
height: 48rpx; font-size: 26rpx;
line-height: 48rpx; font-family: PingFang SC;
} font-weight: 500;
.disForbidden-btn { color: rgba(242, 80, 27, 1);
border: 1rpx solid rgba(170, 170, 170, 1) !important; z-index: 1;
} position: absolute;
.disForbidden-btn text{ left: 28rpx;
color: rgba(170, 170, 170, 1) !important; top: 0;
} height: 48rpx;
line-height: 48rpx;
.members-item .item-top .call-btn{ }
width: 156rpx; .disForbidden-btn {
height: 56rpx; border: 1rpx solid rgba(170, 170, 170, 1) !important;
padding: 0; }
position: absolute; .disForbidden-btn text{
border: none; color: rgba(170, 170, 170, 1) !important;
right: 31rpx; }
}
.members-item .item-top .np-info{ .members-item .item-top .call-btn{
display: flex; width: 156rpx;
flex-direction: column; height: 56rpx;
} padding: 0;
.members-item .item-top .user-phone{ position: absolute;
font-size: 32rpx; border: none;
font-family: PingFang SC; right: 31rpx;
font-weight: 500; }
color: rgba(240, 133, 38, 1); .members-item .item-top .np-info{
margin-left: 20rpx; display: flex;
} flex-direction: column;
.members-item .item-bottom2{ }
height: 100rpx; .members-item .item-top .user-phone{
width: 750rpx; font-size: 32rpx;
position: relative; font-family: PingFang SC;
display: flex; font-weight: 500;
align-items: center; color: rgba(240, 133, 38, 1);
} margin-left: 20rpx;
.member-label{ }
margin-left: 30rpx; .members-item .item-bottom2{
margin-right: 37rpx; height: 100rpx;
font-size: 28rpx; width: 750rpx;
font-family: PingFang SC; position: relative;
font-weight: 500; display: flex;
color: rgba(153, 153, 153, 1); align-items: center;
display: -webkit-box; }
overflow: hidden; .member-label{
text-overflow: ellipsis; margin-left: 30rpx;
word-wrap: break-word; margin-right: 37rpx;
white-space: normal !important; font-size: 28rpx;
-webkit-line-clamp: 2; font-family: PingFang SC;
-webkit-box-orient: vertical; font-weight: 500;
} color: rgba(153, 153, 153, 1);
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
white-space: normal !important;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

BIN
subpages/associationNew/images/leader-logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

BIN
subpages/associationNew/images/leader-logo@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

BIN
subpages/associationNew/images/leader2-logo@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

BIN
subpages/associationNew/images/resident@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

137
subpages/associationNew/pages/community/community.js

@ -1,66 +1,71 @@
import { getImageUrl} from '../../utils/api' import { getImageUrl} from '../../utils/api'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
partyGroupId: '', partyGroupId: '',
imageUrlList: [], imageUrlList: [],
pageNo: 1, pageNo: 1,
pageSize: 10 pageSize: 10
}, },
onLoad: function (options) { onLoad: function (options) {
this.data.partyGroupId = options.code this.data.partyGroupId = options.code
getImageUrl().then(res => { getImageUrl().then(res => {
this.setData({ this.setData({
imageUrlList: [...res.data] imageUrlList: [...res.data]
}) })
}) })
}, },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () { onPullDownRefresh: function () {
}, },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () { onReachBottom: function () {
}, },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { onShareAppMessage: function () {
}, },
//跳转页面 //跳转页面-群成员
navToGroupMembers (e) { navToGroupMembers (e) {
console.log(this.data.partyGroupId) console.log(this.data.partyGroupId)
wx.navigateTo({ wx.navigateTo({
url: `/subpages/associationNew/pages/gMembersList/gMembersList?partyGroupId=${this.data.partyGroupId}` url: `/subpages/associationNew/pages/gMembersList/gMembersList?partyGroupId=${this.data.partyGroupId}`
}) })
}, },
navToNewPage (e) { navToForumGuide (e) {
// console.log(e.currentTarget.dataset.page); console.log('前往论坛指南')
if (e.currentTarget.dataset.page === 'help') { wx.navigateTo({
wx.navigateTo({ url: `/subpages/associationNew/pages/guideInfo/guideInfo?partyGroupId=${this.data.partyGroupId}`
url: `/subpages/associationNew/pages/gOfficialsList/gOfficialsList?partyGroupId=${this.data.partyGroupId}` })
}) },
} else if (e.currentTarget.dataset.page === 'gather') { navToNewPage (e) {
console.log('/subpages/associationNew/pages/community/community.js') // console.log(e.currentTarget.dataset.page);
wx.navigateTo({ if (e.currentTarget.dataset.page === 'help') {
url:`/subpages/associationNew/pages/eventlist/eventlist?partyGroupId=${this.data.partyGroupId}&topicType=1` //`#/话对捧个场` wx.navigateTo({
}) url: `/subpages/associationNew/pages/gOfficialsList/gOfficialsList?partyGroupId=${this.data.partyGroupId}`
} else if (e.currentTarget.dataset.page === 'applause') { })
wx.navigateTo({ } else if (e.currentTarget.dataset.page === 'gather') {
url:`/subpages/associationNew/pages/eventlist/eventlist?partyGroupId=${this.data.partyGroupId}&topicType=0` //`#/事好鼓个掌` wx.navigateTo({
}) url:`/subpages/associationNew/pages/eventlist/eventlist?partyGroupId=${this.data.partyGroupId}&topicType=1` //`#/话对捧个场`
} })
} } else if (e.currentTarget.dataset.page === 'applause') {
}) wx.navigateTo({
url:`/subpages/associationNew/pages/eventlist/eventlist?partyGroupId=${this.data.partyGroupId}&topicType=0` //`#/事好鼓个掌`
})
}
}
})

30
subpages/associationNew/pages/community/community.wxml

@ -1,13 +1,17 @@
<view class="community"> <view class="community">
<view class="func-top"> <view class="func-top">
<text>群成员</text> <text>群成员</text>
<button hover-class="hover-class" class="top-right" bindtap="navToGroupMembers" plain='true'><image src="../../images/next.png"/></button> <button hover-class="hover-class" class="top-right" bindtap="navToGroupMembers" plain='true'><image src="../../images/next.png"/></button>
</view> </view>
<view class="func-item" <view class="func-top">
wx:for="{{imageUrlList}}" <text>论坛指南</text>
wx:for-index="index" <button hover-class="hover-class" class="top-right" bindtap="navToForumGuide" plain='true'><image src="../../images/next.png"/></button>
wx:for-item="item" </view>
wx:key="index"> <view class="func-item"
<image bindtap="navToNewPage" data-page="{{item.imgCode}}" src="{{item.imgUrl}}"/> wx:for="{{imageUrlList}}"
</view> wx:for-index="index"
</view> wx:for-item="item"
wx:key="index">
<image bindtap="navToNewPage" data-page="{{item.imgCode}}" src="{{item.imgUrl}}"/>
</view>
</view>

121
subpages/associationNew/pages/eventlist/eventlist.wxml

@ -1,58 +1,65 @@
<view class="item-list" wx:for-index="index" wx:for-item="item" wx:key="index" wx:for="{{topiclist}}"> <view class="item-list" wx:for-index="index" wx:for-item="item" wx:key="index" wx:for="{{topiclist}}">
<view class="user-info"> <view class="user-info">
<image src="{{item.userFace}}"></image> <image src="{{item.userFace}}"></image>
<view class="name-date"> <view class="name-date">
<view class="name">{{item.nickname}}</view> <view class="name">{{item.nickname}}</view>
<view class="date">{{item.createdTime}}</view> <image class="community-logo" wx:if="{{item.thisCommunity === '1'}}" src="../../images/resident@2x.png"></image>
</view> <view class="date">{{item.createdTime}}</view>
</view> </view>
<view class="details-info">{{item.topicContent}}</view> </view>
<view class="details-info">{{item.topicContent}}</view>
<view wx:if="{{item.images.length > 0 && topicType == '0'}}" class="image-list"
style="height: {{item.images.length === 3 ? '160rpx' : item.images.length === 2 ? '205rpx' : item.images.length === 1 ? '350rpx' : '' }}"> <view wx:if="{{item.images.length > 0 && topicType == '0'}}" class="image-list"
<image mode="aspectFill" catchtap="previewImage" data-src="{{_item}}" data-imgArry="{{item.images}}" style="height: {{item.images.length === 3 ? '160rpx' : item.images.length === 2 ? '205rpx' : item.images.length === 1 ? '350rpx' : '' }}">
class="image-item" wx:for="{{item.images}}" wx:key="index" wx:for-index="index" wx:for-item="_item" <image mode="aspectFill" catchtap="previewImage" data-src="{{_item}}" data-imgArry="{{item.images}}"
src="{{_item}}" /> class="image-item" wx:for="{{item.images}}" wx:key="index" wx:for-index="index" wx:for-item="_item"
</view> src="{{_item}}" />
<view class="attitude"> </view>
<view class="all" data-id="{{item.id}}" bindtap="clicklike" data-likeFlag="{{item.likeFlag}}" <view class="attitude">
data-index="{{index}}"> <view class="all" data-id="{{item.id}}" bindtap="clicklike" data-likeFlag="{{item.likeFlag}}"
<!-- 用户是否已点赞 0否;1是 --> data-index="{{index}}">
<!-- --> <!-- 用户是否已点赞 0否;1是 -->
<image src="{{item.likeFlag == '0' ? '../../images/give.png' : '../../images/give_2.png'}}"></image> <!-- -->
<view class="give-data {{item.likeFlag == '1' ? 'color' : ''}}">{{item.supportNum}}</view> <image src="{{item.likeFlag == '0' ? '../../images/give.png' : '../../images/give_2.png'}}"></image>
</view> <view class="give-data {{item.likeFlag == '1' ? 'color' : ''}}">{{item.supportNum}}</view>
<view class="all"> </view>
<image src="../../images/comment.png"></image> <view class="all">
<view class="give-data">{{item.commentNum}}</view> <image src="../../images/comment.png"></image>
</view> <view class="give-data">{{item.commentNum}}</view>
<view class="all" data-id="{{item.id}}" data-index="{{index}}" bindtap="clickTextarea"> </view>
<image src="../../images/ic_huifu@2x.png"></image> <view class="all" data-id="{{item.id}}" data-index="{{index}}" bindtap="clickTextarea">
<view class="give-data">评论</view> <image src="../../images/ic_huifu@2x.png"></image>
</view> <view class="give-data">评论</view>
</view> </view>
<view wx:if="{{item.comments.length > 0}}" class="comment"> </view>
<view wx:for="{{item.comments}}" wx:key="index" wx:for-index="index" wx:for-item="item_" <view wx:if="{{item.likes.length > 0}}" class="likes">
class="comment-list"><text>{{item_.username}}:</text>{{item_.content}}</view> <block wx:for="{{item.likes}}" wx:key="index" wx:for-index="index" wx:for-item="likesItem">
</view> <text>{{likesItem.nickname}}</text><text wx:if="{{index < item.likes.length - 1}}">,</text>
</view> </block>
</view>
<view class="release" wx:if="{{ifcomment}}"> <view wx:if="{{item.likes.length > 0 && item.comments.length > 0}}" class="line"></view>
<view class="replyinfo2"> <view wx:if="{{item.comments.length > 0}}" class="comment">
<textarea placeholder-class="input_null" fixed="true" maxlength="-1" show-confirm-bar="false" <view wx:for="{{item.comments}}" wx:key="index" wx:for-index="index" wx:for-item="item_"
cursor-spacing="15" auto-height="true" placeholder="请输入回复" value="{{commentContent}}" focus='{{focus}}' class="comment-list"><text>{{item_.username}}:</text>{{item_.content}}</view>
bindblur="bindAddressInput" bindinput="bindIdentity"></textarea> </view>
<button bindtap="commentSubmit" form-type="submit" class="submit">发送</button> </view>
</view>
</view> <view class="release" wx:if="{{ifcomment}}">
<!--加载更多提示--> <view class="replyinfo2">
<load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more> <textarea placeholder-class="input_null" fixed="true" maxlength="-1" show-confirm-bar="false"
<no-data isShow="{{nodata}}"></no-data> cursor-spacing="15" auto-height="true" placeholder="请输入回复" value="{{commentContent}}" focus='{{focus}}'
<!-- 是否禁言 0:否 1:是 --> bindblur="bindAddressInput" bindinput="bindIdentity"></textarea>
<view wx:if="{{bannedFlag == '0'}}" class="addIssue" bindtap="navigateToAddTopic"> <button bindtap="commentSubmit" form-type="submit" class="submit">发送</button>
<image wx:if="{{topicType == '0'}}" src="../../images/story.png" /> </view>
<image wx:else src="../../images/speack.png" /> </view>
</view> <!--加载更多提示-->
<load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more>
<completeInfo-dialog completeInfoDialogVisible="{{completeInfoDialogVisible}}"> <no-data isShow="{{nodata}}"></no-data>
<!-- 是否禁言 0:否 1:是 -->
<view wx:if="{{bannedFlag == '0'}}" class="addIssue" bindtap="navigateToAddTopic">
<image wx:if="{{topicType == '0'}}" src="../../images/story.png" />
<image wx:else src="../../images/speack.png" />
</view>
<completeInfo-dialog completeInfoDialogVisible="{{completeInfoDialogVisible}}">
</completeInfo-dialog> </completeInfo-dialog>

447
subpages/associationNew/pages/eventlist/eventlist.wxss

@ -1,214 +1,235 @@
page { page {
background: #f7f7f7; background: #f7f7f7;
} }
.item-list { .item-list {
width: 100%; width: 100%;
padding: 40rpx 29rpx 20rpx 29rpx; padding: 40rpx 29rpx 20rpx 29rpx;
background: #fff; background: #fff;
margin-top: 20rpx; margin-top: 20rpx;
} }
.user-info { .user-info {
width: calc(100% - 58rpx); width: calc(100% - 58rpx);
height: 64rpx; height: 64rpx;
display: flex; display: flex;
align-items: center; align-items: center;
} }
.user-info image { .user-info image {
border-radius: 50rpx; border-radius: 50rpx;
width: 64rpx; width: 64rpx;
height: 64rpx; height: 64rpx;
} }
.user-info .name-date { .user-info .name-date {
margin-left: 14rpx; margin-left: 14rpx;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.user-info .name-date .name { .user-info .name-date .name {
font-size: 28rpx; font-size: 28rpx;
font-weight: bold; font-weight: bold;
color: rgba(51, 51, 51, 1); color: rgba(51, 51, 51, 1);
} }
.user-info .name-date .date { .user-info .name-date .community-logo {
font-size: 20rpx; height: 28rpx;
font-weight: 500; width: 116rpx;
color: rgba(153, 153, 153, 1); margin-left: 8rpx;
} }
.details-info { .user-info .name-date .date {
width: calc(100% - 58rpx); font-size: 20rpx;
font-size: 36rpx; font-weight: 500;
font-weight: 500; color: rgba(153, 153, 153, 1);
color: rgba(51, 51, 51, 1); }
line-height: 54rpx;
} .details-info {
width: calc(100% - 58rpx);
.image-list { font-size: 36rpx;
width: calc(100% - 58rpx); font-weight: 500;
margin-top: 30rpx; color: rgba(51, 51, 51, 1);
display: grid; line-height: 54rpx;
grid-template-columns: repeat(auto-fit, minmax(216rpx, 1fr)); }
grid-gap: 7rpx;
} .image-list {
width: calc(100% - 58rpx);
.image-list .image-item { margin-top: 30rpx;
width: 100%; display: grid;
height: 100%; grid-template-columns: repeat(auto-fit, minmax(216rpx, 1fr));
object-fit: cover; grid-gap: 7rpx;
border-radius: 8rpx; }
}
.image-list .image-item {
.attitude { width: 100%;
width: calc(100% - 300rpx); height: 100%;
margin-top: 21rpx; object-fit: cover;
display: flex; border-radius: 8rpx;
align-items: center; }
justify-content: space-between;
/* justify-content: center; */ .attitude {
height: 28rpx; width: calc(100% - 300rpx);
padding: 0 50rpx; margin: 21rpx 0rpx;
} display: flex;
align-items: center;
.attitude .all { justify-content: space-between;
display: flex; /* justify-content: center; */
align-items: center; height: 28rpx;
} padding: 0 50rpx;
}
.attitude .all image {
width: 28rpx; .attitude .all {
height: 28rpx; display: flex;
} align-items: center;
}
.attitude .all .give-data {
font-size: 24rpx; .attitude .all image {
font-weight: 500; width: 30rpx;
color: rgba(51, 51, 51, 1); height: 30rpx;
margin-left: 9rpx; }
/* width: 196rpx; */
} .attitude .all .give-data {
font-size: 26rpx;
.attitude .all .give-data.color { font-weight: 500;
color: #FFB103; color: rgba(51, 51, 51, 1);
} margin-left: 9rpx;
/* width: 196rpx; */
.comment { }
width: calc(100% - 98rpx);
padding: 26rpx 20rpx; .attitude .all .give-data.color {
background: #F2F2F2; color: #FFB103;
border-radius: 8rpx; }
margin-top: 25rpx;
} .likes {
width: calc(100% - 98rpx);
.comment .comment-list { padding: 24rpx 20rpx 12rpx 20rpx;
width: 100%; background: #F2F2F2;
margin-top: 11rpx; border-radius: 8rpx;
font-size: 28rpx; margin-top: 25rpx;
color: #999999; font-size: 28rpx;
} color: #333333;
}
.comment .comment-list text { .line {
color: #333333; width: calc(100% - 60rpx);
} height: 1px;
background-color: #999999;
/* 评论样式 */ }
.release {
align-items: flex-end; .comment {
/*底部对齐*/ width: calc(100% - 98rpx);
box-sizing: border-box; padding: 12rpx 20rpx 24rpx 20rpx;
position: fixed; background: #F2F2F2;
left: 0; border-radius: 8rpx;
bottom: 0; /* margin-top: 25rpx; */
width: 100%; }
padding: 13rpx 20rpx;
background-color: #fff; .comment .comment-list {
font-size: 28rpx; width: 100%;
z-index: 999; margin-top: 11rpx;
} font-size: 28rpx;
color: #999999;
.replyinfo1 { }
display: flex;
justify-content: space-between; .comment .comment-list text {
/*两端对齐*/ color: #333333;
font-size: 35rpx; }
}
/* 评论样式 */
.replyinfo2 { .release {
display: flex; align-items: flex-end;
justify-content: space-between; /*底部对齐*/
/*两端对齐*/ box-sizing: border-box;
} position: fixed;
left: 0;
.release textarea { bottom: 0;
width: calc(100% - 200rpx); width: 100%;
min-height: 34rpx; padding: 13rpx 20rpx;
max-height: 102rpx; background-color: #fff;
/*最多显示三行*/ font-size: 28rpx;
border-width: 15rpx 20rpx; z-index: 999;
/*使用padding与预期留白不一致,故使用border*/ }
border-style: solid;
border-color: #F2F2F2; .replyinfo1 {
line-height: 34rpx; display: flex;
font-size: 28rpx; justify-content: space-between;
background-color: #F2F2F2; /*两端对齐*/
border-radius: 4rpx; font-size: 35rpx;
} }
.release .text { .replyinfo2 {
font-size: 40rpx; display: flex;
color: #c9c9c9; justify-content: space-between;
} /*两端对齐*/
}
.cancel {
width: 240rpx; .release textarea {
height: 64rpx; width: calc(100% - 200rpx);
line-height: 64rpx; min-height: 34rpx;
text-align: center; max-height: 102rpx;
color: #6c0; /*最多显示三行*/
margin: 0 3px; border-width: 15rpx 20rpx;
padding: 0; /*使用padding与预期留白不一致,故使用border*/
} border-style: solid;
border-color: #F2F2F2;
.release .submit { line-height: 34rpx;
width: 160rpx; font-size: 28rpx;
height: 60rpx; background-color: #F2F2F2;
line-height: 60rpx; border-radius: 4rpx;
text-align: center; }
margin: 0 3px;
padding: 0; .release .text {
font-size: 32rpx; font-size: 40rpx;
font-weight: 500; color: #c9c9c9;
color: rgba(255, 255, 255, 1); }
background: linear-gradient(to right, #e95027, #db1a1f);
border-radius: 50rpx; .cancel {
} width: 240rpx;
height: 64rpx;
line-height: 64rpx;
.pro-box .info .text .delete { text-align: center;
color: #f68135; color: #6c0;
border-radius: 50rpx; margin: 0 3px;
border: 1px solid #f68135; padding: 0;
font-size: 28 rpx; }
width: 150rpx;
height: 48rpx; .release .submit {
text-align: center; width: 160rpx;
} height: 60rpx;
line-height: 60rpx;
.addIssue { text-align: center;
width: 178rpx; margin: 0 3px;
height: 178rpx; padding: 0;
position: fixed; font-size: 32rpx;
bottom: 30%; font-weight: 500;
right: 14rpx; color: rgba(255, 255, 255, 1);
} background: linear-gradient(to right, #e95027, #db1a1f);
border-radius: 50rpx;
.addIssue image { }
width: 100%;
height: 100%;
object-fit: cover; .pro-box .info .text .delete {
color: #f68135;
border-radius: 50rpx;
border: 1px solid #f68135;
font-size: 28 rpx;
width: 150rpx;
height: 48rpx;
text-align: center;
}
.addIssue {
width: 178rpx;
height: 178rpx;
position: fixed;
bottom: 30%;
right: 14rpx;
}
.addIssue image {
width: 100%;
height: 100%;
object-fit: cover;
} }

15
subpages/associationNew/pages/guideInfo/guideInfo.js

@ -0,0 +1,15 @@
import { getGuideInfo} from '../../utils/api'
Page({
data: {
partyGroupId: '',
guideInfoData: ''
},
onLoad: function (options) {
this.data.partyGroupId = options.partyGroupId
getGuideInfo(this.data.partyGroupId).then(res => {
this.setData({
guideInfoData: res.data
})
})
}
})

5
subpages/associationNew/pages/guideInfo/guideInfo.json

@ -0,0 +1,5 @@
{
"usingComponents": {
},
"navigationBarTitleText": "论坛指南"
}

5
subpages/associationNew/pages/guideInfo/guideInfo.wxml

@ -0,0 +1,5 @@
<view class="guide-info">
<view class="guide-content">
{{guideInfoData}}
</view>
</view>

9
subpages/associationNew/pages/guideInfo/guideInfo.wxss

@ -0,0 +1,9 @@
page {
width:100%;
height: auto;
overflow-y: auto;
background: #f7f7f7;
}
.guide-content {
font-size: 34rpx;
}

263
subpages/associationNew/utils/api.js

@ -1,128 +1,135 @@
const request = require('../../../utils/request') const request = require('../../../utils/request')
/** /**
*获取图片 *获取图片
*/ */
export function getImageUrl() { export function getImageUrl() {
return request.get('imgConfig/getImgUrl/1') return request.get('imgConfig/getImgUrl/1')
} }
/** /**
*获取图片党群列表首页 *获取图片党群列表首页
*/ */
export function getImageUrl2() { export function getImageUrl2() {
return request.get('imgConfig/getImgUrl/2') return request.get('imgConfig/getImgUrl/2')
} }
/** /**
*进入党群 *进入党群
*/ */
export function getJoinGroup({partyGroupId}) { export function getJoinGroup({partyGroupId}) {
return request.get('partyGroup/group/join',{ return request.get('partyGroup/group/join',{
partyGroupId partyGroupId
}) })
} }
/** /**
*党群名称列表 *党群名称列表
*/ */
export function getPartyGroupList() { export function getPartyGroupList() {
return request.get('partyGroup/group/list') return request.get('partyGroup/group/list')
} }
/** /**
* 群成员列表 * 群成员列表
*/ */
export function getPartyUserList({pageIndex, pageSize, partyGroupId}) { export function getPartyUserList({pageIndex, pageSize, partyGroupId}) {
return request.get('partyGroup/user/list',{ return request.get('partyGroup/user/list',{
pageIndex, pageIndex,
pageSize, pageSize,
partyGroupId partyGroupId
}) })
} }
/** /**
* 官小带个长列表 * 官小带个长列表
*/ */
export function getOfficialsList({pageIndex, pageSize, partyGroupId}) { export function getOfficialsList({pageIndex, pageSize, partyGroupId}) {
return request.get('partyGroup/officials/list',{ return request.get('partyGroup/officials/list',{
pageIndex, pageIndex,
pageSize, pageSize,
partyGroupId partyGroupId
}) })
} }
/** /**
* 当前用户信息 * 当前用户信息
*/ */
export function getCurrentUserInfo(partyGroupId) { export function getCurrentUserInfo(partyGroupId) {
return request.get('partyGroup/user/currentUserInfo/'+partyGroupId) return request.get('partyGroup/user/currentUserInfo/'+partyGroupId)
} }
/** /**
* 用户身份修改 * 用户身份修改
*/ */
export function postModifyIdentity({groupUserId, identityFlag}) { export function postModifyIdentity({groupUserId, identityFlag}) {
return request.post('partyGroup/user/modifyIdentity',{ return request.post('partyGroup/user/modifyIdentity',{
groupUserId, groupUserId,
identityFlag identityFlag
}) })
} }
/** /**
* 用户禁言 * 用户禁言
*/ */
export function postUserBanned({groupUserId, bannedFlag}) { export function postUserBanned({groupUserId, bannedFlag}) {
return request.post('partyGroup/user/banned',{ return request.post('partyGroup/user/banned',{
groupUserId, groupUserId,
bannedFlag bannedFlag
}) })
} }
/** /**
* 话题列表 * 话题列表
*/ */
export function topiclist({pageIndex,pageSize,timestamp,topicType,partyGroupId,partyTopicId}) { export function topiclist({pageIndex,pageSize,timestamp,topicType,partyGroupId,partyTopicId}) {
return request.get('partyGroup/topic/list',{ return request.get('partyGroup/topic/list',{
pageIndex, pageIndex,
pageSize, pageSize,
timestamp, timestamp,
topicType, topicType,
partyGroupId, partyGroupId,
partyTopicId partyTopicId
}) })
} }
/** /**
* 发布话题 * 发布话题
*/ */
export function addTopic({topicType, topicContent,topicAddress,topicLatitude,topicLongitude,partyGroupId,images}) { export function addTopic({topicType, topicContent,topicAddress,topicLatitude,topicLongitude,partyGroupId,images}) {
return request.post('partyGroup/topic/submit',{ return request.post('partyGroup/topic/submit',{
topicType, topicType,
topicContent, topicContent,
topicAddress, topicAddress,
topicLatitude, topicLatitude,
topicLongitude, topicLongitude,
partyGroupId, partyGroupId,
images images
}) })
} }
/** /**
* 话题评论 * 话题评论
*/ */
export function commentSubmit({topicId, faCommentId,content}) { export function commentSubmit({topicId, faCommentId,content}) {
return request.post('partyGroup/comment/submit',{ return request.post('partyGroup/comment/submit',{
topicId, topicId,
faCommentId, faCommentId,
content content
}) })
} }
/** /**
* 表态话题/ * 表态话题/
*/ */
export function statement({attitude, topicId}) { export function statement({attitude, topicId}) {
return request.post('partyGroup/topic/statement',{ return request.post('partyGroup/topic/statement',{
topicId, topicId,
attitude attitude
}) })
} }
/**
* 获取论坛指南
*/
export function getGuideInfo(partyGroupId) {
return request.get('partyGroup/group/guideInfo/'+partyGroupId)
}

58
utils/config.js

@ -1,29 +1,29 @@
module.exports = { module.exports = {
BASEURL: BASEURL, BASEURL: BASEURL,
WEBROOT: WEBROOT, WEBROOT: WEBROOT,
Token: getToken, Token: getToken,
userId: "" userId: ""
}; };
function BASEURL() { function BASEURL() {
// return 'https://eug-test.elinkit.com.cn/js/epdc-api/api/' //党群1+1 // return 'https://eug-test.elinkit.com.cn/js/epdc-api/api/' //党群1+1
// return 'https://eug-test.elinkit.com.cn/js/epdc-api/api/' // 锦水测试环境 return 'https://eug-test.elinkit.com.cn/js/epdc-api/api/' // 锦水测试环境
// return 'https://eug-test.elinkit.com.cn/epdc-api/api/' // 测试环境 接口地址 // return 'https://eug-test.elinkit.com.cn/epdc-api/api/' // 测试环境 接口地址
// return "http://219.146.91.110:9094/epdc-api/api/" // 测试环境 ip接口地址 // return "http://219.146.91.110:9094/epdc-api/api/" // 测试环境 ip接口地址
// return "https://epdc.elinkservice.cn/epdc-api/api/" // 正式环境 接口地址 // return "https://epdc.elinkservice.cn/epdc-api/api/" // 正式环境 接口地址
// return 'https://epdc-app.qingdaoshibei.cn/epdc-api/api/' // 电政办 正式环境 接口地址 // return 'https://epdc-app.qingdaoshibei.cn/epdc-api/api/' // 电政办 正式环境 接口地址
// return 'https://epdc-shibei.elinkservice.cn/epdc-api/api/' // 电政办 正式环境 接口地址 // return 'https://epdc-shibei.elinkservice.cn/epdc-api/api/' // 电政办 正式环境 接口地址
return 'https://epdc-jinshui.elinkservice.cn/epdc-api/api/' // 锦水正式环境接口地址 // return 'https://epdc-jinshui.elinkservice.cn/epdc-api/api/' // 锦水正式环境接口地址
} }
function WEBROOT() { function WEBROOT() {
// return "http://10.10.10.117:8080/#/" // 本地 h5前端地址 // return "http://10.10.10.117:8080/#/" // 本地 h5前端地址
return 'https://epdc-shibei.elinkit.com.cn/#/' // 测试环境 h5前端地址 return 'https://epdc-shibei.elinkit.com.cn/#/' // 测试环境 h5前端地址
// return 'https://epdc.elinkservice.cn/#/' // 正式环境 h5前端地址 // return 'https://epdc.elinkservice.cn/#/' // 正式环境 h5前端地址
// return 'https://epdc-app.qingdaoshibei.cn/#/' // 电政办 正式环境 前端地址 // return 'https://epdc-app.qingdaoshibei.cn/#/' // 电政办 正式环境 前端地址
// return 'https://epdc-shibei.elinkservice.cn/#/' // 电政办 正式环境 前端地址 // return 'https://epdc-shibei.elinkservice.cn/#/' // 电政办 正式环境 前端地址
} }
function getToken() { function getToken() {
return wx.getStorageSync("token"); return wx.getStorageSync("token");
} }

Loading…
Cancel
Save