|
@@ -1,18 +1,18 @@
|
|
<template>
|
|
<template>
|
|
<view class="activity-item" hover-class="active" @click="onClickActivity(item)">
|
|
<view class="activity-item" hover-class="active" @click="onClickActivity(item)">
|
|
<view class="activity-title">
|
|
<view class="activity-title">
|
|
- <view>TGV先进材料及封装产业化机遇高峰论坛</view>
|
|
|
|
- <view v-if="!favoritesHidden" class="activity-favourites" :class="{ 'active': index === 1 }">
|
|
|
|
|
|
+ <view>{{ item.title }}</view>
|
|
|
|
+ <view v-if="!favoritesHidden" @click="onCollect(item)" class="activity-favourites" :class="{ 'active': index === 1 }">
|
|
<view v-if="item.favourited" class="iconfont icon-favourites-filled-star-symbol active"></view>
|
|
<view v-if="item.favourited" class="iconfont icon-favourites-filled-star-symbol active"></view>
|
|
<view v-else class="iconfont icon-Favourites-Add-Large"></view>
|
|
<view v-else class="iconfont icon-Favourites-Add-Large"></view>
|
|
<view class="activity-favourites-text">收藏</view>
|
|
<view class="activity-favourites-text">收藏</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="activity-time">2024年03月20日 | E1馆二楼M16会议室</view>
|
|
|
|
- <view class="activity-views">浏览:1080</view>
|
|
|
|
|
|
+ <view class="activity-time">{{ formatDate(item.pub_date) }} | {{ item.address }}</view>
|
|
|
|
+ <view class="activity-views">浏览:{{ item.view }}</view>
|
|
<view class="activity-desc">
|
|
<view class="activity-desc">
|
|
<view>
|
|
<view>
|
|
- 本次论坛将探讨玻璃基芯片板级封装载板在Mini/Micro直显、MIP封装、2.5D/3D封装、射频芯片载板、光通信芯片载板以及其他芯片载板,尤其是半导体先进封装领域的应用。
|
|
|
|
|
|
+ {{ item.description }}
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>
|
|
<van-button class="activity-detail-link" type="primary">
|
|
<van-button class="activity-detail-link" type="primary">
|
|
@@ -26,6 +26,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+ import { meetingCollect, meetingCancelCollect, meetingView } from '@/api/exhibitor'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
options: {
|
|
options: {
|
|
@@ -40,13 +41,37 @@
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ websiteUrl: process.env.WEBSITE
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ onCollect(item) { // 收藏
|
|
|
|
+ this.checkAuth('pages/activity/index')
|
|
|
|
+ if (item.is_collect === 1) {
|
|
|
|
+ meetingCancelCollect({ id: item.id }).then(res => {
|
|
|
|
+ if (res.code === 0) {
|
|
|
|
+ item.is_collect = 0
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ meetingCollect({ id: item.id }).then(res => {
|
|
|
|
+ if (res.code === 0) {
|
|
|
|
+ item.is_collect = 1
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ formatDate(dateString) {
|
|
|
|
+ const date = new Date(dateString);
|
|
|
|
+ const year = date.getFullYear();
|
|
|
|
+ const month = date.getMonth() + 1; // 月份从 0 开始
|
|
|
|
+ const day = date.getDate();
|
|
|
|
+ return `${year}年${month}月${day}日`;
|
|
|
|
+ },
|
|
onClickActivity(item){
|
|
onClickActivity(item){
|
|
- this.navigateTo('/pages/activity/detail')
|
|
|
|
|
|
+ this.navigateTo(this.websiteUrl + '/' + item.urla)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|