|
@@ -1,7 +1,3 @@
|
|
|
-import icon4 from '@/static/tab/cart2.png'
|
|
|
|
|
-import icon6 from '@/static/tab/my2.png'
|
|
|
|
|
-import class2 from '@/static/tab/class-tab1.png'
|
|
|
|
|
-
|
|
|
|
|
export interface TabbarItem {
|
|
export interface TabbarItem {
|
|
|
name: string
|
|
name: string
|
|
|
value: number | null
|
|
value: number | null
|
|
@@ -13,9 +9,9 @@ export interface TabbarItem {
|
|
|
|
|
|
|
|
const tabbarItems = ref<TabbarItem[]>([
|
|
const tabbarItems = ref<TabbarItem[]>([
|
|
|
{ name: 'smqjh-home', value: null, active: true, title: '首页', icon1: '', icon2: '' },
|
|
{ name: 'smqjh-home', value: null, active: true, title: '首页', icon1: '', icon2: '' },
|
|
|
- { name: 'smqjh-classfiy', value: null, active: false, title: '分类', icon1: '', icon2: class2 },
|
|
|
|
|
- { name: 'smqjh-cart', value: null, active: false, title: '购物车', icon1: '', icon2: icon4 },
|
|
|
|
|
- { name: 'smqjh-my', value: null, active: false, title: '我的', icon1: '', icon2: icon6 },
|
|
|
|
|
|
|
+ { name: 'smqjh-classfiy', value: null, active: false, title: '分类', icon1: '', icon2: '' },
|
|
|
|
|
+ { name: 'smqjh-cart', value: null, active: false, title: '购物车', icon1: '', icon2: '' },
|
|
|
|
|
+ { name: 'smqjh-my', value: null, active: false, title: '我的', icon1: '', icon2: '' },
|
|
|
])
|
|
])
|
|
|
|
|
|
|
|
export function useTabbar() {
|
|
export function useTabbar() {
|