<template>
|
<nut-category :category="data.category" @change="change" class="category-page-inner">
|
<nut-category-pane :categoryChild="data.categoryChild" @onChange="onChange">
|
</nut-category-pane>
|
</nut-category>
|
</template>
|
|
<script setup lang="ts">
|
import Taro from '@tarojs/taro';
|
import { useCheckReceiveTasks, useTaskList } from '@12333/hooks';
|
import { EnumTaskCheckReceiveStatus, EnumTaskCheckReceiveMethod } from '@12333/constants';
|
import dayjs from 'dayjs';
|
import { categorydata } from './3x_categoryData';
|
|
defineOptions({
|
name: 'InnerPage',
|
});
|
|
const data = reactive({
|
categoryInfo: categorydata.categoryInfo,
|
category: categorydata.categoryInfo.category,
|
categoryChild: categorydata.categoryChild,
|
});
|
|
const change = (index: number) => {
|
data.categoryChild = [].concat(data.categoryInfo.category[index + 1].children);
|
};
|
const onChange = () => {
|
console.log('当前分类数据');
|
};
|
</script>
|
|
<style lang="scss">
|
@import '@/styles/common.scss';
|
|
.task-page-wrapper {
|
.category-page-inner {
|
height: 100%;
|
background-color: transparent;
|
}
|
}
|
</style>
|