|
@@ -1,168 +1,168 @@
|
|
|
<template>
|
|
|
- <div style="background: #f0f0f0;padding-bottom:50px">
|
|
|
- <div class="banner">
|
|
|
- <img src="~@/assets/images/yxfw.jpg" alt="">
|
|
|
+ <div style="background: #f0f0f0;padding-bottom:50px">
|
|
|
+ <div class="banner">
|
|
|
+ <img src="~@/assets/images/yxfw.jpg" alt="">
|
|
|
+ </div>
|
|
|
+ <div class="bread">
|
|
|
+ <div>
|
|
|
+ <span>当前位置:首页-<span style="color: rgba(75, 175, 227, 1)">企业活动</span></span>
|
|
|
+ <div>
|
|
|
+ <ul class="area-nav">
|
|
|
+ <li><router-link :to="{path: '/service/characteristic'}">资源发布</router-link></li>
|
|
|
+ <li><router-link :to="{path: '/zhaoshang/list'}">政策服务</router-link></li>
|
|
|
+ <li class="tabs"><router-link :to="{path: '/service/activities'}">企业活动</router-link></li>
|
|
|
+ <li><router-link :to="{path: '/service/educate'}">园区培训</router-link></li>
|
|
|
+ </ul>
|
|
|
</div>
|
|
|
- <div class="bread">
|
|
|
- <div>
|
|
|
- <span>当前位置:首页-园区活动</span>
|
|
|
- <div>
|
|
|
- <ul class="area-nav">
|
|
|
- <li><router-link :to="{path: '/service/characteristic'}">服务特色</router-link></li>
|
|
|
- <li><router-link :to="{path: '/service/periphery'}">园区周边</router-link></li>
|
|
|
- <li class="tabs"><router-link :to="{path: '/service/activities'}">园区活动</router-link></li>
|
|
|
- <li><router-link :to="{path: '/service/educate'}">园区培训</router-link></li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="smart-device">
|
|
|
+ <div class="smart-title">
|
|
|
+ <span><span>园区活动</span>PARK AVTIVITIES</span>
|
|
|
+ </div>
|
|
|
+ <div class="smart-device-content">
|
|
|
+ <div class="nav-company">
|
|
|
+ <div>
|
|
|
+ <ul>
|
|
|
+ <li v-for="item in activeType" :class="active===item.value?'active':''" @click="changeType(item.value)">
|
|
|
+ <span>{{ item.label }}</span>
|
|
|
+ </li>
|
|
|
+ <!-- <li :class="active==1?'active':''" @click="changeType('1')"><span>全部</span></li>-->
|
|
|
+ <!-- <li :class="active==2?'active':''" @click="changeType('2')"><span>培训</span></li>-->
|
|
|
+ <!-- <li :class="active==3?'active':''" @click="changeType('3')"><span>私募</span></li>-->
|
|
|
+ <!-- <li :class="active==4?'active':''" @click="changeType('4')"><span>法务</span></li>-->
|
|
|
+ <!-- <li :class="active==5?'active':''" @click="changeType('5')"><span>财税</span></li>-->
|
|
|
+ <!-- <li :class="active==6?'active':''" @click="changeType('6')"><span>培训</span></li>-->
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="smart-device">
|
|
|
- <div class="smart-title">
|
|
|
- <span><span>园区活动</span>PARK AVTIVITIES</span>
|
|
|
- </div>
|
|
|
- <div class="smart-device-content">
|
|
|
- <div class="nav-company">
|
|
|
- <div>
|
|
|
- <ul>
|
|
|
- <li v-for="item in activeType" :class="active===item.value?'active':''" @click="changeType(item.value)">
|
|
|
- <span>{{item.label}}</span>
|
|
|
- </li>
|
|
|
-<!-- <li :class="active==1?'active':''" @click="changeType('1')"><span>全部</span></li>-->
|
|
|
-<!-- <li :class="active==2?'active':''" @click="changeType('2')"><span>培训</span></li>-->
|
|
|
-<!-- <li :class="active==3?'active':''" @click="changeType('3')"><span>私募</span></li>-->
|
|
|
-<!-- <li :class="active==4?'active':''" @click="changeType('4')"><span>法务</span></li>-->
|
|
|
-<!-- <li :class="active==5?'active':''" @click="changeType('5')"><span>财税</span></li>-->
|
|
|
-<!-- <li :class="active==6?'active':''" @click="changeType('6')"><span>培训</span></li>-->
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
+ <ul class="company-list">
|
|
|
+ <li v-for="(item,index) in zsList" :key="index" @click="detail(item.id)">
|
|
|
+ <div class="wrap-device-detail">
|
|
|
+ <div class="c-logo">
|
|
|
+ <!-- <img :src="require('../../../assets/images/'+item.img)" alt="">-->
|
|
|
+ <img :src="'https://smartpark.idea-sf.com'+item.img" alt="">
|
|
|
+ </div>
|
|
|
+ <div class="wrap-content">
|
|
|
+ <div class="c-content">
|
|
|
+ <span>{{ item.createTime }}</span>
|
|
|
+ <h3>{{ item.name }}</h3>
|
|
|
</div>
|
|
|
- <ul class="company-list">
|
|
|
- <li v-for="(item,index) in zsList" :key="index" @click="detail(item.id)">
|
|
|
- <div class="wrap-device-detail">
|
|
|
- <div class="c-logo">
|
|
|
-<!-- <img :src="require('../../../assets/images/'+item.img)" alt="">-->
|
|
|
- <img :src="'https://smartpark.idea-sf.com'+item.img" alt="">
|
|
|
- </div>
|
|
|
- <div class="wrap-content">
|
|
|
- <div class="c-content">
|
|
|
- <span>{{item.createTime}}</span>
|
|
|
- <h3>{{item.name}}</h3>
|
|
|
- </div>
|
|
|
- <div class="detail-btn">
|
|
|
- <div class="a-status">
|
|
|
- <span v-if="item.status==2" class="over">已结束</span>
|
|
|
- <span v-else class="loading">报名中</span>
|
|
|
- <span v-if="item.status==2" class="over">活动风采</span>
|
|
|
- </div>
|
|
|
- <div class="a-option">
|
|
|
- <span>参与人数:{{item.num}}</span>
|
|
|
- <span>查看详情</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- <div class="paginationo-box">
|
|
|
- <van-pagination v-model="search.pageNum" :total-items="total" :show-page-size="10" @change="handleCurrentChange">
|
|
|
- <template #prev-text>
|
|
|
- <van-icon name="arrow-left" />
|
|
|
- </template>
|
|
|
- <template #next-text>
|
|
|
- <van-icon name="arrow" />
|
|
|
- </template>
|
|
|
- <template #page="{ text }">{{ text }}</template>
|
|
|
- </van-pagination>
|
|
|
+ <div class="detail-btn">
|
|
|
+ <div class="a-status">
|
|
|
+ <span v-if="item.status==2" class="over">已结束</span>
|
|
|
+ <span v-else class="loading">报名中</span>
|
|
|
+ <span v-if="item.status==2" class="over">活动风采</span>
|
|
|
+ </div>
|
|
|
+ <div class="a-option">
|
|
|
+ <span>参与人数:{{ item.num }}</span>
|
|
|
+ <span>查看详情</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <div class="paginationo-box">
|
|
|
+ <van-pagination v-model="search.pageNum" :total-items="total" :show-page-size="10" @change="handleCurrentChange">
|
|
|
+ <template #prev-text>
|
|
|
+ <van-icon name="arrow-left" />
|
|
|
+ </template>
|
|
|
+ <template #next-text>
|
|
|
+ <van-icon name="arrow" />
|
|
|
+ </template>
|
|
|
+ <template #page="{ text }">{{ text }}</template>
|
|
|
+ </van-pagination>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {websiteActivityPage} from "@/service/api_service";
|
|
|
+import { websiteActivityPage } from '@/service/api_service'
|
|
|
import Base from '@/views/base/base'
|
|
|
import BaseData from '@/views/base/baseData'
|
|
|
- export default {
|
|
|
- mixins: [Base, BaseData],
|
|
|
- data () {
|
|
|
- return {
|
|
|
- dc_key: ['activityType'],
|
|
|
- active:'',
|
|
|
- currentPage:1,
|
|
|
- total:0,
|
|
|
- zsList:[
|
|
|
- // {
|
|
|
- // img:'n1.png',
|
|
|
- // name:'互联网私募如何入门',
|
|
|
- // eventIndex:1,
|
|
|
- // createTime:'2012-12-12',
|
|
|
- // num:1,
|
|
|
- // status:1,
|
|
|
- // detail:'互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门'
|
|
|
- // },
|
|
|
- ],
|
|
|
- activeType:[],
|
|
|
- search:{
|
|
|
- pageSize:10,
|
|
|
- pageNum:1,
|
|
|
- publishStatus:'2'
|
|
|
- }
|
|
|
+export default {
|
|
|
+ mixins: [Base, BaseData],
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ dc_key: ['activityType'],
|
|
|
+ active: '',
|
|
|
+ currentPage: 1,
|
|
|
+ total: 0,
|
|
|
+ zsList: [
|
|
|
+ // {
|
|
|
+ // img:'n1.png',
|
|
|
+ // name:'互联网私募如何入门',
|
|
|
+ // eventIndex:1,
|
|
|
+ // createTime:'2012-12-12',
|
|
|
+ // num:1,
|
|
|
+ // status:1,
|
|
|
+ // detail:'互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门互联网私募如何入门'
|
|
|
+ // },
|
|
|
+ ],
|
|
|
+ activeType: [],
|
|
|
+ search: {
|
|
|
+ pageSize: 10,
|
|
|
+ pageNum: 1,
|
|
|
+ publishStatus: '2'
|
|
|
}
|
|
|
- },
|
|
|
- mounted() {
|
|
|
- this.initDict(this.dc_key,true).then((res) => {
|
|
|
- this.activeType = this.dc_data.activityType
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.initDict(this.dc_key, true).then((res) => {
|
|
|
+ this.activeType = this.dc_data.activityType
|
|
|
this.getData()
|
|
|
- })
|
|
|
- document.documentElement.scrollTop = document.body.scrollTop =0; //回到顶部
|
|
|
- },
|
|
|
- methods: {
|
|
|
- changeType(active){
|
|
|
+ })
|
|
|
+ document.documentElement.scrollTop = document.body.scrollTop = 0 // 回到顶部
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ changeType(active) {
|
|
|
this.search.pageNum = 1
|
|
|
- this.active=active
|
|
|
+ this.active = active
|
|
|
this.getData()
|
|
|
- },
|
|
|
- handleCurrentChange: function(val) {
|
|
|
+ },
|
|
|
+ handleCurrentChange: function(val) {
|
|
|
this.search.pageNum = val
|
|
|
this.getData()
|
|
|
- },
|
|
|
- getData(){
|
|
|
- if(this.active===0){
|
|
|
- this.search.trainType=''
|
|
|
- }else{
|
|
|
- this.search.activityType=this.active
|
|
|
+ },
|
|
|
+ getData() {
|
|
|
+ if (this.active === 0) {
|
|
|
+ this.search.trainType = ''
|
|
|
+ } else {
|
|
|
+ this.search.activityType = this.active
|
|
|
}
|
|
|
- websiteActivityPage(this.search).then((res)=>{
|
|
|
- if(res.rows){
|
|
|
- this.total = res.total
|
|
|
- this.zsList = []
|
|
|
- res.rows.forEach(item=>{
|
|
|
- let url = ''
|
|
|
- if(item.activityAnnex&&item.activityAnnex.length>2){
|
|
|
- const annex = this.$common.castEval(item.activityAnnex)
|
|
|
- url = annex[0].url
|
|
|
- }
|
|
|
- const i = {
|
|
|
- id:item.id,
|
|
|
- img:this.$common.replaceWxDownload(url),
|
|
|
- name:item.activityName,
|
|
|
- eventIndex:item.registrationStatus,
|
|
|
- createTime:this.$common.transServDate(item.publishDate),
|
|
|
- num:item.partakeNumber,
|
|
|
- status:item.registrationStatus,
|
|
|
- detail:''
|
|
|
- }
|
|
|
- this.zsList.push(i)
|
|
|
- })
|
|
|
- }
|
|
|
+ websiteActivityPage(this.search).then((res) => {
|
|
|
+ if (res.rows) {
|
|
|
+ this.total = res.total
|
|
|
+ this.zsList = []
|
|
|
+ res.rows.forEach(item => {
|
|
|
+ let url = ''
|
|
|
+ if (item.activityAnnex && item.activityAnnex.length > 2) {
|
|
|
+ const annex = this.$common.castEval(item.activityAnnex)
|
|
|
+ url = annex[0].url
|
|
|
+ }
|
|
|
+ const i = {
|
|
|
+ id: item.id,
|
|
|
+ img: this.$common.replaceWxDownload(url),
|
|
|
+ name: item.activityName,
|
|
|
+ eventIndex: item.registrationStatus,
|
|
|
+ createTime: this.$common.transServDate(item.publishDate),
|
|
|
+ num: item.partakeNumber,
|
|
|
+ status: item.registrationStatus,
|
|
|
+ detail: ''
|
|
|
+ }
|
|
|
+ this.zsList.push(i)
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
- },
|
|
|
- detail(index){
|
|
|
- this.$router.push({path:'/service/detail?id='+index})
|
|
|
- }
|
|
|
},
|
|
|
- };
|
|
|
+ detail(index) {
|
|
|
+ this.$router.push({ path: '/service/detail?id=' + index })
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|