yunshangxie/pages/index/events_list.vue

74 lines
2.4 KiB
Vue

<template>
<view style="background-color: #EBF4F7;letter-spacing: 1rpx;">
<tn-nav-bar :isBack="false" backTitle="" :bottomShadow="true" backgroundColor="#FFFFFF">
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
<view style="padding-left: 15rpx;" @click="goBack()">
<text class="tn-icon-left" style="font-size: 40rpx;"></text>
</view>
<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 style="padding:10px 30rpx;">
<view v-for="(item,index) in 10" class="tn-flex tn-flex-row-between"
@click="openUrl('/pages/index/events_info')"
style="background-color: #ffffff;padding: 20rpx;border-radius: 10rpx;margin-bottom: 10rpx;">
<view style="position:relative;">
<view style="font-size: 28rpx;">青年企业家能力提升 计划培训班(第20期)</view>
<view class="tn-flex tn-flex-row-between"
style="position: absolute;bottom: 0rpx;width: 100%;color: #808080;">
<view>2023-12-25</view>
<view>
<tn-button v-if="index%2==0&&index!=2" padding="0px" width="100rpx" height="40rpx"
size="sm" backgroundColor="#6BC7F0 " fontColor="tn-color-white">报名中</tn-button>
<tn-button v-if="index%2==1&&index!=2" padding="0px" width="100rpx" height="40rpx"
size="sm" backgroundColor="#EE9556 " fontColor="tn-color-white">预告</tn-button>
<tn-button v-if="index==2" padding="0px" width="100rpx" height="40rpx" size="sm"
backgroundColor="#E12B33 " fontColor="tn-color-white">进行中</tn-button>
</view>
</view>
</view>
<view style="margin-left: 20rpx;">
<image src="/static/hd1.jpg" style="width: 200rpx;height: 135rpx;;border-radius: 10rpx;">
</image>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
topCurrent: 0
}
},
methods: {
openUrl(url) {
uni.navigateTo({
url: url
})
},
goBack() {
if (getCurrentPages().length > 1) {
uni.navigateBack()
} else {
uni.redirectTo({
url: '/pages/index/index'
})
}
}
}
}
</script>
<style>
</style>