<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="fm w_row clearfix">
|
<p class="w_col_24">活动名称:{{ detail.title }}</p>
|
<!-- <p class="w_col_8">活动负责人:{{detail.sponsorName}}</p> -->
|
<p class="w_col_24">创建时间:{{ detail.creationTime }}</p>
|
<p class="w_col_24">活动地点:{{ detail.address }}</p>
|
<p class="w_col_24">状态:{{ isStatus(+detail.activityType - 1) }}</p>
|
<p class="w_col_24">报名人数: {{ detail.number }}</p>
|
<!-- <p class="w_col_16">志愿者人数: {{ detail.volunteerNow }}</p> -->
|
<!-- <p class="w_col_8">
|
报名人数区间:{{ detail.participantMin }}~{{
|
detail.participantMax >= 0 ? detail.participantMax : "无限"
|
}} -->
|
<!-- </p> -->
|
<!-- <p class="w_col_16">
|
志愿者人数区间:{{ detail.volunteerMin }}~{{
|
detail.volunteerMax >= 0 ? detail.volunteerMax : "无限"
|
}}
|
</p> -->
|
<!-- <p class="w_col_8">
|
首页展示广告:{{ detail.isTop === 1 ? "是" : "否" }}
|
</p> -->
|
<!-- <p class="w_col_8">
|
扫描二维码签到:{{ detail.isQrCode === 1 ? "是" : "否" }}
|
</p> -->
|
<!-- <p class="w_col_8">联系人姓名:{{ detail.contactName }}</p> -->
|
<p class="w_col_24">联系人电话:{{ detail.phone }}</p>
|
<p class="w_col_24">
|
报名时间:{{ detail.applyStartTime }}~{{ detail.applyEndTime }}
|
</p>
|
<p class="w_col_24">
|
活动时间:{{ detail.activityStartTime }}~{{ detail.activityEndTime }}
|
</p>
|
<p class="w_col_24">
|
报名情况:<b class="col_primary curp" @click="onDetail">点击查看</b>
|
</p>
|
<!-- <p class="w_col_24">志愿者活动积分:</p> -->
|
<section class="w_col_24">
|
<p>活动封面:</p>
|
<img
|
:src="detail.coverImgUrl"
|
@click="onScaleUploadImage"
|
alt=""
|
class="avatar"
|
/>
|
</section>
|
<div class="w_col_24">
|
<p class="auto">活动内容:</p>
|
<div class="ql-snow">
|
<div class="ql-editor">
|
<div v-html="detail.content"></div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<br />
|
<br />
|
<br />
|
</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: []
|
};
|
},
|
watch: {},
|
methods: {
|
onScaleUploadImage() {
|
this.$store.dispatch("setImage", {
|
time: Date.now(),
|
pic: this.detail.coverImgUrl,
|
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("/act_act_list/" + this.detail.id));
|
},
|
// 状态
|
isStatus(v) {
|
return (
|
// 活动状态(1待开始 2报名中 3已开始 4已结束 5已取消)
|
["未开始", "报名中", "进行中", "已结束", "已取消", "报名已结束"][v] ||
|
""
|
);
|
},
|
morePage() {
|
this.pageNum++;
|
this.init();
|
},
|
init() {
|
if (!this.id) {
|
demo.toast("失效详情");
|
return 0;
|
}
|
//Jinhui/experienceGetDetails
|
this.$api.get("Jinhui/experienceGetDetails", { id: this.id }, e => {
|
this.detail = e;
|
});
|
}
|
},
|
mounted() {
|
this.id = this.$route.params.id;
|
this.init();
|
}
|
};
|
</script>
|
<style lang="less" scoped>
|
.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;
|
}
|
</style>
|