1.新增底部导航单独配置页面
parent
cfc46458b7
commit
7ee83f2661
|
|
@ -3,8 +3,8 @@ import { online_url } from '@/utils';
|
||||||
const new_url = await online_url('/static/app/tabbar/').then((res) => res);
|
const new_url = await online_url('/static/app/tabbar/').then((res) => res);
|
||||||
interface DefaultFooterNav {
|
interface DefaultFooterNav {
|
||||||
content: {
|
content: {
|
||||||
nav_style: number;
|
nav_style: string;
|
||||||
nav_type: number;
|
nav_type: string;
|
||||||
nav_content: { id: string; name: string; img: uploadList[]; img_checked: uploadList[]; link: object }[];
|
nav_content: { id: string; name: string; img: uploadList[]; img_checked: uploadList[]; link: object }[];
|
||||||
};
|
};
|
||||||
style: {
|
style: {
|
||||||
|
|
@ -15,13 +15,49 @@ interface DefaultFooterNav {
|
||||||
}
|
}
|
||||||
const defaultFooterNav = ref<DefaultFooterNav>({
|
const defaultFooterNav = ref<DefaultFooterNav>({
|
||||||
content: {
|
content: {
|
||||||
nav_style: 0,
|
nav_style: '0',
|
||||||
nav_type: 0,
|
nav_type: '0',
|
||||||
nav_content: [
|
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: '1',
|
||||||
{ 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: '首页',
|
||||||
{ 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: {} },
|
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: {
|
style: {
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
import defaultCommon from './index';
|
import defaultCommon from './index';
|
||||||
import { online_url } from '@/utils';
|
import { online_url } from '@/utils';
|
||||||
const new_url = await online_url('/static/app/tabbar/').then((res) => res);
|
const new_url = await online_url('/static/app/tabbar/').then((res) => res);
|
||||||
export interface DefaultFooterNav {
|
interface DefaultFooterNav {
|
||||||
content: {
|
content: {
|
||||||
nav_style: number;
|
nav_style: string;
|
||||||
nav_type: number;
|
nav_type: string;
|
||||||
nav_content: { id: string; name: string; img: uploadList[]; img_checked: uploadList[]; link: object }[];
|
nav_content: { id: string; name: string; img: uploadList[]; img_checked: uploadList[]; link: object }[];
|
||||||
};
|
};
|
||||||
style: {
|
style: {
|
||||||
|
|
@ -15,13 +15,49 @@ export interface DefaultFooterNav {
|
||||||
}
|
}
|
||||||
const defaultFooterNav = ref<DefaultFooterNav>({
|
const defaultFooterNav = ref<DefaultFooterNav>({
|
||||||
content: {
|
content: {
|
||||||
nav_style: 0,
|
nav_style: '0',
|
||||||
nav_type: 0,
|
nav_type: '0',
|
||||||
nav_content: [
|
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: '1',
|
||||||
{ 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: '首页',
|
||||||
{ 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: {} },
|
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: {
|
style: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue