183 lines
6.9 KiB
Vue
183 lines
6.9 KiB
Vue
<template>
|
|
<view style="background-color: #EBF4F7;letter-spacing: 1rpx;">
|
|
<tn-nav-bar :isBack="false" :bottomShadow="true" backgroundColor="#FFFFFF">
|
|
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
|
|
<view class="tn-margin-top"
|
|
style="text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;">
|
|
<tn-tabs :list="[{name:'智慧云商协'}]" :current="topCurrent" activeColor="#000" :bold="false"
|
|
:fontSize="36"></tn-tabs>
|
|
</view>
|
|
</view>
|
|
</tn-nav-bar>
|
|
<view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
|
|
<view class="tn-flex tn-flex-center tn-flex-col-center tn-flex-row-between" style="padding-top: 30rpx;">
|
|
<view class="tn-color-gray--dark"
|
|
style="width: 100%;margin: 0rpx 30rpx 0 30rpx;border-radius: 100rpx;padding-left: 6rpx;background-color: #ffffff;"
|
|
@click="openUrl('/pages/index/search/search')">
|
|
<tn-notice-bar :list="searlist" mode="vertical" leftIconName="search"
|
|
:duration="6000"></tn-notice-bar>
|
|
</view>
|
|
<view class="tn-flex" style="margin:0px 30rpx;">
|
|
<image src="/static/t1.png" style="width: 35rpx;height: 35rpx;"></image>
|
|
<image src="/static/t2.png" style="width: 35rpx;height: 35rpx;margin-left: 40rpx;"></image>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<swiper class="card-swiper" :circular="true" :autoplay="true" duration="500" interval="8000"
|
|
@change="cardSwiper">
|
|
<swiper-item v-for="(item,index) in swiperList" :key="index" :class="cardCur==index?'cur':''">
|
|
<view class="swiper-item image-banner"
|
|
:style="'background-image:url('+ item.url + ');background-size: cover;border-radius: 15rpx;'">
|
|
</view>
|
|
</swiper-item>
|
|
</swiper>
|
|
<view class="indication">
|
|
<block v-for="(item,index) in swiperList" :key="index">
|
|
<view class="spot" :class="cardCur==index?'active':''"></view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center"
|
|
style="padding:0px 30rpx 0rpx 30rpx;text-align: center;font-size: 28rpx;">
|
|
<view @click="openUrl()"
|
|
style="width: 25%;background: linear-gradient(270deg, #3CBAEA, #6BC7F0);;border-radius: 16rpx;padding:35rpx 20rpx;">
|
|
<view>
|
|
<image src="/static/c3.png" style="width: 35rpx;height: 35rpx;vertical-align: middle;">
|
|
</image>
|
|
</view>
|
|
<view style="margin-top: 10rpx;">
|
|
<text style="color: #FFF;">组织架构</text>
|
|
</view>
|
|
</view>
|
|
<view @click="openUrl('/pages/index/events_list')"
|
|
style="width: 25%;background: linear-gradient(270deg, #EE7E45, #EE9657);border-radius: 16rpx;padding:35rpx 20rpx;margin-left:10rpx;">
|
|
<view>
|
|
<image src="/static/c2.png" style="width: 35rpx;height: 35rpx;vertical-align: middle;">
|
|
</image>
|
|
</view>
|
|
<view style="margin-top: 10rpx;">
|
|
<text style="color: #FFF;">协会活动</text>
|
|
</view>
|
|
</view>
|
|
<view @click="openUrl('/pages/index/directory')"
|
|
style="width: 25%;background: linear-gradient(270deg, #45B335, #89C33D);border-radius: 16rpx;padding:35rpx 20rpx;margin-left:10rpx;">
|
|
<view>
|
|
<image src="/static/c1.png" style="width: 35rpx;height: 35rpx;vertical-align: middle;">
|
|
</image>
|
|
</view>
|
|
<view style="margin-top: 10rpx;">
|
|
<text style="color: #FFF;">通讯录</text>
|
|
</view>
|
|
|
|
</view>
|
|
<view @click="openUrl('/pages/index/knowledge_list')"
|
|
style="width: 25%;background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);;border-radius: 16rpx;padding:35rpx 20rpx;margin-left:10rpx;">
|
|
<view>
|
|
<image src="/static/c1.png" style="width: 35rpx;height: 35rpx;vertical-align: middle;">
|
|
</image>
|
|
</view>
|
|
<view style="margin-top: 10rpx;">
|
|
<text style="color: #FFF;">商学院</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view @click.stop="openUrl('/pages/index/events_list')"
|
|
class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center" style="padding: 30rpx;">
|
|
<view style="font-size: 36rpx;">协会活动</view>
|
|
<view style="color: #808080;">
|
|
<text>更多</text>
|
|
<text class="tn-icon-right"></text>
|
|
</view>
|
|
</view>
|
|
<view style="padding-bottom: 30rpx;">
|
|
<scroll-view :scroll-x="true" style="padding:0rpx 30rpx;white-space: nowrap;">
|
|
<view v-for="(item,index) in 3" @click="openUrl('/pages/index/new_info')"
|
|
style="position: relative;;display: inline-block;width: 300rpx;text-align: center;background-color: #FFF;border-radius: 20rpx;overflow: hidden;margin-right: 20rpx;">
|
|
<view>
|
|
<image src="/static/hd1.jpg" mode="widthFix" style="width: 300rpx;"></image>
|
|
</view>
|
|
<view style="padding:10rpx 20rpx;font-weight: 400;">
|
|
<view class="tn-text-ellipsis-2" style="letter-spacing: 1px;">青年企业家能力提升 计划培训班(第20期)</view>
|
|
</view>
|
|
<view style="position: absolute;top: 10rpx;left: 10rpx;">
|
|
<tn-button v-if="index==0" width="80rpx" height="40rpx" size="sm" backgroundColor="#6BC7F0 "
|
|
fontColor="tn-color-white">报名中</tn-button>
|
|
<tn-button v-if="index==1" width="80rpx" height="40rpx" size="sm" backgroundColor="#EE9556 "
|
|
fontColor="tn-color-white">预告</tn-button>
|
|
<tn-button v-if="index==2" width="80rpx" height="40rpx" size="sm" backgroundColor="#E12B33 "
|
|
fontColor="tn-color-white">进行中</tn-button>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
<view style="background-color: #ffffff;">
|
|
<tn-tabs :list="list" :isScroll="true" :activeItemStyle="{fontSize:'35rpx',fontWeight:'600'}"
|
|
style="font-weight: ;" activeColor="#000000" :current="current" name="name" @change="change"
|
|
:fontSize="28"></tn-tabs>
|
|
</view>
|
|
<view style="padding:10px 30rpx;">
|
|
<view v-for="(item,index) in 5" class="tn-flex tn-flex-row-between"
|
|
@click="openUrl('/pages/index/new_info')"
|
|
style="background-color: #ffffff;padding: 20rpx;border-radius: 10rpx;margin-bottom: 10rpx;">
|
|
<view style="position:relative;">
|
|
<view style="font-size: 28rpx;">团省委书记王笃波一行到访中青 企协开展对接洽谈</view>
|
|
<view class="tn-flex tn-flex-row-between"
|
|
style="position: absolute;bottom: 0rpx;width: 100%;color: #808080;">
|
|
<view>河南青企协</view>
|
|
<view>
|
|
<text class="tn-icon-eye"></text>
|
|
<text>568</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view style="margin-left: 20rpx;">
|
|
<image src="/static/c1.jpg" style="width: 240rpx;border-radius: 10rpx;" mode="widthFix"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
topCurrent: 0,
|
|
searlist: [
|
|
'企业家名称/公司名称',
|
|
],
|
|
cardCur: 0,
|
|
isAndroid: true,
|
|
swiperList: [{
|
|
url: '/static/banner.jpg',
|
|
}],
|
|
list: [{
|
|
name: '最新'
|
|
}, {
|
|
name: '协会动态'
|
|
}, {
|
|
name: '协会新闻',
|
|
}, {
|
|
name: '学习考察',
|
|
}],
|
|
current: 0
|
|
}
|
|
},
|
|
methods: {
|
|
change(e) {
|
|
this.current = e;
|
|
},
|
|
openUrl(url) {
|
|
uni.navigateTo({
|
|
url: url
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
</style> |