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.
90 lines
1.8 KiB
90 lines
1.8 KiB
<template>
|
|
<view class="member">
|
|
<view >
|
|
<u-navbar title="邀请记录" back-icon-color="#fff" :border-bottom="false" title-color="#333" :background="background"></u-navbar>
|
|
</view>
|
|
<view class="tab">
|
|
<view class="tabList">
|
|
<view v-for="(item,index) in tabList" :key="index" class="tabItem">
|
|
<view class="name" :style="{'color':item.value==chosed?'#FF4C4B':'#7A7A7A'}">
|
|
{{item.name}}
|
|
</view>
|
|
<view class="line" v-if="item.value==chosed">
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import img from "@/static/member/top.png"
|
|
export default{
|
|
data(){
|
|
return{
|
|
background: {
|
|
background: 'url('+ img+') center top no-repeat',
|
|
backgroundSize: '100% auto',
|
|
},
|
|
chosed:'0',
|
|
tabList:[
|
|
{
|
|
name:'待完成',
|
|
value:'0'
|
|
},{
|
|
name:'已完成',
|
|
value:'1'
|
|
},{
|
|
name:'已完成',
|
|
value:'2'
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.member{
|
|
width: 100%;
|
|
background: url('../../static/member/merBack.png') 100% no-repeat;
|
|
background-size: 100% 100%;
|
|
position:relative;
|
|
}
|
|
.tab{
|
|
width: 682rpx;
|
|
height: 692rpx;
|
|
background: #FFFFFF;
|
|
border-radius: 10rpx 10rpx 10rpx 10rpx;
|
|
opacity: 1;
|
|
margin: 48rpx 0 0 42rpx;
|
|
padding-top: 20rpx;
|
|
.tabList{
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
.tabItem{
|
|
.name{
|
|
width: 96rpx;
|
|
height: 60rpx;
|
|
font-size: 32rpx;
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-weight: 600;
|
|
line-height: 44rpx;
|
|
}
|
|
|
|
.line{
|
|
width: 48rpx;
|
|
height: 6rpx;
|
|
background: #FF4C4B;
|
|
border-radius: 56rpx 56rpx 56rpx 56rpx;
|
|
opacity: 1;
|
|
margin-top: 10rpx;
|
|
margin-left: 24rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style> |