hejianhao
2025-04-16 dab2d210ca06c1faa514c6388fbd5de1ab355360
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<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>