Browse Source

提交

master
zhaoyongnian 5 years ago
parent
commit
bfc75d8a41
  1. BIN
      subpages/associationNew/images/speack.png
  2. BIN
      subpages/associationNew/images/story.png
  3. 4
      subpages/associationNew/pages/community/community.js
  4. 33
      subpages/associationNew/pages/eventlist/eventlist.js
  5. 5
      subpages/associationNew/pages/eventlist/eventlist.wxml
  6. 14
      subpages/associationNew/pages/eventlist/eventlist.wxss
  7. 2
      subpages/associationNew/utils/api.js

BIN
subpages/associationNew/images/speack.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
subpages/associationNew/images/story.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

4
subpages/associationNew/pages/community/community.js

@ -55,11 +55,11 @@ Page({
} else if (e.currentTarget.dataset.page === 'gather') { } else if (e.currentTarget.dataset.page === 'gather') {
console.log('/subpages/associationNew/pages/community/community.js') console.log('/subpages/associationNew/pages/community/community.js')
wx.navigateTo({ wx.navigateTo({
url:`/subpages/associationNew/pages/eventlist/eventlist` //`#/话对捧个场` url:`/subpages/associationNew/pages/eventlist/eventlist?partyGroupId=${this.data.partyGroupId}&topicType='1'` //`#/话对捧个场`
}) })
} else if (e.currentTarget.dataset.page === 'applause') { } else if (e.currentTarget.dataset.page === 'applause') {
wx.navigateTo({ wx.navigateTo({
url:`/subpages/associationNew/pages/eventlist/eventlist` //`#/事好鼓个掌` url:`/subpages/associationNew/pages/eventlist/eventlist?partyGroupId=${this.data.partyGroupId}&topicType='0'` //`#/事好鼓个掌`
}) })
} }
} }

33
subpages/associationNew/pages/eventlist/eventlist.js

@ -1,4 +1,8 @@
// subpages/associationNew/pages/eventlist/eventlist.js // subpages/associationNew/pages/eventlist/eventlist.js
import { topiclist} from '../../utils/api'
import {
getTimestamp
} from '../../../../utils/common'
Page({ Page({
/** /**
@ -9,14 +13,41 @@ Page({
"https://epdc-shibei.elinkservice.cn/epdcFile/M00/00/00/CgUipV3wgl6Afm4cAAAa8QfEb00266_big.png", "https://epdc-shibei.elinkservice.cn/epdcFile/M00/00/00/CgUipV3wgl6Afm4cAAAa8QfEb00266_big.png",
"https://epdc-shibei.elinkservice.cn/epdcFile/M00/00/00/CgUipV3wgl6Afm4cAAAa8QfEb00266_big.png", "https://epdc-shibei.elinkservice.cn/epdcFile/M00/00/00/CgUipV3wgl6Afm4cAAAa8QfEb00266_big.png",
"https://epdc-shibei.elinkservice.cn/epdcFile/M00/00/00/CgUipV3wgl6Afm4cAAAa8QfEb00266_big.png" "https://epdc-shibei.elinkservice.cn/epdcFile/M00/00/00/CgUipV3wgl6Afm4cAAAa8QfEb00266_big.png"
] ],
topiclist:[],
timestamp: getTimestamp(),
pageIndex: 1,
pageSize: 10,
partyGroupId:'',//党群id
topicType:'',//0:事好儿鼓个掌 1:话对捧个场
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
this.setData({
partyGroupId:options.partyGroupId,
topicType:options.topicType,//0:事好儿鼓个掌 1:话对捧个场
})
this.topiclist()
},
topiclist(){
const para = {
pageIndex: this.data.pageIndex,
pageSize: this.data.pageSize,
timestamp: this.data.timestamp,
topicType:this.data.topicType,
partyGroupId: this.data.partyGroupId, //党群id
}
topiclist(para).then(res => {
let that = this;
console.log(JSON.stringify(res))
this.setData({
topiclist: that.data.topiclist.concat(res.data),
})
})
}, },
/** /**

5
subpages/associationNew/pages/eventlist/eventlist.wxml

@ -31,6 +31,11 @@
</view> </view>
</view> </view>
<view class="addIssue" bindtap="addIssue">
<image wx:if="{{topicType == '0'}}" src="../../images/story.png" />
<image wx:else src="../../images/speack.png" />
</view>
<form bindsubmit="submitForm" report-submit="true"> <form bindsubmit="submitForm" report-submit="true">
<view class="release"> <view class="release">
<view wx:if="{{reply}}" class="replyinfo1"> <view wx:if="{{reply}}" class="replyinfo1">

14
subpages/associationNew/pages/eventlist/eventlist.wxss

@ -179,3 +179,17 @@ page {
height: 48rpx; height: 48rpx;
text-align: center; text-align: center;
} }
.addIssue {
width: 178rpx;
height: 178rpx;
position: fixed;
bottom: 30%;
right: 14rpx;
}
.addIssue image {
width: 100%;
height: 100%;
object-fit: cover;
}

2
subpages/associationNew/utils/api.js

@ -68,7 +68,7 @@ export function postUserBanned({groupUserId, bannedFlag}) {
* 话题列表 * 话题列表
*/ */
export function topiclist({pageIndex,pageSize,timestamp,topicType,partyGroupId}) { export function topiclist({pageIndex,pageSize,timestamp,topicType,partyGroupId}) {
return request.post('partyGroup/topic/list',{ return request.get('partyGroup/topic/list',{
pageIndex, pageIndex,
pageSize, pageSize,
timestamp, timestamp,

Loading…
Cancel
Save