|
@@ -1,19 +1,20 @@
|
|
|
<template>
|
|
|
<div class="registrationDetails">
|
|
|
<div class="appFirstBox">
|
|
|
- <img src="https://www.idea-co-sf.com/gardenProduct/image/img1.png" class="firstImg"/>
|
|
|
+ <img :src="url" class="firstImg"/>
|
|
|
<div class="appTitle">
|
|
|
- <span class="titleName">互联网私募如何入门?</span>
|
|
|
- <span class="titleType">进行中</span>
|
|
|
+ <span class="titleName">{{ form.activityName }}</span>
|
|
|
+ <span class="titleType">{{ form.statusName }}</span>
|
|
|
</div>
|
|
|
<div @tap.stop="clickColl()" class="joinBox">
|
|
|
- <span class="joinName">26人参加</span>
|
|
|
- <span class="shoucang"><img :src="isColl ? heartSel : heart" class="scImg" /> 收藏</span>
|
|
|
+ <span class="joinName">{{ form.registrationNumbers }}人参加</span>
|
|
|
+<!-- <span class="shoucang"><img :src="isColl ? heartSel : heart" class="scImg" /> 收藏</span>-->
|
|
|
+ <span class="shoucang"><img :src="form.collectorsStatus==='2' ? heartSel : heart" class="scImg"/> 收藏</span>
|
|
|
</div>
|
|
|
<div class="contactBox">
|
|
|
<span class="contackLeft">
|
|
|
<span style="color: #666666;font-size: 28rpx">联系电话:</span>
|
|
|
- <span style="color: #18172A;font-size: 36rpx;font-weight: 600">0510-680**808</span>
|
|
|
+ <span style="color: #18172A;font-size: 36rpx;font-weight: 600">{{ form.activityPhone }}</span>
|
|
|
</span>
|
|
|
<img src="https://www.idea-co-sf.com/gardenProduct/image/phoneIcon.png" class="phoneIcon">
|
|
|
</div>
|
|
@@ -21,39 +22,39 @@
|
|
|
<div class="appSecondBox">
|
|
|
<div class="secondBoxItem">
|
|
|
<span class="secondBoxTitle">活动举办</span>
|
|
|
- <span class="secondBoxInfo">活动举办</span>
|
|
|
+ <span class="secondBoxInfo">{{ form.activitiesNotice }}</span>
|
|
|
</div>
|
|
|
<div class="secondBoxItem">
|
|
|
<span class="secondBoxTitle">活动内容</span>
|
|
|
- <span class="secondBoxInfo">这是活动内容,这是活动内容,这是活动内容,这是活动内容,这是活动内容,这是活动内容。</span>
|
|
|
+ <span class="secondBoxInfo">{{ form.activityContent }}</span>
|
|
|
</div>
|
|
|
<div class="secondBoxItem">
|
|
|
<span class="secondBoxTitle">活动时间</span>
|
|
|
- <span class="secondBoxInfo">2024-06-15 09:00 ~ 2024-06-15 17:00</span>
|
|
|
+ <span class="secondBoxInfo">{{ form.activityStartTime }} ~ {{ form.activityEndTime }}</span>
|
|
|
</div>
|
|
|
<div class="secondBoxItem">
|
|
|
<span class="secondBoxTitle">活动地址</span>
|
|
|
<span class="secondBoxInfo dhInfo">
|
|
|
- <span>无锡市经开区基金PARK E栋203会议室</span>
|
|
|
+ <span>{{ form.activityAddress }} - {{ form.activityAddressDetail }}</span>
|
|
|
<img src="../parkActivity/image/dhIcon.png" class="dhIcon">
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="secondBoxItem">
|
|
|
<span class="secondBoxTitle">报名条件</span>
|
|
|
<span class="secondBoxInfo">
|
|
|
- 企业营销部门主管、有兴趣人事
|
|
|
+ {{ form.registrationConditions }}
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="secondBoxItem">
|
|
|
<span class="secondBoxTitle">报名时间</span>
|
|
|
<span class="secondBoxInfo">
|
|
|
- 2024-06-06 ~ 2024-06-12
|
|
|
+ {{ form.registrationStartTime }} ~ {{ form.registrationEndTime }}
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="secondBoxItem">
|
|
|
<span class="secondBoxTitle">活动参与</span>
|
|
|
<span class="secondBoxInfo">
|
|
|
- 还有 15 个名额
|
|
|
+ {{ form.activityQuota }}
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -62,23 +63,83 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import {getHomeCommunityActivityById, getByCodes, isRegistration, getUserLocalStorageInfo, homeActivityClickCollect} from "../../../js_sdk/http";
|
|
|
+
|
|
|
export default {
|
|
|
name: "activeApplication",
|
|
|
+ created() {
|
|
|
+ this.getByCodes()
|
|
|
+ },
|
|
|
+ onLoad(options) {
|
|
|
+ this.activityId = options.activityId
|
|
|
+ this.url = options.url
|
|
|
+ this.getById()
|
|
|
+ },
|
|
|
data(){
|
|
|
return{
|
|
|
+ dc_key: ['activity_stat'],
|
|
|
heartSel: "https://www.idea-co-sf.com/gardenProduct/image/heartSel.png",
|
|
|
heart: "https://www.idea-co-sf.com/gardenProduct/image/heart.png",
|
|
|
isColl: true,
|
|
|
+ form: {},
|
|
|
+ dic_SelectList: [],
|
|
|
+ statusList: [],
|
|
|
+ activityId: '',
|
|
|
+ registrationFlag: false,
|
|
|
+ url:''
|
|
|
}
|
|
|
},
|
|
|
- methods:{
|
|
|
- clickColl(){
|
|
|
- this.isColl = !this.isColl
|
|
|
- },
|
|
|
- toApplication(){
|
|
|
- uni.navigateTo({
|
|
|
- url:'/pages/subPackages/parkActivity/applicationInfo'
|
|
|
+ methods: {
|
|
|
+ getById(){
|
|
|
+ const data = {
|
|
|
+ id : this.activityId,
|
|
|
+ createdBy: getUserLocalStorageInfo().userId,
|
|
|
+ }
|
|
|
+ getHomeCommunityActivityById(data).then(res => {
|
|
|
+ if (res.errno === 0) {
|
|
|
+ this.form = res.data
|
|
|
+ this.statusList.forEach(item => {
|
|
|
+ if (this.form.status == item.value) {
|
|
|
+ this.form.statusName = item.label
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ const data = {
|
|
|
+ activityId: this.activityId,
|
|
|
+ companyId: getUserLocalStorageInfo().userId
|
|
|
+ }
|
|
|
+ isRegistration(data).then(res => {
|
|
|
+ if (res.errno === 0) {
|
|
|
+ this.registrationFlag = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
+ },
|
|
|
+ async getByCodes() {
|
|
|
+ let data = await getByCodes(JSON.stringify(this.dc_key));
|
|
|
+ this.dic_SelectList = this.$common.handleDicList(data);
|
|
|
+ this.statusList = this.dic_SelectList.activity_stat
|
|
|
+ console.log('this.statusList', this.statusList)
|
|
|
+ },
|
|
|
+ clickColl() {
|
|
|
+ if (this.form.collectorsStatus==='2'){
|
|
|
+ this.form.collectorsStatus='1'
|
|
|
+ }else{
|
|
|
+ this.form.collectorsStatus='2'
|
|
|
+ }
|
|
|
+
|
|
|
+ homeActivityClickCollect({
|
|
|
+ id: this.activityId,
|
|
|
+ createdBy: getUserLocalStorageInfo().userId,
|
|
|
+ collectorsStatus: this.form.collectorsStatus
|
|
|
+ }).then(res => {
|
|
|
+ });
|
|
|
+ },
|
|
|
+ toApplication() {
|
|
|
+ // uni.navigateTo({
|
|
|
+ // url: '/pages/subPackages/parkActivity/applicationInfo?activityId=' + this.form.id + "®istrationFlag=" + this.registrationFlag
|
|
|
+ // })
|
|
|
}
|
|
|
}
|
|
|
}
|