123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484 |
- <template>
- <page-layout class="activity-detail">
- <nav-bar title="同期活动" @init="onInitNavbar"></nav-bar>
- <u-scroll-view>
- <view class="main-container">
- <view class="activity-head">
- <view class="activity-title">{{ meetingInfo.title }}</view>
- <view class="activity-views">
- <view>
- 浏览:
- </view>
- {{ meetingInfo.total_view }}
- </view>
- <view class="activity-props">
- <view class="activity-prop">
- <view class="activity-prop-label">举办时间:</view>
- <view class="activity-prop-text">{{ meetingInfo.time }}</view>
- </view>
- <view class="activity-prop">
- <view class="activity-prop-label">举办地点:</view>
- <view class="activity-prop-text">{{ meetingInfo.address }}</view>
- </view>
- <view class="activity-prop">
- <view class="activity-prop-label">主办单位:</view>
- <view class="activity-prop-text">{{ meetingInfo.meeting_host }}</view>
- </view>
- </view>
- <!-- <view class="activity-action">
- <button open-type="share" :plain="true">
- <view>
- <view class="iconfont icon-zhuanfa"></view>
- <view>分享</view>
- </view>
- </button>
- <view @click="onCollect(meetingInfo)">
- <view v-if="meetingInfo.is_collect" class="iconfont icon-favourites-filled-star-symbol active"></view>
- <view v-else class="iconfont icon-Favourites-Add-Large"></view>
- <view>收藏</view>
- </view>
- </view>-->
- </view>
- <view class="activity-image">
- <image :src="meetingInfo.image_url" :alt="meetingInfo.image_alt"
- mode="aspectFill"/>
- </view>
- <u-panel class="activity-desc" :title="expand_content.active_title.value" :second="true">
- <u-content class="activity-desc-text" :content="meetingInfo.content"></u-content>
- </u-panel>
- <view class="activity-info-flag">
- <view class="iconfont icon-Exclamation-Circle-Large-1"></view>
- </view>
- <u-panel class="activity-desc" :title="expand_content.topic_title.value " :second="true">
- <view class="activity-agenda">
- <!-- <view class="activity-agenda-title">{{ expand_content.topic_title.value }}</view>-->
- <view class="activity-agenda-list">
- <view class="activity-agenda-item" v-for="item in expand_content.topic_list.value">
- <view class="iconfont icon-Check"></view>
- <view class="activity-agenda-item-text">{{ item[0].value }}</view>
- </view>
- </view>
- <view class="activity-agenda-guest-title">{{ expand_content.speaker_title.value }}</view>
- <view class="activity-agenda-guest-link">
- <van-button type="primary" @click="onClickGuestLink">
- <template>
- <view>{{ expand_content.speaker_btn.value }}</view>
- <view class="arrow iconfont icon-right-s"></view>
- </template>
- </van-button>
- </view>
- </view>
- </u-panel>
- <u-panel class="activity-desc" :title="expand_content.schedule_title.value" :second="true">
- <view class="activity-schedule">
- <!-- <view class="activity-schedule-title">{{ expand_content.schedule_title.value }}</view>-->
- <view class="activity-schedule-desc">
- {{ expand_content.schedule_desc.value }}
- </view>
- <view class="activity-schedule-table table" v-if="meetingInfo.speech_schedule && meetingInfo.speech_schedule.length > 0">
- <view class="thead">
- <view class="tr">
- <view></view>
- <view>时间</view>
- <view>演讲题目</view>
- <view>演讲嘉宾</view>
- </view>
- </view>
- <view class="tbody">
- <view class="tr" v-for="item in meetingInfo.speech_schedule">
- <view>
- <view class="iconfont icon-CalendarAdd1"></view>
- </view>
- <view>{{ returnTimeFormatEvent(item.start_date,item.end_date) }}</view>
- <view>{{ item.title }}</view>
- <view>
- <view v-if="item.expand_content && item.expand_content.schedule && item.expand_content.schedule.value">
- <view v-for="(child_item,child_key) in item.expand_content.schedule.value" :index="child_key">
- {{child_item[1].value}}({{child_item[2].value}})
- </view>
- </view>
- <!-- {{ item.description }}-->
- </view>
- </view>
- </view>
- </view>
- </view>
- </u-panel>
- <view class="main-image">
- <image :src="meetingInfo.main_image" :alt="meetingInfo.main_image_alt"
- mode="widthFix"/>
- </view>
- <view class="activity-operation">
- <view class="activity-action">
- <button open-type="share" :plain="true">
- <view>
- <view class="iconfont icon-zhuanfa"></view>
- <view>分享</view>
- </view>
- </button>
- <view @click="onCollect(meetingInfo)">
- <view v-if="meetingInfo.is_collect" class="iconfont icon-favourites-filled-star-symbol active"></view>
- <view v-else class="iconfont icon-Favourites-Add-Large"></view>
- <view>收藏</view>
- </view>
- </view>
- </view>
- <!-- <disclaimer-text></disclaimer-text> -->
- </view>
- </u-scroll-view>
- <float-button></float-button>
- <van-dialog id="van-dialog" />
- </page-layout>
- </template>
- <script>
- import NavBar from '@/components/layout/nav-bar'
- import UScrollView from '@/components/common/u-scroll-view'
- import UContent from '@/components/common/u-content'
- import DisclaimerText from '@/components/disclaimer-text/index.vue'
- import {getMeetingInfo} from "@/api/meeting";
- import {returnTimeFormat} from '@/utils'
- import {meetingCancelCollect, meetingCollect} from "@/api/exhibitor"
- import floatButton from "@/components/layout/float-button"
- import ContactUs from '@/pages/index/components/contact-us.vue'
- import PageLayout from "@/components/layout/page-layout";
- import UPanel from "@/components/common/u-panel";
- export default {
- options: {
- styleIsolation: 'shared'
- },
- components: {
- PageLayout,
- NavBar,
- UScrollView,
- DisclaimerText,
- UContent,
- floatButton,
- ContactUs,
- UPanel
- },
- computed: {},
- data() {
- return {
- id: 0,
- favorited: true,
- meetingInfo: {},
- expand_content: {}
- }
- },
- onLoad(options) {
- this.id = options.id
- this.getActiveInfo()
- },
- created() {
- uni.$on('refreshData', (val) => {
- if (val === 'pages/activity/detail') {
- this.getActiveInfo()
- }
- })
- },
- methods: {
- onCollect(item) {
- if (!this.checkAuth('/pages/activity/detail?id='+ this.id)) {
- return
- }
- if (item.is_collect === 1) {
- meetingCancelCollect({ id: item.id }).then(res => {
- if (res.code === 0) {
- this.meetingInfo.is_collect = 0
- }
- })
- } else {
- meetingCollect({ id: item.id }).then(res => {
- if (res.code === 0) {
- this.meetingInfo.is_collect = 1
- }
- })
- }
- },
- returnTimeFormatEvent(start_time,end_time) {
- return returnTimeFormat(start_time,end_time)
- },
- getActiveInfo() {
- this.showLoading()
- getMeetingInfo({id: this.id}).then(res => {
- this.meetingInfo = res.data
- this.meetingInfo.time = returnTimeFormat(res.data.start_date,res.data.end_date)
- this.expand_content = res.data.expand_content
-
- this.hideLoading()
- })
- },
- onClickGuestLink() {
- this.navigateTo('/pages/activity/guest?id=' + this.id)
- }
- }
- }
- </script>
- <style lang="scss">
- .activity-detail {
- .main-image {
- display: flex;
- width: 100%;
- image {
-
-
- }
- }
- .activity-head {
- position: relative;
- font-weight: normal;
- font-size: $fontSize7;
- color: #333333;
- .activity-title {
- font-weight: bold;
- }
- .activity-action {
- position: absolute;
- bottom: 0;
- right: 0;
- }
- }
- .activity-operation {
- @include display-flex-between;
-
- position: fixed;
- width: 100%;
- left: 0;
- bottom: 0;
- padding: 40rpx 0;
- padding: 40rpx 30rpx;
- background-color: #ffffff;
- }
- .activity-views {
- display: flex;
- align-items: center;
-
- font-size: $fontSize1;
- color: #555555;
- justify-content: flex-end;
- }
- .activity-action {
- display: grid;
- grid-template-columns: 1fr 1fr;
- font-size: $fontSize3;
- color: #555555;
- grid-gap: 10rpx;
- width: 100%;
- & > view {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .iconfont {
- font-size: 30rpx;
- margin-right: 6rpx;
- }
- .icon-Favourites-Add-Large {
- &.active {
- &::before {
- content: '\e669';
- }
- color: $textActionColor;
- }
- }
- button {
- font-size: $fontSize3;
- white-space: nowrap;
- line-height: inherit;
- background-color: transparent;
- border: none;
- view {
- display: flex;
- align-items: center;
- font-size: $fontSize3;
- }
- }
- }
- .activity-props {
- position: relative;
- display: grid;
- grid-template-columns: 1fr;
- grid-row-gap: 12rpx;
- margin-top: 10rpx;
-
- font-size: $fontSize2;
- .activity-prop {
- display: flex;
- align-items: flex-start;
- line-height: 1.6;
- }
- .activity-prop-label {
- padding-right: 4rpx;
- width: 140rpx;
- }
- .activity-prop-text {
- font-weight: bold;
- }
- }
- .activity-image {
- height: 407rpx;
- margin-top: 33rpx;
- }
- .activity-desc {
- display: block;
- margin-top: 47rpx;
- .activity-desc-title {
- font-size: $fontSize6;
- color: #333333;
- line-height: 38rpx;
- }
- .activity-desc-text {
- display: block;
- margin-top: 31rpx;
- }
- }
- .activity-info-flag {
- @include display-flex-center;
- height: 48rpx;
- margin-top: 37rpx;
- margin-bottom: 16rpx;
- background: linear-gradient(259deg, #EA7A01 0%, #F5A201 100%);
- border-radius: 6rpx;
- color: #FFFFFF;
- .iconfont {
- font-size: 22rpx;
- }
- }
- .activity-agenda {
- padding: 20rpx;
- background-color: #E8EBF1;
- border-radius: 6rpx;
- color: #333333;
- .activity-agenda-title, .activity-agenda-guest-title {
- font-weight: bold;
- font-size: $fontSize3;
- line-height: 35rpx;
- }
- .activity-agenda-list {
- display: grid;
- grid-template-columns: 1fr;
- grid-row-gap: 23rpx;
- margin-top: 20rpx;
- }
- .activity-agenda-item {
- display: flex;
- align-items: flex-start;
- font-size: $fontSize2;
- }
- .activity-agenda-item-text {
- margin-left: 4rpx;
- }
- .activity-agenda-guest-title, .activity-agenda-guest-link {
- margin-top: 20rpx;
- }
- .activity-agenda-guest-link {
- .van-button {
- font-size: $fontSize0;
- font-weight: bold;
- }
- }
- }
- .activity-schedule {
- margin-top: 49rpx;
- color: #333333;
- .activity-schedule-title {
- font-size: $fontSize6;
- line-height: 38rpx;
- }
- .activity-schedule-desc {
- margin-top: 20rpx;
- font-size: $fontSize2;
- line-height: 40rpx;
- }
- .activity-schedule-image {
- margin-top: 35rpx;
- }
- }
- .table {
- margin-top: 30rpx;
- .iconfont {
- color: #6A91CE;
- font-size: $fontSize2;
- }
- .thead {
- .tr {
- & > view {
- padding: 4rpx 16rpx;
- color: #7D7D7D;
- }
- }
- }
- .tbody {
- .tr {
- & > view {
- padding: 16rpx;
- background-color: #FFFFFF;
- }
- }
- }
- .tr {
- display: flex;
- margin-bottom: 8rpx;
- font-size: $fontSize1;
- & > view:nth-child(1) {
- width: 40rpx;
- margin-right: 8rpx;
- padding: 16rpx 10rpx;
- }
- & > view:nth-child(2) {
- width: 214rpx;
- }
- & > view:nth-child(3) {
- width: 214rpx;
- }
- & > view:nth-child(4) {
- flex: 1;
- }
- }
- }
- }
- </style>
|