126 lines
2.0 KiB
Vue
126 lines
2.0 KiB
Vue
<template>
|
|
<view class="content">
|
|
<view class="container">
|
|
<view class="my-header">
|
|
<view class="my-icons" @click="goback"> <uni-icons type="left" size="16"></uni-icons> </view>
|
|
<view class="my-text">充值记录</view>
|
|
<view class="my-icons"></view>
|
|
</view>
|
|
<!-- 顶部区域 -->
|
|
<view class="tap-top">
|
|
<view class="tap-box" :class="{ 'act' : tindex == index }" v-for="(item,index) in tapList" :key="index"
|
|
@click="tapindex(index)">
|
|
<view class="">{{ item.text }}</view>
|
|
<view class="gang" :class="{ 'lan' : tindex == index }"></view>
|
|
</view>
|
|
</view>
|
|
<!-- Recharge -->
|
|
<u-empty v-if="list.length == 0 " mode="coupon" text="内容为空"
|
|
icon="http://cdn.uviewui.com/uview/empty/coupon.png">
|
|
</u-empty>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
title: '',
|
|
tindex: 0,
|
|
list: [],
|
|
tapList: [{
|
|
text: "全部"
|
|
},
|
|
{
|
|
text: "储值卡"
|
|
},
|
|
{
|
|
text: "升数卡"
|
|
},
|
|
]
|
|
|
|
|
|
|
|
}
|
|
},
|
|
|
|
components: {
|
|
|
|
},
|
|
methods: {
|
|
tapindex(index) {
|
|
this.tindex = index
|
|
},
|
|
goback() {
|
|
uni.navigateBack()
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.content {
|
|
background: #f4f5f6;
|
|
}
|
|
|
|
.container {
|
|
width: 100%;
|
|
height: 100vh;
|
|
box-sizing: border-box;
|
|
padding-top: 88px;
|
|
}
|
|
|
|
.my-header {
|
|
width: 100%;
|
|
height: 88px;
|
|
background: #ffffff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
color: #000;
|
|
box-sizing: border-box;
|
|
padding: 0px 15px;
|
|
padding-top: 40px;
|
|
|
|
.my-icons {
|
|
width: 20px;
|
|
|
|
}
|
|
|
|
position: fixed;
|
|
top: 0px;
|
|
}
|
|
|
|
.tap-top {
|
|
width: 100%;
|
|
height: 50px;
|
|
background-color: #ffffff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.tap-box {
|
|
width: 33%;
|
|
text-align: center;
|
|
color: #666666;
|
|
}
|
|
|
|
.gang {
|
|
width: 35px;
|
|
height: 4px;
|
|
// background: #0000ff;
|
|
margin: 0 auto;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.act {
|
|
font-weight: bold;
|
|
color: #000;
|
|
}
|
|
|
|
.lan {
|
|
background: #0000ff;
|
|
}
|
|
</style> |