|
@@ -5,12 +5,12 @@
|
|
<view class="main-container">
|
|
<view class="main-container">
|
|
<view class="activity-head">
|
|
<view class="activity-head">
|
|
<view class="activity-head-title">同期活动</view>
|
|
<view class="activity-head-title">同期活动</view>
|
|
- <view class="activity-head-desc">今年慕尼黑上海电子生产设备展将围绕四大行业主题开展共计9场同期论坛,论坛围绕工业机器人、柔性制造、储能与新能源、汽车线束、智能座舱、智能制造、TGV先进材料、封装、胶粘剂、新能源汽车等热门话题展开更多探讨与交流。</view>
|
|
|
|
|
|
+ <view class="activity-head-desc">{{ mettingDesc }}</view>
|
|
</view>
|
|
</view>
|
|
<van-empty v-if="activityList.length === 0" description="暂无数据" />
|
|
<van-empty v-if="activityList.length === 0" description="暂无数据" />
|
|
<view v-else class="activity-list">
|
|
<view v-else class="activity-list">
|
|
<template v-for="(item, index) in activityList">
|
|
<template v-for="(item, index) in activityList">
|
|
- <activity-item :item="item" :key="index" />
|
|
|
|
|
|
+ <activity-item :item="item" :key="index" @updateItemCollect="updateItemCollect"/>
|
|
</template>
|
|
</template>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -22,7 +22,7 @@
|
|
import NavBar from '@/components/layout/nav-bar'
|
|
import NavBar from '@/components/layout/nav-bar'
|
|
import UScrollView from '@/components/common/u-scroll-view'
|
|
import UScrollView from '@/components/common/u-scroll-view'
|
|
import ActivityItem from '@/pages/activity/components/activity-item.vue'
|
|
import ActivityItem from '@/pages/activity/components/activity-item.vue'
|
|
- import { mettingList } from '@/api/exhibitor'
|
|
|
|
|
|
+ import { mettingList, mettingDesc } from '@/api/exhibitor'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
options: {
|
|
options: {
|
|
@@ -43,9 +43,11 @@
|
|
},
|
|
},
|
|
activityListLoading: false,
|
|
activityListLoading: false,
|
|
activityListLastPage: 1,
|
|
activityListLastPage: 1,
|
|
|
|
+ mettingDesc: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
|
|
+ this.getMettingDesc()
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -65,6 +67,18 @@
|
|
this.activityListLoading = false
|
|
this.activityListLoading = false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ updateItemCollect(e) {
|
|
|
|
+ this.activityList.forEach((item) => {
|
|
|
|
+ if (item.id === e.id) {
|
|
|
|
+ item.is_collect = item.is_collect === 1 ? 0 : 1
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ getMettingDesc() {
|
|
|
|
+ mettingDesc().then(res => {
|
|
|
|
+ this.mettingDesc = res.data
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|