Files

48 lines
850 B
Vue
Raw Normal View History

2023-11-14 17:21:03 +08:00
<!--
@name: 空购物车
@author: kahu4
@date: 2023-11-06 15:59
@descriptionCartEmpty
@update: 2023-11-06 15:59
-->
<script setup>
import Empty from '@/components/Empty/index.vue'
2023-11-17 20:55:32 +08:00
import { emptyCartIcon } from "@/utils/images";
2023-11-14 17:21:03 +08:00
import { useRouter } from "@/hooks/useRouter";
const {pushToTab} = useRouter()
</script>
<template>
<Empty
2023-11-17 20:55:32 +08:00
:iconSrc="emptyCartIcon"
:padding="'220rpx 0 0 0'"
2023-11-14 17:21:03 +08:00
>
<template #default>
购物车里空空如也
</template>
<template #bottom>
<view
class="go-on-btn"
@click="pushToTab({url:'/root/index/index'})"
2023-11-14 17:21:03 +08:00
>
继续逛逛
</view>
</template>
</Empty>
</template>
<style
scoped
lang="scss"
>
.go-on-btn {
padding: 15rpx 50rpx;
margin-top: 20rpx;
background: #333333;
2023-11-14 17:21:03 +08:00
color: #fff;
}
</style>