<template>
|
<div class="act_detail">
|
<v-header title="活动详情"></v-header>
|
<v-tool-scroll
|
class="content"
|
ids="act-detail-scroll"
|
:up="pageType"
|
@next="morePage"
|
>
|
<div class="fl-co">
|
<el-tabs v-model="activeName">
|
<el-tab-pane label="基础信息" name="first">
|
<div class="info-item">活动名称:{{ detail.activityName }}</div>
|
<div class="info-item">活动地点:{{ detail.activityAddr }}</div>
|
<div class="info-item">
|
报名时间:{{ detail.signUpBegin }}~{{ detail.signUpEnd }}
|
</div>
|
<div class="info-item">
|
活动时间:{{ detail.beginAt }}~{{ detail.endAt }}
|
</div>
|
<div class="info-item">活动分类:{{ detail.activityType }}</div>
|
<div class="info-item">联系人姓名:{{ detail.contactName }}</div>
|
<div class="info-item">联系人电话:{{ detail.contactPhone }}</div>
|
<div class="info-item fl-f">
|
活动封面:
|
<img
|
:src="detail.cover"
|
@click="onScaleUploadImage"
|
alt=""
|
class="avatar"
|
/>
|
</div>
|
<div class="info-item">
|
活动详情:
|
<div class="ql-snow">
|
<div class="ql-editor">
|
<div v-html="detail.content"></div>
|
</div>
|
</div>
|
</div>
|
</el-tab-pane>
|
<el-tab-pane label="限制和奖励" name="second">
|
<div class="info-item">
|
签到范围(以内):{{
|
detail.range == -1 ? "不限" : detail.range
|
}}km
|
</div>
|
<div class="info-item">
|
签退范围(以内):{{
|
detail.signOutRange == -1 ? "不限" : detail.signOutRange
|
}}km
|
</div>
|
<div class="info-item">
|
报名后取消:{{ detail.canCancel == 1 ? "允许" : "拒绝" }}
|
</div>
|
<div class="info-item" v-if="detail.canCancel == 1">
|
取消扣除积分:{{ detail.cancelDeduct }}
|
</div>
|
<div class="info-item">
|
每人参与次数限制:{{ detail.limit == -1 ? "不限" : detail.limit }}
|
</div>
|
<div class="info-item">参与人群:{{ detail.aattendPeople }}</div>
|
<div class="info-item fl-co">
|
<div class="fc-999">居民</div>
|
<div class="mr-t-10 fl-fw">
|
<div class="join-label-width">
|
参与人数限制:{{
|
detail.participantMax == -1 ? "不限" : detail.participantMax
|
}}
|
</div>
|
<div class="join-label-width">
|
积分奖励方式:按参与{{
|
detail.participantRewardWay == 1 ? "次数" : "时长"
|
}}
|
</div>
|
<div class="join-label-width">
|
每次奖励积分:{{ detail.participantRewardIntegral }}
|
</div>
|
</div>
|
</div>
|
<div class="info-item fl-co">
|
<div class="fc-999">志愿者</div>
|
<div class="mr-t-10 fl-fw">
|
<div class="join-label-width">
|
参与人数限制:{{
|
detail.volunteerMax == -1 ? "不限" : detail.volunteerMax
|
}}
|
</div>
|
<div class="join-label-width">
|
积分奖励方式:按参与{{
|
detail.volunteerRewardWay == 1 ? "次数" : "时长"
|
}}
|
</div>
|
<div class="join-label-width">
|
每次奖励积分:{{ detail.volunteerRewardIntegral }}
|
</div>
|
</div>
|
</div>
|
<div class="info-item fl-co">
|
<div class="fc-999">党员</div>
|
<div class="mr-t-10 fl-fw">
|
<div class="join-label-width">
|
参与人数限制:{{
|
detail.partyMemberMax == -1 ? "不限" : detail.partyMemberMax
|
}}
|
</div>
|
<div class="join-label-width">
|
积分奖励方式:按参与{{
|
detail.pbRewardWay == 1 ? "次数" : "时长"
|
}}
|
</div>
|
<div class="join-label-width">
|
每次奖励积分:{{ detail.pbRewardIntegral }}
|
</div>
|
</div>
|
</div>
|
</el-tab-pane>
|
</el-tabs>
|
</div>
|
</v-tool-scroll>
|
<div class="foot">
|
<el-button size="small" @click="$router.go(-1)">返回</el-button>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
export default {
|
props: {},
|
components: {},
|
data() {
|
return {
|
count: 0,
|
id: "",
|
detail: {},
|
value1: 3,
|
pageType: true,
|
more: 1,
|
pageNum: 1,
|
pageSize: 10,
|
commentList: [],
|
activeName: "first",
|
};
|
},
|
watch: {},
|
methods: {
|
onScaleUploadImage() {
|
this.$store.dispatch("setImage", {
|
time: Date.now(),
|
pic: this.detail.cover,
|
tool: true,
|
});
|
},
|
|
onScaleUploadImage2(j) {
|
this.$store.dispatch("setImage", {
|
time: Date.now(),
|
pic: this.detail.comActActPrizeVOList[j].prizePhoto,
|
tool: true,
|
});
|
},
|
|
onDetail() {
|
this.$router.push(this.$nav.url("/com_activity_list/" + this.detail.id));
|
},
|
// 状态
|
isStatus(v) {
|
return (
|
["待发布", "未开始", "报名中", "进行中", "已结束", "已取消"][v] || ""
|
);
|
},
|
morePage() {
|
this.pageNum++;
|
this.init();
|
},
|
init() {
|
if (!this.id) {
|
demo.toast("失效详情");
|
return 0;
|
}
|
this.$api.get(
|
"communityactivity/detailactivity",
|
{ id: this.id, pageNum: this.pageNum, pageSize: this.pageSize },
|
(e) => {
|
if (e.comActActEvaluateVOList.length) {
|
this.pageType = true;
|
this.commentList = [
|
...this.commentList,
|
...e.comActActEvaluateVOList,
|
];
|
} else {
|
this.pageType = false;
|
}
|
this.commentList.forEach((item) => {
|
item.photo = item.photo ? item.photo.split(",") : [];
|
});
|
this.detail = e;
|
}
|
);
|
},
|
},
|
mounted() {
|
this.id = this.$route.params.id;
|
this.init();
|
},
|
};
|
</script>
|
<style lang='less' scoped>
|
.avatar {
|
width: 300px;
|
height: 170px;
|
}
|
.act_detail {
|
.content {
|
height: calc(~"100% - 90px");
|
}
|
.foot {
|
margin-top: 5px;
|
}
|
.fs {
|
p {
|
float: left;
|
height: 100%;
|
}
|
}
|
.curp {
|
cursor: pointer;
|
}
|
.fm {
|
p {
|
font-size: 14px;
|
line-height: 22px;
|
color: #000;
|
padding: 8px 0;
|
min-height: 38px;
|
&.auto {
|
min-height: 20px;
|
}
|
}
|
section {
|
padding: 8px 0;
|
display: flex;
|
flex-wrap: wrap;
|
img {
|
width: 175px;
|
height: 97px;
|
margin: 5px;
|
background-color: #eee;
|
display: block;
|
border-radius: 3px;
|
cursor: pointer;
|
&.avatar {
|
width: 300px;
|
height: 170px;
|
}
|
& + b {
|
text-align: center;
|
font-size: 12px;
|
margin: 5px 0;
|
display: block;
|
height: 12px;
|
& + span {
|
font-size: 12px;
|
text-align: center;
|
font-size: 12px;
|
display: block;
|
height: 14px;
|
}
|
}
|
}
|
}
|
}
|
}
|
.comment-list-content {
|
display: flex;
|
flex-direction: column;
|
}
|
.fl-f {
|
display: flex;
|
}
|
.fl-al {
|
display: flex;
|
align-items: center;
|
}
|
.fl-sb {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
}
|
.fl-co {
|
display: flex;
|
flex-direction: column;
|
}
|
.fl-fw {
|
display: flex;
|
flex-wrap: wrap;
|
}
|
.user-header {
|
margin-right: 20px;
|
width: 80px;
|
height: 80px;
|
}
|
.comment-list-content {
|
width: 450px;
|
}
|
.fz-12 {
|
font-size: 24px;
|
}
|
.mr-t-style {
|
margin-top: 20px;
|
}
|
.comment-row-box {
|
margin-bottom: 20px;
|
padding-bottom: 20px;
|
border-bottom: 1px solid #dddada;
|
}
|
.comment-img-list {
|
margin-top: 20px;
|
margin-right: 10px;
|
width: 90px;
|
height: 90px;
|
}
|
.fc-999 {
|
color: #999;
|
}
|
.infinite-list-item {
|
display: flex;
|
align-items: center;
|
height: 50px;
|
}
|
.info-item {
|
padding: 10px 0;
|
}
|
.join-label-width {
|
width: 300px;
|
}
|
</style>
|