93 lines
1.7 KiB
Vue
93 lines
1.7 KiB
Vue
|
|
<template>
|
||
|
|
<div class="detail">
|
||
|
|
<!-- tab栏 -->
|
||
|
|
<div class="tab-select">
|
||
|
|
<div class="item" :class="tabIndex == index ? 'active' : ''" v-for="(item, index) in tabs" :key="index" @click="tabClick(index)">{{item}}<span></span></div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- 搜索框 -->
|
||
|
|
<div class="search-box">
|
||
|
|
<div class="integral-types" @click="changeType">积分类型<u-icon name="arrow-down"></u-icon></div>
|
||
|
|
<u-search placeholder="请输入关键字" v-model="keyword" :show-action="false"></u-search>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
export default {
|
||
|
|
name: 'detail',
|
||
|
|
data () {
|
||
|
|
return {
|
||
|
|
tabs: ['全部', '待审核', '已审核'],
|
||
|
|
tabIndex: 0
|
||
|
|
|
||
|
|
}
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
|
changeType() {},
|
||
|
|
|
||
|
|
},
|
||
|
|
onShow() {
|
||
|
|
document.title = '积分审核'
|
||
|
|
},
|
||
|
|
onLoad() {
|
||
|
|
|
||
|
|
},
|
||
|
|
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style lang="scss" scoped>
|
||
|
|
.detail {
|
||
|
|
|
||
|
|
.tab-select {
|
||
|
|
width: 100%;
|
||
|
|
height: 96px;
|
||
|
|
line-height: 96px;
|
||
|
|
background: #3975C6;
|
||
|
|
display: flex;
|
||
|
|
|
||
|
|
.item{
|
||
|
|
flex: 1;
|
||
|
|
text-align: center;
|
||
|
|
font-size: 28px;
|
||
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
||
|
|
color: #CDDCF0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.active{
|
||
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
||
|
|
font-weight: 500;
|
||
|
|
position: relative;
|
||
|
|
color: #fff;
|
||
|
|
span{
|
||
|
|
width: 48px;
|
||
|
|
height: 4px;
|
||
|
|
background: #FFF;
|
||
|
|
position: absolute;
|
||
|
|
bottom: 14px;
|
||
|
|
left: 50%;
|
||
|
|
margin-left: -24px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box {
|
||
|
|
display: flex;
|
||
|
|
width: 100%;
|
||
|
|
height: 112px;
|
||
|
|
line-height: 112px;
|
||
|
|
background-color: #FFFFFF;
|
||
|
|
padding: 0 32px;
|
||
|
|
box-sizing: border-box;
|
||
|
|
|
||
|
|
.integral-types {
|
||
|
|
width: 30%;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
</style>
|