tab2.page.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <!-- 创作页面整体布局 -->
  2. <ion-header>
  3. <ion-toolbar>
  4. <ion-title>创作</ion-title>
  5. </ion-toolbar>
  6. </ion-header>
  7. <ion-content>
  8. <ion-card *ngFor="let novel of novelList" routerLink="/book/{{novel?.id}}">
  9. <img src="{{novel.get('cover')}}" alt="" srcset="">
  10. {{novel?.get("bookname")}}
  11. </ion-card>
  12. <!-- 功能区域 -->
  13. <div class="function-area">
  14. <ion-grid>
  15. <ion-row>
  16. <ion-col size="12">
  17. <ion-card>
  18. <ion-card-header>
  19. <a href="https://ai.fmode.cn/">短片关于传统美德小说创作</a>
  20. </ion-card-header>
  21. <ion-card-content>
  22. <!-- 视频播放器 -->
  23. </ion-card-content>
  24. </ion-card>
  25. </ion-col>
  26. </ion-row>
  27. </ion-grid>
  28. </div>
  29. <!-- 书架 -->
  30. <ion-grid>
  31. <!-- 顶部Tabs -->
  32. <ion-row>
  33. <ion-col size="3">
  34. <!-- 小说的LOGO -->
  35. </ion-col>
  36. <ion-col size="6">
  37. <ion-segment [(ngModel)]='currentTab'>
  38. <ion-segment-button value="recommend">
  39. 推荐
  40. </ion-segment-button>
  41. <ion-segment-button value="male">
  42. 男生类小说
  43. </ion-segment-button>
  44. <ion-segment-button value="female">
  45. 女生类小说
  46. </ion-segment-button>
  47. <ion-segment-button value="finished">
  48. 完结
  49. </ion-segment-button>
  50. </ion-segment>
  51. </ion-col>
  52. <ion-col size="3">
  53. <ion-searchbar placeholder="搜索"></ion-searchbar>
  54. </ion-col>
  55. </ion-row>
  56. <!-- 数组的使用 -->
  57. <ion-list>
  58. <ion-list-header>男生喜欢的图书</ion-list-header>
  59. <ion-item-group *ngFor="let book of maleBooks">
  60. <ion-item>
  61. <ion-label>{{ book.title }}</ion-label>
  62. </ion-item>
  63. </ion-item-group>
  64. <ion-list-header>女生喜欢的图书</ion-list-header>
  65. <ion-item-group *ngFor="let book of femaleBooks">
  66. <ion-item>
  67. <ion-label>{{ book.title }}</ion-label>
  68. </ion-item>
  69. </ion-item-group>
  70. </ion-list>
  71. <!-- 排行榜 -->
  72. <ion-row>
  73. <ion-col size="12">
  74. <!-- 排行榜内容 -->
  75. </ion-col>
  76. </ion-row>
  77. <!-- 金刚区 -->
  78. <ion-row>
  79. <!-- 弹性布局的一行四列金刚区按钮 -->
  80. </ion-row>
  81. <!-- 书籍名称 -->
  82. <ion-row>
  83. <!-- 四行两列的图文按钮 -->
  84. </ion-row>
  85. <!-- 大家都爱看社区 -->
  86. <ion-row>
  87. <ion-col size="12">
  88. <!-- 社区书籍内容 -->
  89. </ion-col>
  90. </ion-row>
  91. </ion-grid>
  92. <!-- 书籍名称 -->
  93. <ion-row>
  94. <ion-col size="6" *ngIf="currentTab=='male' || currentTab=='recommend'">
  95. <ion-card routerLink="/book-detail">
  96. <ion-img src="assets/img/侠客江湖.jpg" style="height: 200; width: 400; "></ion-img>
  97. <ion-card-header>
  98. <ion-card-title>侠客江湖</ion-card-title>
  99. </ion-card-header>
  100. </ion-card>
  101. </ion-col>
  102. <ion-col size="6" *ngIf="currentTab=='male' || currentTab=='recommend'">
  103. <ion-card routerLink="/book-detail">
  104. <ion-img src="assets/img/灵魂.jpg" style="height: 200; width: 400; "></ion-img>
  105. <ion-card-header>
  106. <ion-card-title>每个孤独的灵魂都值得被看见</ion-card-title>
  107. </ion-card-header>
  108. </ion-card>
  109. </ion-col>
  110. </ion-row>
  111. <!-- 大家都爱看社区 -->
  112. <ion-row>
  113. <ion-col size="12" *ngIf="currentTab=='female' || currentTab=='recommend'">
  114. <ion-card routerLink="/book-detail">
  115. <ion-img src="assets/img/城南旧事.jpg" style="height: 200px; width: 400px;"></ion-img>
  116. <ion-card-header>
  117. <ion-card-title>书籍名称</ion-card-title>
  118. <ion-card-subtitle>发布人</ion-card-subtitle>
  119. </ion-card-header>
  120. <ion-card-content>
  121. <ion-label>商品价格</ion-label>
  122. <ion-label>新旧程度</ion-label>
  123. </ion-card-content>
  124. </ion-card>
  125. </ion-col>
  126. </ion-row>
  127. <!-- 排行榜 -->
  128. <ion-row>
  129. <ion-col size="12">
  130. <ion-card>
  131. <ion-card-header>
  132. <ion-card-title>排行榜</ion-card-title>
  133. </ion-card-header>
  134. <ion-card-content>
  135. <!-- 排行榜内容 -->
  136. </ion-card-content>
  137. </ion-card>
  138. </ion-col>
  139. </ion-row>
  140. <!-- 金刚区 -->
  141. <ion-row>
  142. <!-- 弹性布局的一行四列金刚区按钮 -->
  143. <ion-col size="3">
  144. <ion-button expand="block">男生人气榜</ion-button>
  145. </ion-col>
  146. <ion-col size="3">
  147. <ion-button expand="block">男生好评榜</ion-button>
  148. </ion-col>
  149. <ion-col size="3">
  150. <ion-button expand="block">女生人气榜</ion-button>
  151. </ion-col>
  152. <ion-col size="3">
  153. <ion-button expand="block">女生好评榜</ion-button>
  154. </ion-col>
  155. </ion-row>
  156. <!-- 书籍名称 -->
  157. <ion-row>
  158. <ion-col size="6">
  159. <ion-card routerLink="/book-detail">
  160. <ion-img src="assets/img/云中浅阳.jpg" style = "height:200px;width:400px" ></ion-img>
  161. <ion-card-header>
  162. <ion-card-title>云中浅阳</ion-card-title>
  163. </ion-card-header>
  164. </ion-card>
  165. </ion-col>
  166. <ion-col size="6">
  167. <ion-card routerLink="/book-detail">
  168. <ion-img src="assets/img/一只猫的前世今生.jpg" style = "height:200px;width:400px"></ion-img>
  169. <ion-card-header>
  170. <ion-card-title>一只猫的前世今生</ion-card-title>
  171. </ion-card-header>
  172. </ion-card>
  173. </ion-col>
  174. </ion-row>
  175. <!-- 大家都爱看社区 -->
  176. <ion-row>
  177. <ion-col size="12">
  178. <ion-card routerLink="/book-detail">
  179. <ion-img src="assets/img/你好夏天.jpg"></ion-img>
  180. <ion-card-header>
  181. <ion-card-title>书籍名称:你好夏天</ion-card-title>
  182. <ion-card-subtitle>发布人:小哈</ion-card-subtitle>
  183. </ion-card-header>
  184. <ion-card-content>
  185. <ion-label>商品价格:666</ion-label>
  186. <ion-label>新旧程度:新</ion-label>
  187. </ion-card-content>
  188. </ion-card>
  189. </ion-col>
  190. </ion-row>
  191. </ion-content>