You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.5 KiB
67 lines
1.5 KiB
5 years ago
|
import { getImageUrl} from '../../utils/api'
|
||
|
Page({
|
||
|
|
||
|
/**
|
||
|
* 页面的初始数据
|
||
|
*/
|
||
|
data: {
|
||
|
partyGroupId: '',
|
||
|
imageUrlList: [],
|
||
|
pageNo: 1,
|
||
|
pageSize: 10
|
||
|
},
|
||
|
onLoad: function (options) {
|
||
|
this.data.partyGroupId = options.code
|
||
|
getImageUrl().then(res => {
|
||
|
this.setData({
|
||
|
imageUrlList: [...res.data]
|
||
|
})
|
||
|
})
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 页面相关事件处理函数--监听用户下拉动作
|
||
|
*/
|
||
|
onPullDownRefresh: function () {
|
||
|
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 页面上拉触底事件的处理函数
|
||
|
*/
|
||
|
onReachBottom: function () {
|
||
|
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* 用户点击右上角分享
|
||
|
*/
|
||
|
onShareAppMessage: function () {
|
||
|
|
||
|
},
|
||
|
//跳转页面
|
||
|
navToGroupMembers (e) {
|
||
|
console.log(this.data.partyGroupId)
|
||
|
wx.navigateTo({
|
||
|
url: `/subpages/associationNew/pages/gMembersList/gMembersList?partyGroupId=${this.data.partyGroupId}`
|
||
|
})
|
||
|
},
|
||
|
navToNewPage (e) {
|
||
|
// console.log(e.currentTarget.dataset.page);
|
||
|
if (e.currentTarget.dataset.page === 'help') {
|
||
|
wx.navigateTo({
|
||
|
url: `/subpages/associationNew/pages/gOfficialsList/gOfficialsList?partyGroupId=${this.data.partyGroupId}`
|
||
|
})
|
||
|
} else if (e.currentTarget.dataset.page === 'gather') {
|
||
|
console.log('/subpages/associationNew/pages/community/community.js')
|
||
|
wx.navigateTo({
|
||
|
url: `#/话对捧个场`
|
||
|
})
|
||
|
} else if (e.currentTarget.dataset.page === 'applause') {
|
||
|
wx.navigateTo({
|
||
|
url: `#/事好鼓个掌`
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
})
|