|
@@ -6,9 +6,61 @@
|
|
|
// styleUrls: ['tab1.page.scss']
|
|
|
// })
|
|
|
// export class Tab1Page {
|
|
|
+// selectedCategory: string = 'male';
|
|
|
+
|
|
|
+// categories = [
|
|
|
+// {
|
|
|
+// title: '热门',
|
|
|
+// subCategories: [
|
|
|
+// { title: '大国科技', image: '.../.../.../picture/tupian.jpg' },
|
|
|
+// { title: '科幻', image: 'assets/kehuan.jpg' },
|
|
|
+// { title: '历史争霸', image: 'assets/lishizhengba.jpg' },
|
|
|
+// { title: '天才', image: 'assets/tiancai.jpg' },
|
|
|
+// { title: '脑洞', image: 'assets/naodong.jpg' },
|
|
|
+// { title: '都市修真', image: 'assets/dushixiuzhen.jpg' }
|
|
|
+// ]
|
|
|
+// },
|
|
|
+// {
|
|
|
+// title: '题材',
|
|
|
+// subCategories: [
|
|
|
+// { title: '都市', image: 'assets/dushi.jpg' },
|
|
|
+// { title: '同人', image: 'assets/tongren.jpg' },
|
|
|
+// { title: '科幻', image: 'assets/kehuan.jpg' },
|
|
|
+// { title: '玄幻', image: 'assets/xuanhuan.jpg' },
|
|
|
+// { title: '游戏', image: 'assets/youxi.jpg' },
|
|
|
+// { title: '悬疑', image: 'assets/xuanyi.jpg' }
|
|
|
+// ]
|
|
|
+// },
|
|
|
+// {
|
|
|
+// title: '情节',
|
|
|
+// subCategories: [
|
|
|
+// { title: '江湖', image: 'assets/jianghu.jpg' },
|
|
|
+// { title: '校园', image: 'assets/xiaoyuan.jpg' },
|
|
|
+// { title: '重生', image: 'assets/chongsheng.jpg' },
|
|
|
+// { title: '僵尸', image: 'assets/jiangshi.jpg' },
|
|
|
+// { title: '三国', image: 'assets/sanguo.jpg' },
|
|
|
+// { title: '修炼', image: 'assets/xiulian.jpg' }
|
|
|
+// ]
|
|
|
+// },
|
|
|
+// {
|
|
|
+// title: '风格',
|
|
|
+// subCategories: [
|
|
|
+// { title: '励志', image: 'assets/lizhi.jpg' },
|
|
|
+// { title: '现实', image: 'assets/xianshi.jpg' },
|
|
|
+// { title: '烧脑', image: 'assets/shaonao.jpg' }
|
|
|
+// ]
|
|
|
+// }
|
|
|
+// ];
|
|
|
|
|
|
// constructor() {}
|
|
|
|
|
|
+// segmentChanged() {
|
|
|
+// // Handle segment change logic here
|
|
|
+// }
|
|
|
+
|
|
|
+// navigateToDetail(subCategory: any) {
|
|
|
+// // 导舨到详情页面的逻辑
|
|
|
+// }
|
|
|
// }
|
|
|
|
|
|
import { Component } from '@angular/core';
|
|
@@ -19,10 +71,59 @@ import { Component } from '@angular/core';
|
|
|
styleUrls: ['tab1.page.scss']
|
|
|
})
|
|
|
export class Tab1Page {
|
|
|
- constructor() {}
|
|
|
+ selectedCategory: string = 'male';
|
|
|
|
|
|
- // 模拟数据
|
|
|
-}
|
|
|
+ categories = [
|
|
|
+ {
|
|
|
+ title: '热门',
|
|
|
+ subCategories: [
|
|
|
+ { title: '大国科技' },
|
|
|
+ { title: '科幻' },
|
|
|
+ { title: '历史争霸' },
|
|
|
+ { title: '天才' },
|
|
|
+ { title: '脑洞' },
|
|
|
+ { title: '都市修真' }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '题材',
|
|
|
+ subCategories: [
|
|
|
+ { title: '都市' },
|
|
|
+ { title: '同人' },
|
|
|
+ { title: '科幻' },
|
|
|
+ { title: '玄幻' },
|
|
|
+ { title: '游戏' },
|
|
|
+ { title: '悬疑' }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '情节',
|
|
|
+ subCategories: [
|
|
|
+ { title: '江湖' },
|
|
|
+ { title: '校园' },
|
|
|
+ { title: '重生' },
|
|
|
+ { title: '僵尸' },
|
|
|
+ { title: '三国' },
|
|
|
+ { title: '修炼' }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '风格',
|
|
|
+ subCategories: [
|
|
|
+ { title: '励志' },
|
|
|
+ { title: '现实' },
|
|
|
+ { title: '烧脑' }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ];
|
|
|
|
|
|
+ constructor() {}
|
|
|
|
|
|
+ segmentChanged() {
|
|
|
+ // Handle segment change logic here
|
|
|
+ }
|
|
|
|
|
|
+ viewBookDetail(subCategory: any) {
|
|
|
+ // 实现查看书籍详情的逻辑
|
|
|
+ }
|
|
|
+}
|