wupengfei
2 天以前 bee912f1773459603d16604657e41a199e9df376
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<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>