46 lines
812 B
Vue
46 lines
812 B
Vue
![]() |
<!--
|
|||
|
@name: 空购物车
|
|||
|
@author: kahu4
|
|||
|
@date: 2023-11-06 15:59
|
|||
|
@description:CartEmpty
|
|||
|
@update: 2023-11-06 15:59
|
|||
|
-->
|
|||
|
<script setup>
|
|||
|
import Empty from '@/components/Empty/index.vue'
|
|||
|
import emptyIcon from "@/static/icon/empty/购物车.png";
|
|||
|
import { useRouter } from "@/hooks/useRouter";
|
|||
|
|
|||
|
const {pushToTab} = useRouter()
|
|||
|
|
|||
|
</script>
|
|||
|
|
|||
|
<template>
|
|||
|
<Empty
|
|||
|
:iconSrc="emptyIcon"
|
|||
|
>
|
|||
|
<template #default>
|
|||
|
购物车里空空如也~
|
|||
|
</template>
|
|||
|
<template #bottom>
|
|||
|
<view
|
|||
|
class="go-on-btn"
|
|||
|
@click="pushToTab({url:'/pages/index/index'})"
|
|||
|
>
|
|||
|
继续逛逛
|
|||
|
</view>
|
|||
|
</template>
|
|||
|
</Empty>
|
|||
|
</template>
|
|||
|
|
|||
|
<style
|
|||
|
scoped
|
|||
|
lang="scss"
|
|||
|
>
|
|||
|
.go-on-btn {
|
|||
|
padding: 15rpx 50rpx;
|
|||
|
background: $primary-color;
|
|||
|
color: #fff;
|
|||
|
}
|
|||
|
|
|||
|
</style>
|