|
@@ -1,4 +1,4 @@
|
|
|
-import {View, Image, Text} from '@tarojs/components';
|
|
|
|
|
|
|
+import {View, Image, Text, Navigator} from '@tarojs/components';
|
|
|
import classNames from 'classnames';
|
|
import classNames from 'classnames';
|
|
|
import sendIcon from '@assets/sending.svg';
|
|
import sendIcon from '@assets/sending.svg';
|
|
|
import complateIcon from '@assets/complate.svg';
|
|
import complateIcon from '@assets/complate.svg';
|
|
@@ -6,16 +6,17 @@ import orderIcon from '@assets/order.svg';
|
|
|
import face from '@assets/face.svg';
|
|
import face from '@assets/face.svg';
|
|
|
import Login from './login';
|
|
import Login from './login';
|
|
|
import {useBoolean} from 'ahooks';
|
|
import {useBoolean} from 'ahooks';
|
|
|
|
|
+import {DELIVER_GOODS_PATH} from '@routes';
|
|
|
|
|
|
|
|
const btnList = [
|
|
const btnList = [
|
|
|
{
|
|
{
|
|
|
title: '收发货',
|
|
title: '收发货',
|
|
|
children: [
|
|
children: [
|
|
|
- {title: '发货', icon: sendIcon},
|
|
|
|
|
- {title: '收货', icon: complateIcon},
|
|
|
|
|
|
|
+ {title: '发货', icon: sendIcon, url: DELIVER_GOODS_PATH},
|
|
|
|
|
+ {title: '收货', icon: complateIcon, url: ''},
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
- {title: '历史记录', children: [{title: '订单', icon: orderIcon}]},
|
|
|
|
|
|
|
+ {title: '历史记录', children: [{title: '订单', icon: orderIcon, url: ''}]},
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
export default function App() {
|
|
export default function App() {
|
|
@@ -57,7 +58,7 @@ export default function App() {
|
|
|
<View className='mt-3 grid grid-cols-4 grid-rows-1 gap-4'>
|
|
<View className='mt-3 grid grid-cols-4 grid-rows-1 gap-4'>
|
|
|
{el.children.map(function (item) {
|
|
{el.children.map(function (item) {
|
|
|
return (
|
|
return (
|
|
|
- <View key={item.title}>
|
|
|
|
|
|
|
+ <Navigator url={item.url} key={item.title}>
|
|
|
<Image
|
|
<Image
|
|
|
src={item.icon}
|
|
src={item.icon}
|
|
|
className='w-8 h-8 mx-auto'
|
|
className='w-8 h-8 mx-auto'
|
|
@@ -66,7 +67,7 @@ export default function App() {
|
|
|
<Text className='block text-center text-sm mt-2 text-[#666]'>
|
|
<Text className='block text-center text-sm mt-2 text-[#666]'>
|
|
|
{item.title}
|
|
{item.title}
|
|
|
</Text>
|
|
</Text>
|
|
|
- </View>
|
|
|
|
|
|
|
+ </Navigator>
|
|
|
);
|
|
);
|
|
|
})}
|
|
})}
|
|
|
</View>
|
|
</View>
|