oil-station/gasStation-uni/pagesMy/CardManagement/CardManagement.vue
2023-12-18 16:31:53 +08:00

221 lines
3.8 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>
<view class="hong-card">
<view class="top-hang">
<view class="hgang"></view>
<view class="">加油站名称</view>
</view>
<view class="title-box">屯油卡</view>
<view class="red-bottom">
<view class="x-size">
<view class="">卡券卡密</view>
<view class="">**** **** **** 970</view>
</view>
<view class="r-anniu">
<span>去完成</span>
</view>
</view>
</view>
<view class="x_anniu" @click="goDetail()">
<uni-icons type="plusempty" color="#fff" size="30"></uni-icons>
</view>
<!-- <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,
tapList: [{
text: "子卡管理"
},
{
text: "交易统计"
},
],
list: []
}
},
components: {
},
methods: {
tapindex(index) {
this.tindex = index
},
goDetail() {
uni.navigateTo({
url: '/pagesMy/CardManagement/Detail'
})
},
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: 50%;
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;
}
.hong-card {
width: 95%;
margin: 10px auto;
height: 114px;
background: linear-gradient(90deg, #EC703B 0%, #EA392A 100%);
border-radius: 8px 8px 8px 8px;
box-sizing: border-box;
padding: 10px;
}
.top-hang {
display: flex;
align-items: center;
width: 100%;
box-sizing: border-box;
padding-bottom: 5px;
border-bottom: 1px dashed #ffffff;
color: #ffffff;
}
.hgang {
width: 3px;
height: 12px;
background: #F8A82F;
border-radius: 2px;
margin-right: 5px;
}
.title-box {
font-size: 18px;
font-weight: bold;
color: #ffffff;
margin: 5px 0px;
}
.red-bottom {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.x-size {
font-size: 12px;
font-weight: 400;
color: rgba(255, 255, 255, 0.6);
}
.r-anniu {
display: flex;
align-items: center;
justify-content: center;
color: #ffffff;
width: 74px;
height: 30px;
background: #F8A82F;
font-size: 14px;
border-radius: 50px;
}
.x_anniu {
position: fixed;
bottom: 50px;
right: 30px;
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background-color: #0000ff;
}
</style>