| | |
| | | </view> |
| | | <text class="f-28 c-99">共{{applyList.length}}人</text> |
| | | </view> |
| | | <button v-if="computeEndTime > 0 && !applyInfo.userId" class="apply-btn bgc-main c-ff " |
| | | <button v-if="computeEndTime > 0 && !applyInfo.householdId" class="apply-btn bgc-main c-ff " |
| | | @click="handleApply()">报名</button> |
| | | |
| | | <button v-if="applyInfo.userId && computeEndTime > 0" |
| | | <button v-if="applyInfo.householdId && computeEndTime > 0" |
| | | class="apply-btn bgc-lightblue c-main border-current">已报名</button> |
| | | |
| | | <button v-if="computeEndTime <= 0" |
| | |
| | | }, |
| | | |
| | | getDetailInfo() { |
| | | this.params.houseCode = uni.getStorageSync("curHouseCode") |
| | | getDetail(this.params).then(res => { |
| | | this.detailInfo = res.data; |
| | | this.type = res.data.type |
| | |
| | | //报名列表 |
| | | getApplyList() { |
| | | communityModel.getApplyList({ |
| | | articleId: this.params.id |
| | | articleId: this.params.id, |
| | | houseCode: uni.getStorageSync("curHouseCode") |
| | | }).then(res => { |
| | | // console.log(res) |
| | | if (res.code == 200) { |
| | |
| | | //报名、投票详情 |
| | | getApplyDetail() { |
| | | communityModel.getApplyDetail({ |
| | | articleId: this.params.id |
| | | articleId: this.params.id, |
| | | houseCode: uni.getStorageSync("curHouseCode") |
| | | }).then(res => { |
| | | // console.log(res) |
| | | if (res.code == 200) { |
| | |
| | | //获取投票议题 |
| | | getVoteList() { |
| | | communityModel.getVoteTopics({ |
| | | articleId: this.params.id |
| | | articleId: this.params.id, |
| | | houseCode: uni.getStorageSync("curHouseCode") |
| | | }).then(res => { |
| | | if (res.code == 200) { |
| | | let data = res.data; |