mip-shell-xiaoshuo

说明

为极速小说阅读器定制的 mip-shell, 详细使用方法见wiki

简单示例

为极速小说阅读器定制的 mip-shell-xiaoshuo 目录页传入格式。pageType分为四种:'catalog'目录页,'page'小说内容页,'detail'小说详情页,'bookEnd'小说结尾页。officeId为熊掌号id。

  1. <mip-shell-xiaoshuo mip-shell="" id="xiaoshuo-shell">
  2. <script type="application/json">
  3. {
  4. "routes": [{
  5. "pattern": "mipx-xiaoshuo-(\\d)+-(\\d)+.html",
  6. "meta": {
  7. "header": {
  8. "show": true,
  9. "title": "神武天帝"
  10. },
  11. "pageType": "page",
  12. "officeId": "160957******0959",
  13. "footer": {
  14. "actionGroup": [
  15. {"name": "catalog", "text": "目录"},
  16. {"name": "darkmode", "text": "夜间模式", "text2": "白天模式"},
  17. {"name": "settings", "text": "更多设置"}
  18. ],
  19. "hrefButton": {
  20. "previous": "上一页",
  21. "next": "下一页"
  22. }
  23. },
  24. "book": {
  25. "title": "将夜",
  26. "chapterNumber": "共1347章",
  27. "chapterStatus": "已完结"
  28. },
  29. "catalog": [
  30. {
  31. "name": "第1章 灵魂重生",
  32. "link": "mipx-xiaoshuo-1-1.html",
  33. "pages": [
  34. "mipx-xiaoshuo-1-1.html",
  35. "mipx-xiaoshuo-1-2.html",
  36. "mipx-xiaoshuo-1-3.html"
  37. ]
  38. }
  39. ]
  40. }
  41. }]
  42. }
  43. </script>
  44. </mip-shell-xiaoshuo>

routes

参考mip-shell用法

原文: https://www.mipengine.org/v2/components/layout/mip-shell-xiaoshuo.html