新增营销系统、分销系统、会员功能、门店、提现功能
This commit is contained in:
@ -7,17 +7,23 @@
|
||||
-->
|
||||
<script setup>
|
||||
import Empty from '@/components/Empty/index.vue'
|
||||
import { nextTick, onMounted, ref } from 'vue'
|
||||
import { emptyGoodIcon } from "@/utils/images";
|
||||
import { useRouter } from "@/hooks/useRouter";
|
||||
import Recommend from "@/components/Recommend/index.vue";
|
||||
|
||||
const {pushToTab} = useRouter()
|
||||
const padding = "500rpx 0 0 0"
|
||||
const recommendRef = ref()
|
||||
onMounted(() => {
|
||||
nextTick(() => {
|
||||
recommendRef.value.executeRefresh()
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Empty
|
||||
:iconSrc="emptyGoodIcon"
|
||||
:padding='padding'
|
||||
>
|
||||
<template #default>
|
||||
商品不存在~
|
||||
@ -25,12 +31,14 @@ const padding = "500rpx 0 0 0"
|
||||
<template #bottom>
|
||||
<view
|
||||
class="go-on-btn"
|
||||
@click="pushToTab({url:'/pages/index/index'})"
|
||||
@click="pushToTab({url:'/root/index/index'})"
|
||||
>
|
||||
继续逛逛
|
||||
</view>
|
||||
</template>
|
||||
</Empty>
|
||||
<!-- 商品推荐 -->
|
||||
<Recommend ref="recommendRef" />
|
||||
</template>
|
||||
|
||||
<style
|
||||
@ -39,7 +47,8 @@ const padding = "500rpx 0 0 0"
|
||||
>
|
||||
.go-on-btn {
|
||||
padding: 15rpx 50rpx;
|
||||
background: $primary-color;
|
||||
margin-top: 20rpx;
|
||||
background: #333333;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user