|
|
|
@ -2,13 +2,20 @@
|
|
|
|
|
import { CloseOutlined, LeftOutlined, RightOutlined } from '@ant-design/icons-vue' |
|
|
|
|
import { Button, Carousel } from 'ant-design-vue' |
|
|
|
|
import { ref } from 'vue' |
|
|
|
|
import { goodsType } from '@/api/recharge/index' |
|
|
|
|
import trumpet from '@/assets/images/recharge/lb.png' |
|
|
|
|
import vip from '@/assets/images/recharge/vip.png' |
|
|
|
|
|
|
|
|
|
import { useRechargeStore } from '@/store/moules/rechareStore' |
|
|
|
|
|
|
|
|
|
const rechargeStore = useRechargeStore() |
|
|
|
|
const carouselRef = ref() |
|
|
|
|
|
|
|
|
|
function getType() { |
|
|
|
|
goodsType().then((res) => { |
|
|
|
|
console.log(res) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
getType() |
|
|
|
|
// 关闭充值弹窗 |
|
|
|
|
function handleClose() { |
|
|
|
|
rechargeStore.rechargeClose() |
|
|
|
@ -85,6 +92,7 @@ function onNextClick() {
|
|
|
|
|
:class="tabClass(index)" |
|
|
|
|
@click="selectTab(index)" |
|
|
|
|
> |
|
|
|
|
<img v-if="index === tabs.length - 1" class="vipphoto" :src="vip" alt=""> |
|
|
|
|
{{ tab.title }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -237,7 +245,7 @@ function onNextClick() {
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
|
.modal-mask { |
|
|
|
|
position: fixed; |
|
|
|
|
|
|
|
|
|
z-index: 9999; |
|
|
|
|
top: 0; |
|
|
|
|
left: 0; |
|
|
|
|
width: 100%; |
|
|
|
@ -374,7 +382,7 @@ function onNextClick() {
|
|
|
|
|
width: 85%; |
|
|
|
|
height: 100%; |
|
|
|
|
margin: 0 auto; |
|
|
|
|
padding: 30px 0; |
|
|
|
|
padding: 20px 0; |
|
|
|
|
.extremebg { |
|
|
|
|
width: 97%; |
|
|
|
|
height: 140px; |
|
|
|
@ -603,6 +611,10 @@ function onNextClick() {
|
|
|
|
|
border-top-left-radius: 22px; |
|
|
|
|
border-top-right-radius: 22px; |
|
|
|
|
overflow: hidden; |
|
|
|
|
.vipphoto { |
|
|
|
|
width: 30px; |
|
|
|
|
height: 30px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.tab { |
|
|
|
@ -616,7 +628,6 @@ function onNextClick() {
|
|
|
|
|
font-family: PingFang-SC, PingFang-SC; |
|
|
|
|
font-weight: bold; |
|
|
|
|
color: #6b2d01; |
|
|
|
|
overflow: hidden; |
|
|
|
|
letter-spacing: 2px; |
|
|
|
|
border-top-left-radius: 12px; |
|
|
|
|
border-top-right-radius: 12px; |
|
|
|
@ -627,22 +638,10 @@ function onNextClick() {
|
|
|
|
|
content: ''; |
|
|
|
|
border-right: 1px solid #f1d7b6; |
|
|
|
|
position: absolute; |
|
|
|
|
top: 0; |
|
|
|
|
top: 6px; |
|
|
|
|
bottom: 6px; |
|
|
|
|
right: 0; |
|
|
|
|
} |
|
|
|
|
.tab:last-child::before { |
|
|
|
|
content: ''; |
|
|
|
|
display: inline-block; |
|
|
|
|
width: 30px; /* 调整宽度 */ |
|
|
|
|
height: 30px; /* 调整高度 */ |
|
|
|
|
background-image: url('@/assets/images/recharge/vip.png'); |
|
|
|
|
background-size: contain; /* 背景图片保持比例填充 */ |
|
|
|
|
background-repeat: no-repeat; /* 防止背景图片重复 */ |
|
|
|
|
margin-right: 5px; |
|
|
|
|
vertical-align: middle; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.tab.active.square { |
|
|
|
|
background-color: white; |
|
|
|
|
} |
|
|
|
@ -650,13 +649,37 @@ function onNextClick() {
|
|
|
|
|
.tab.active.triangle:first-child { |
|
|
|
|
border-top-left-radius: 12px; |
|
|
|
|
background-color: white; |
|
|
|
|
clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); |
|
|
|
|
position: relative; |
|
|
|
|
&::after { |
|
|
|
|
content: ''; |
|
|
|
|
position: absolute; |
|
|
|
|
right: -30px; |
|
|
|
|
width: 0; |
|
|
|
|
height: 0; |
|
|
|
|
z-index: 1; |
|
|
|
|
border-top: 0px solid transparent; |
|
|
|
|
border-right: 30px solid transparent; |
|
|
|
|
border-bottom: 50px solid #ffffff; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.tab.active.triangle:last-child { |
|
|
|
|
border-top-right-radius: 12px; |
|
|
|
|
background-color: #0f0745; |
|
|
|
|
color: #ffac72; |
|
|
|
|
clip-path: polygon(0 0, 100% 0%, 100% 100%, 0 100%); |
|
|
|
|
|
|
|
|
|
&::before { |
|
|
|
|
content: ''; |
|
|
|
|
position: absolute; |
|
|
|
|
left: -25px; |
|
|
|
|
bottom: 0; |
|
|
|
|
width: 0; |
|
|
|
|
height: 0; |
|
|
|
|
z-index: 1; |
|
|
|
|
border-top: 0px solid transparent; |
|
|
|
|
border-left: 30px solid transparent; |
|
|
|
|
border-bottom: 48px solid #0f0745; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
|
|
|
|
|