2023-11-30 17:28:36 +08:00
|
|
|
|
<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="ba-box">
|
|
|
|
|
<u-tabs :list="list1" @click="click"></u-tabs>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="box-bb">
|
|
|
|
|
<view class="box-ll" :class="{ 'lan' : tabindex == index }" v-for="(item,index) in tapList" :key="index"
|
|
|
|
|
@click="gettabingex(index)">
|
|
|
|
|
<view class="">{{item.name}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="card-box" v-for="(item,index) in 3" :key="index">
|
|
|
|
|
<view class="left-img">
|
|
|
|
|
<view class="huiz">¥120</view>
|
|
|
|
|
<view class="cbai">优惠券</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="right-box">
|
|
|
|
|
<view class="title">新用户专享5折券</view>
|
|
|
|
|
<view class="hui-size">部分产品可用、满240可用、此券定期可用...</view>
|
|
|
|
|
<view class="dis-bt">
|
|
|
|
|
<view class="hui-size">有效期:2023-11-30</view>
|
|
|
|
|
<view class="anniu">
|
|
|
|
|
<text>立即使用</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
title: '',
|
|
|
|
|
tabindex: 0,
|
|
|
|
|
tapList: [{
|
|
|
|
|
name: "未使用"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "已使用"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "已失效"
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
list1: [{
|
|
|
|
|
name: '全部',
|
|
|
|
|
}, {
|
2023-12-09 13:13:47 +08:00
|
|
|
|
name: '优惠券',
|
2023-11-30 17:28:36 +08:00
|
|
|
|
}, {
|
|
|
|
|
name: '兑换券'
|
|
|
|
|
}, {
|
|
|
|
|
name: '洗车券'
|
|
|
|
|
}, {
|
|
|
|
|
name: '洗车卡'
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
components: {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
click(item) {
|
|
|
|
|
console.log('item', item);
|
|
|
|
|
},
|
|
|
|
|
gettabingex(index) {
|
|
|
|
|
this.tabindex = 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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.card-box {
|
|
|
|
|
width: 95%;
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding: 15px;
|
|
|
|
|
margin: 10px auto;
|
|
|
|
|
display: flex;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.right-box {
|
|
|
|
|
width: 80%;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.left-img {
|
|
|
|
|
width: 70px;
|
|
|
|
|
height: 70px;
|
|
|
|
|
background: url('http://47.95.206.185:83/hbao.png')center no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dis-bt {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding-top: 5px;
|
|
|
|
|
border-top: 1px solid #f4f5f6;
|
|
|
|
|
margin-top: 5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.hui-size {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: #999999;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #333333;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.anniu {
|
|
|
|
|
width: 64px;
|
|
|
|
|
height: 24px;
|
|
|
|
|
background: linear-gradient(90deg, #FC3E33 0%, #FF6B40 100%);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
border-radius: 50px;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.huiz {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
margin: 12px 0px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: #8F5624;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.cbai {
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: #ffffff;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ba-box {
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box-bb {
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
padding: 10px 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box-ll {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
border-radius: 50px;
|
|
|
|
|
background: #eff2f2;
|
|
|
|
|
color: #8d8f8f;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
padding: 4px 10px;
|
|
|
|
|
margin-right: 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.lan {
|
|
|
|
|
background: #ecf5ff !important;
|
|
|
|
|
color: #8179ff;
|
|
|
|
|
}
|
2023-12-09 13:13:47 +08:00
|
|
|
|
</style>
|