From 7ee83f2661b4b62b2f8214dda0457ff487a31d7c Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Wed, 25 Sep 2024 14:58:15 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=96=B0=E5=A2=9E=E5=BA=95=E9=83=A8=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E5=8D=95=E7=8B=AC=E9=85=8D=E7=BD=AE=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/main/default/footer-nav.ts | 52 +++++++++++++++--- .../components/main/default/footer-nav.ts | 54 +++++++++++++++---- 2 files changed, 89 insertions(+), 17 deletions(-) diff --git a/src/views/layout/components/main/default/footer-nav.ts b/src/views/layout/components/main/default/footer-nav.ts index 3f075157..3740e7e5 100644 --- a/src/views/layout/components/main/default/footer-nav.ts +++ b/src/views/layout/components/main/default/footer-nav.ts @@ -3,8 +3,8 @@ import { online_url } from '@/utils'; const new_url = await online_url('/static/app/tabbar/').then((res) => res); interface DefaultFooterNav { content: { - nav_style: number; - nav_type: number; + nav_style: string; + nav_type: string; nav_content: { id: string; name: string; img: uploadList[]; img_checked: uploadList[]; link: object }[]; }; style: { @@ -15,13 +15,49 @@ interface DefaultFooterNav { } const defaultFooterNav = ref({ content: { - nav_style: 0, - nav_type: 0, + nav_style: '0', + nav_type: '0', nav_content: [ - { id: '1', name: '首页', img: [{ id: 1, url: new_url + 'home.png', original: '', title: '', ext: '.png', type: 'img' }], img_checked: [{ id: 2, url: new_url + 'active/home.png', original: '', title: '', ext: '.png', type: 'img' }], link: {} }, - { id: '2', name: '分类', img: [{ id: 3, url: new_url + 'category.png', original: '', title: '', ext: '.png', type: 'img' }], img_checked: [{ id: 4, url: new_url + 'active/category.png', original: '', title: '', ext: '.png', type: 'img' }], link: {} }, - { id: '3', name: '购物车', img: [{ id: 5, url: new_url + 'cart.png', original: '', title: '', ext: '.png', type: 'img' }], img_checked: [{ id: 6, url: new_url + 'active/cart.png', original: '', title: '', ext: '.png', type: 'img' }], link: {} }, - { id: '4', name: '我的', img: [{ id: 7, url: new_url + 'user.png', original: '', title: '', ext: '.png', type: 'img' }], img_checked: [{ id: 8, url: new_url + 'active/user.png', original: '', title: '', ext: '.png', type: 'img' }], link: {} }, + { + id: '1', + name: '首页', + img: [{ id: 1, url: new_url + 'home.png', original: '', title: '', ext: '.png', type: 'img' }], + img_checked: [{ id: 2, url: new_url + 'active/home.png', original: '', title: '', ext: '.png', type: 'img' }], + link: { + name: '商城首页', + page: '/pages/index/index', + }, + }, + { + id: '2', + name: '分类', + img: [{ id: 3, url: new_url + 'category.png', original: '', title: '', ext: '.png', type: 'img' }], + img_checked: [{ id: 4, url: new_url + 'active/category.png', original: '', title: '', ext: '.png', type: 'img' }], + link: { + name: '商品分类', + page: '/pages/goods-category/goods-category', + }, + }, + { + id: '3', + name: '购物车', + img: [{ id: 5, url: new_url + 'cart.png', original: '', title: '', ext: '.png', type: 'img' }], + img_checked: [{ id: 6, url: new_url + 'active/cart.png', original: '', title: '', ext: '.png', type: 'img' }], + link: { + name: '购物车', + page: '/pages/cart/cart', + }, + }, + { + id: '4', + name: '我的', + img: [{ id: 7, url: new_url + 'user.png', original: '', title: '', ext: '.png', type: 'img' }], + img_checked: [{ id: 8, url: new_url + 'active/user.png', original: '', title: '', ext: '.png', type: 'img' }], + link: { + name: '我的', + page: '/pages/user/user', + }, + }, ], }, style: { diff --git a/src/views/tabbar/components/main/default/footer-nav.ts b/src/views/tabbar/components/main/default/footer-nav.ts index 54841f10..3740e7e5 100644 --- a/src/views/tabbar/components/main/default/footer-nav.ts +++ b/src/views/tabbar/components/main/default/footer-nav.ts @@ -1,10 +1,10 @@ import defaultCommon from './index'; import { online_url } from '@/utils'; const new_url = await online_url('/static/app/tabbar/').then((res) => res); -export interface DefaultFooterNav { +interface DefaultFooterNav { content: { - nav_style: number; - nav_type: number; + nav_style: string; + nav_type: string; nav_content: { id: string; name: string; img: uploadList[]; img_checked: uploadList[]; link: object }[]; }; style: { @@ -15,13 +15,49 @@ export interface DefaultFooterNav { } const defaultFooterNav = ref({ content: { - nav_style: 0, - nav_type: 0, + nav_style: '0', + nav_type: '0', nav_content: [ - { id: '1', name: '首页', img: [{ id: 1, url: new_url + 'home.png', original: '', title: '', ext: '.png', type: 'img' }], img_checked: [{ id: 2, url: new_url + 'active/home.png', original: '', title: '', ext: '.png', type: 'img' }], link: {} }, - { id: '2', name: '分类', img: [{ id: 3, url: new_url + 'category.png', original: '', title: '', ext: '.png', type: 'img' }], img_checked: [{ id: 4, url: new_url + 'active/category.png', original: '', title: '', ext: '.png', type: 'img' }], link: {} }, - { id: '3', name: '购物车', img: [{ id: 5, url: new_url + 'cart.png', original: '', title: '', ext: '.png', type: 'img' }], img_checked: [{ id: 6, url: new_url + 'active/cart.png', original: '', title: '', ext: '.png', type: 'img' }], link: {} }, - { id: '4', name: '我的', img: [{ id: 7, url: new_url + 'user.png', original: '', title: '', ext: '.png', type: 'img' }], img_checked: [{ id: 8, url: new_url + 'active/user.png', original: '', title: '', ext: '.png', type: 'img' }], link: {} }, + { + id: '1', + name: '首页', + img: [{ id: 1, url: new_url + 'home.png', original: '', title: '', ext: '.png', type: 'img' }], + img_checked: [{ id: 2, url: new_url + 'active/home.png', original: '', title: '', ext: '.png', type: 'img' }], + link: { + name: '商城首页', + page: '/pages/index/index', + }, + }, + { + id: '2', + name: '分类', + img: [{ id: 3, url: new_url + 'category.png', original: '', title: '', ext: '.png', type: 'img' }], + img_checked: [{ id: 4, url: new_url + 'active/category.png', original: '', title: '', ext: '.png', type: 'img' }], + link: { + name: '商品分类', + page: '/pages/goods-category/goods-category', + }, + }, + { + id: '3', + name: '购物车', + img: [{ id: 5, url: new_url + 'cart.png', original: '', title: '', ext: '.png', type: 'img' }], + img_checked: [{ id: 6, url: new_url + 'active/cart.png', original: '', title: '', ext: '.png', type: 'img' }], + link: { + name: '购物车', + page: '/pages/cart/cart', + }, + }, + { + id: '4', + name: '我的', + img: [{ id: 7, url: new_url + 'user.png', original: '', title: '', ext: '.png', type: 'img' }], + img_checked: [{ id: 8, url: new_url + 'active/user.png', original: '', title: '', ext: '.png', type: 'img' }], + link: { + name: '我的', + page: '/pages/user/user', + }, + }, ], }, style: {