|
@@ -19,8 +19,8 @@ export interface IndexStore {
|
|
|
name: string,//名称
|
|
|
showRightButton: boolean,//右侧按钮是否展示
|
|
|
workDirection: number,//频道
|
|
|
- longBookInfoAppVOS:any[]
|
|
|
- shortBookInfoAppVOS:any[],//书籍内容
|
|
|
+ longBookInfoAppVOS:any[] | null
|
|
|
+ shortBookInfoAppVOS:any[] | null,//书籍内容
|
|
|
},//首页热门数据
|
|
|
indexHotCategory: {
|
|
|
bookCategoryList: { id: number, name: string }[],//分类
|
|
@@ -29,15 +29,17 @@ export interface IndexStore {
|
|
|
workDirection: number,//频道
|
|
|
},//首页热门分类
|
|
|
indexCategoryId: number,//首页分类选中的id
|
|
|
+ rechargeTemplate:any[],//充值模板数据
|
|
|
setData: (data: { [key: string]: any }) => void,
|
|
|
}
|
|
|
-const Index = observable({
|
|
|
+const Index:IndexStore = observable({
|
|
|
scene: 0, // 场景值
|
|
|
system: '', // 系统
|
|
|
navBarTop: 0,//状态栏高度
|
|
|
navHeight: 0,//导航栏高度
|
|
|
query: null,//本次进入小程序参数
|
|
|
indexBanners: [],//首页banner数据
|
|
|
+ rechargeTemplate:[],//充值模板数据
|
|
|
indexHotBooks: {
|
|
|
name: "今日热书",//名称
|
|
|
showRightButton: true,//右侧按钮是否展示
|