You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Sports/pages/achievement/achievement.vue

428 lines
8.3 KiB

<template>
<view>
<view class="topposst">
<view class="top">
弹射者|巅峰速度田径巡回赛
</view>
<image class="topimg" style="width: 100%;height: 282rpx" src="https://sports.njrenzhou.cn/static/bg (2).png"></image>
<view class="topbut">
<view :class="{ topbut1: isActive, 'topbut11': topbut11}" @click="chengji">
成绩查询
</view>
<view :class="{ topbut2: isActive, 'topbut22': topbut22 }" @click="dengji">
等级标准
</view>
</view>
</view>
<view v-if="isActive">
<view class="home-search">
<view class="box">
<image class="search" @click="get_api_cage_list(1)" src="https://sports.njrenzhou.cn/static/sousuo@2x.png"></image>
<input type="search" placeholder="搜索赛站名称" v-model="keyword" />
<!-- <image class="arrow" @click="get_api_cage_list(1)" src="https://sports.njrenzhou.cn/static/jiantou@2x.png"></image> -->
</view>
</view>
<view class="content3" style="margin-top: 20upx;" v-for="(item,idex) in 8" @click="detail">
<view class="content31">
<image class="img31" src="https://sports.njrenzhou.cn/static/bg (1).png" mode=""></image>
</view>
<view class="content32" style="margin-top: 20upx;margin-right: 20upx;">
<text>炽能体育公开赛 邯郸站炽能体 育公开赛 邯郸站</text>
<view class="text31">
比赛日期:2024-04-13~05-02
</view>
<view class="text31">
比赛地点:<span style="color: black;">南京体育中心-体育场</span>
</view>
<view class="icon32" style="margin-top: 20upx;margin-right: 20upx;">
<view class="text32">
<!-- <image class="img32" src="https://sports.njrenzhou.cn/static/人群.png" mode=""></image> -->
<view class="" style="color: #AAAAAA;">1231</view>
</view>
<!-- <image class="img32" src="../../static/bg (1).png" mode=""></image> -->
</view>
</view>
</view>
</view>
<view v-if="!isActive">
<view class="topwenzi">
田径运动员技术等级标准(2021.07.01版)
</view>
<view class="nnbut">
<view :class="active?'nnbut1active':'nnbut1'" @click="isnanv1">男子</view>
<view :class="active?'nnbut2':'nnbut2active'" @click="isnanv2">女子</view>
</view>
<image v-if="active" class="biaozhunimg" src="https://sports.njrenzhou.cn/static/bg (4).png" mode=""></image>
<image v-else class="biaozhunimg" src="https://sports.njrenzhou.cn/static/bg (1).png" mode=""></image>
</view>
</view>
</template>
<script>
export default {
data() {
return {
active:true,
keyword: '',
isActive: true,
topbut22: false,
topbut11: false
}
},
methods: {
detail(){
uni.navigateTo({
url:'/pages/achievement/detail/detail'
})
},
isnanv1(){
if(!this.active){
this.active=!this.active
}
},
isnanv2(){
if(this.active){
this.active=!this.active
}
},
dengji() {
this.isActive = false
this.topbut22 = true
this.topbut11 = true
},
chengji() {
this.isActive = true
this.topbut22 = false
this.topbut11 = false
},
}
}
</script>
<style lang="scss" scoped>
.topposst{
height: 300rpx;
.topimg{
position: fixed;
z-index: 10;
}
}
.nnbut{
display: flex;
justify-content: center;
.nnbut1{
text-align: center;
width: 150rpx;
height: 70rpx;
background: #FFFFFF;
box-shadow: 0rpx 3rpx 12rpx 0rpx rgba(181,40,57,0.1);
border-radius: 35rpx;
line-height: 70rpx;
margin: 30rpx;
}
.nnbut1active{
text-align: center;
width: 150rpx;
height: 70rpx;
background: #CA151F;
box-shadow: 0rpx 3rpx 12rpx 0rpx rgba(181,40,57,0.1);
border-radius: 35rpx;
line-height: 70rpx;
margin: 30rpx;
color: #fff;
}
.nnbut2{
text-align: center;
width: 150rpx;
height: 70rpx;
background: #FFFFFF;
box-shadow: 0rpx 3rpx 12rpx 0rpx rgba(181,40,57,0.1);
border-radius: 35rpx;
line-height: 70rpx;
margin: 30rpx;
margin-left: 0;
}
.nnbut2active{
text-align: center;
width: 150rpx;
height: 70rpx;
background: #CA151F;
box-shadow: 0rpx 3rpx 12rpx 0rpx rgba(181,40,57,0.1);
border-radius: 35rpx;
line-height: 70rpx;
margin: 30rpx;
color: #fff;
}
}
.topwenzi{
margin-top: 40rpx;
margin-left: 108rpx;
font-family: PingFang SC;
font-weight: 500;
font-size: 30rpx;
color: #333333;
// margin-bottom: 29rpx;
}
.biaozhunimg{
width: 750rpx;
height: 100vh;
}
.topbut11 {
width: 351rpx;
height: 70rpx;
background: #fff;
color: #999999;
border-radius: 35rpx;
line-height: 70rpx;
text-align: center;
}
.topbut1 {
width: 351rpx;
height: 70rpx;
background: #FF8D2B;
border-radius: 35rpx;
color: #fff;
line-height: 70rpx;
text-align: center;
}
.topbut22 {
width: 351rpx;
height: 70rpx;
background: #FF8D2B;
border-radius: 35rpx;
color: #fff;
line-height: 70rpx;
text-align: center;
}
.topbut2 {
color: #999999;
line-height: 70rpx;
// text-align: center;
margin-left: 116rpx;
}
.topbut {
display: flex;
width: 702rpx;
height: 70rpx;
margin: 0 auto;
background: #FFFFFF;
border-radius: 35rpx;
position: fixed;
top: 190rpx;
left: 24rpx;
z-index: 20;
}
.top {
position: fixed;
top: 117upx;
left: 25upx;
font-family: PingFang SC;
font-weight: 500;
font-size: 30rpx;
color: #FFFFFF;
z-index: 20;
}
.content3 {
width: 702rpx;
// height: 236rpx;
background: #FFFFFF;
border-radius: 20rpx;
margin: 0 auto;
display: flex;
.content31 {
.img31 {
margin: 30upx;
width: 220rpx;
height: 180rpx;
border-radius: 10rpx;
}
}
}
.icon32 {
display: flex;
justify-content: space-between;
}
.text31 {
font-family: PingFang SC;
font-weight: 500;
font-size: 24rpx;
color: #AAAAAA;
line-height: 40rpx;
}
.text32 {
// width: 100rpx;
// height: 38rpx;
// background: #FF8D2B;
border-radius: 5rpx;
display: flex;
}
.img32 {
width: 40rpx;
height: 40rpx;
// background: #CA151F;
border-radius: 50%;
}
.home {
&-add {
pointer-events: none;
width: 100%;
height: calc(100vh - env(safe-area-inset-bottom) - 50px);
position: fixed;
left: 0;
top: 0;
z-index: 99;
.movableView {
pointer-events: auto;
width: 112rpx;
height: 112rpx;
image {
width: 100%;
height: 100%;
}
}
}
&-navbar {
image {
width: 45rpx;
height: 45rpx;
margin-left: 38rpx;
}
}
&-filter {
width: 100%;
background-color: #efefef;
display: flex;
align-items: center;
.item {
line-height: 85rpx;
width: 20%;
text-align: center;
color: #241b17;
font-size: 30rpx;
&-on {
background-color: #009944;
color: #ffffff;
}
}
}
&-search {
width: 100%;
// background-color: #efefef;
// padding: 15rpx 40rpx;
// border: 1px solid #cacaca;
box-sizing: border-box;
.box {
// position: absolute;
// top: 162rpx;
// left:35rpx ;
margin: 24rpx auto;
display: flex;
align-items: center;
height: 85rpx;
width: 90%;
box-sizing: border-box;
padding: 0 25rpx;
text-align: center;
background-color: #fff;
border-radius: 35rpx;
.search {
width: 40rpx;
height: 40rpx;
}
input {
flex: 1;
color: #241b17;
font-size: 30rpx;
text-align: left;
margin-left: 25rpx;
}
.arrow {
width: 19rpx;
height: 33rpx;
}
}
}
&-list {
overflow: hidden;
padding: 0 0 40rpx;
display: flex;
flex-wrap: wrap;
.item {
width: 134rpx;
margin-top: 40rpx;
overflow: hidden;
margin-left: 40rpx;
.box {
width: 134rpx;
height: 134rpx;
background-size: 100% auto;
position: relative;
box-shadow: 0 8rpx 15rpx #999;
border-radius: 0 0 18rpx 18rpx;
overflow: hidden;
.title {
text-align: center;
font-size: 22rpx;
line-height: 50rpx;
color: #040909;
}
.desc {
margin-top: 12rpx;
text-align: center;
font-size: 22rpx;
line-height: 50rpx;
color: #040909;
}
image {
width: 124rpx;
height: 10rpx;
background-size: 100% auto;
position: absolute;
left: 50%;
margin-left: -62rpx;
bottom: 0;
z-index: 2;
}
}
.sort {
text-align: center;
padding: 10rpx 0 0;
font-size: 27rpx;
color: #040909;
}
}
}
}
</style>