微信小程序+.NET(十一) 小程序之小说阅读器实现

微信小程序之小说阅读器实现

效果:
微信小程序+.NET(十一) 小程序之小说阅读器实现_第1张图片
微信小程序+.NET(十一) 小程序之小说阅读器实现_第2张图片

1.首先添加自定义导航栏:

参照上一篇:   微信小程序+.NET(十) 小程序之自定义顶部导航栏
添加component并依次配置app.json => XXX.json => XXX.wxml

2.在app.json注册页面 => 添加tabBar

3.XXX.wxml页面结构

微信小程序+.NET(十一) 小程序之小说阅读器实现_第3张图片
这里分为三部分,页面内容、点击后显示的底部工具、点击底部按钮显示的字体行距等调节工具
a.页面内容又分为三部分:
微信小程序+.NET(十一) 小程序之小说阅读器实现_第4张图片
b.页面底部:
微信小程序+.NET(十一) 小程序之小说阅读器实现_第5张图片
c.工具栏:
微信小程序+.NET(十一) 小程序之小说阅读器实现_第6张图片

4.页面渲染及事件监听XXX.js

微信小程序+.NET(十一) 小程序之小说阅读器实现_第7张图片
微信小程序+.NET(十一) 小程序之小说阅读器实现_第8张图片
微信小程序+.NET(十一) 小程序之小说阅读器实现_第9张图片
data:
微信小程序+.NET(十一) 小程序之小说阅读器实现_第10张图片
微信小程序+.NET(十一) 小程序之小说阅读器实现_第11张图片
页面加载:
微信小程序+.NET(十一) 小程序之小说阅读器实现_第12张图片
其他工具事件不做介绍,
下面主要讲一下initChapter()获取文章这个方法
微信小程序+.NET(十一) 小程序之小说阅读器实现_第13张图片
这里用到的是爬虫接口:微信小程序+.NET(七) 最简单的.NET爬虫

5.样式XXX.wxss源码

/* pages/reader/reader.wxss */

/**
* 正文格式
*/
.m-read-content {
  color: #555;
  padding: 10px;
  box-sizing: border-box;
  
  top:0px;
  left:0px;
  width:100%;
  height: 100%;
  /*min-height: 300px;
  max-width: 900px;
  margin: 0 auto;*/
  
}
.m-read-content h4 {
  font-size: 20px;
  color: #736357;
  border-bottom: solid 1px #736357;
  margin: 0 0 1em 0;
  letter-spacing: 2px;
  font-family: LiSu;
}

.m-read-content text {
  /*text-indent: 2em;*/
  margin: 0.5em 0.5em;
  /*text-align: justify;*/
  letter-spacing: 1px;
  line-height: 18px;
}

.artical-action-top {
  font-size:25rpx;
  position: fixed;
  top: 0px;
  width: 100%;
  z-index: 90;
  color: #736357;
  font-family: Microsoft JhengHei;
}
.artical-action-mid {
  position: fixed;
  
  height: 100%;
  width: 100%;
  z-index: 10002;
  
}
.artical-action-bottom {
  font-size:28rpx;
  position: fixed;
  bottom: 0px;
  padding-left:300px;
  width: 100%;
  z-index: 90;
  color: #736357;
  font-family: Microsoft JhengHei;
}

/**
* 中部上下页
*/
.m-button-bar {
  position: fixed;
  text-align: center;
  font-size: 14px;
  padding: 5px;
  max-width: 900px;
  margin: 0 auto;
  width: 55%;
  z-index: 10005;
}
.u-tab {
  position: relative;
  height: 34px;
  margin: 10px auto;
  line-height: 34px;
  border-radius: 8px;
  border: 1px solid #858382;
  font-size: 13px;
  background: #000;
  opacity: 0.9;
  
}
.u-tab .uli{
  
  display: inline-block;
  width: 36%;
  font-size: 13px;
  border-right: 1px solid #858382;
  text-align: center;
  color: #fff;
}


/**
* 目录
*/
.menu-container {
  height: 60%;
  position: fixed;
  bottom: 0px;
  width: 100%;
  overflow: scroll;
  background: #fff;
  display: block;
  /*z-index: 19999*/
}
.chapter-list {
  text-align: left;
}
.chapter-list li {
  padding: 15px;
}
.chapter-list li:nth-child(2n-1) {
  background-color: #ededed
}
.chapter-list li:nth-child(2n) {
  background-color: #e6e6e6
}
.chapter-list .free {
  float: right;
}
.free {
  color: #459c3a;
}

/**
* 底部控制栏上部
*/
.top-nav-pannel {
  position: fixed;
  bottom: 70px;
  height: 148px;
  background: #000;
  width: 100%;
  color: #fff;
  z-index: 10004
}
.top-nav-pannel .bk-container-addsub{
  background: none;
  border: 1px #8c8c8c solid;
  padding: 5px 6px;
  color: #fff;
  display: inline-block;
  border-radius: 12px;
}
.top-nav-pannel .bk-container {
  position: relative;
  height: 30px;
  width: 30px;
  background: #fff;
  border-radius: 15px;
  display: inline-block;
  vertical-align: -14px;
  margin-left: 7px;
}
.top-nav-pannel .bk-container-current {
  border: 2px red solid;
}
.top-nav-pannel .bk-container-text{
  background: none;
  padding: 3rpx 19rpx;
  color: #fff;
  display: inline-block;
  font-size:28rpx;
}
.child-mod {
  padding: 3px 10px;
  padding-top: 3px
}
.child-mod .todo {
  display: inline-block;
  padding-right: 20px;
  padding-left: 10px;
}

/**
* 底部导航栏下部
*/
.bottom-nav {
  position: fixed;
  bottom: 0px;
  height: 70px;
  background: #000;
  width: 100%;
  opacity: 1;
  z-index: 10004;
  margin: 0 auto;
  text-align: center
}
.bottom-nav .item {
  display: inline-block;
  width: 32%;
  color: #fff;
  text-align: center;
  margin: 0 auto;
}
.icon-text {
  position: absolute;
  top: 25px;
  font-size: 12px;
}
.icon-menu, .icon-ft, .icon-night, .icon-day {
  position: absolute;
  top: 3px;
  left: 2px;
  width: 18px;
  height: 13px;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAAoCAYAAABerrI1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkNFN0E3M0IwMjc4NDExRTU5RkYxQjg1Rjk2QkEyNzBEIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkNFN0E3M0IxMjc4NDExRTU5RkYxQjg1Rjk2QkEyNzBEIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6N0M1ODVCRkYyNzg0MTFFNTlGRjFCODVGOTZCQTI3MEQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6N0M1ODVDMDAyNzg0MTFFNTlGRjFCODVGOTZCQTI3MEQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5uTX6PAAAA0UlEQVR42uyXsQrCMBRFX4p0V39Pv8FJcekHFJe6d+v3NY6CDvUFooQ0AcEllnPhlgz3QU6bBq6ZnvdaRC7qndqoB/VR/ZC5wuxGytLtvXejUJ0uDlGgVZ8Tg6lsaWod1Jh461a9TQyMBX6hWLaSBary5zBWn8kPf8DUr/Rx8hfEPth4kxkIs+tCL4rG/VOLPH5AAQUUUEABBRRQv0O54nf1tcL6dZ3Jh9mpMH/2TkmkJFISKYmURKCAAgoooIACCihKIiWRkkhJpCR+XxJfAgwA/ROhOlYvoWQAAAAASUVORK5CYII=);
  background-size: contain;
}
.icon-night, .icon-day, .icon-ft {
  left: 1px;
}
.icon-ft {
  width: 20px;
  height: 13px;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAAAuCAYAAACViW+zAAAAGXRFWHRTb2Z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CD6tfnM0j8CJ4UWkUeA3yjinQ2+FXBzkxS/JKH8KI/o5oP+4LHgMWA177+a20O8ZymvKDMxa9yViK1Kue0xkwlXyLmy1M/jw6pO08RcFiPp/PeOmiRt5CorcvWEbgePDrzmbpYld7gsxiXMpeALRXSGl4Evei6XpWw0JcEf7CN9Bn4Ivs4H0pVUmDXghCIK0+xxvT70UeMd+yXx+5RhfDOrbXH68u5rV47SwFsYcWBfFrDJVKP0arRmlw2tKyj4GnwYfJY5TtKaSRUm4wihtigi1LspWcc6zme3AnKFbnGs1yo/ai4bV00BogyM8+xRVBi9ab3ApNer7XI0t7Qmezemm+zm9f3gbQmddhQnJBFGKtiDrTFZa8tS9inLlAJQrnux4/gJSu10T573MD6JMFqmuyKH8wrFLkfUc7Ujhlvbn1Cc4DTF6O/GVGFGgOMczaZCQFtO4xQTzzBM21acD+rjcqBMzNNqYQ+kEJB5P/eon6RssD8jGWb0z9t8cBj4oE9aLZDPNaZ5PtU0oTWxtM9LWqxtyZTPD7ievO9abbIb9JHeQUcmKsxUxVxlDS8vsDDLFV/R32R/2LhSOfdJ4/8VhfRdZoEfmz3fomoRbXBUGG0ZPWMK/yVUGxOzuOW0mGm9nYes531eQCvqXl7lrNrr2QuSNmajZYm/gjco1x7RnfkOdZT9o1lbFBqjGWW0pC56X9czw42DtCv7xvig7VyKP5vsL9gfQvY7Syymw2S/4thUJFEM65tNisO1I4+8EZjnkWj2ixFFLHQUH4b0ordY+6+En+knwvzElDoaCmeb4mK2JUQT78vGHPZeWhLOL3M/D55k/ntptyOy724l0WyMFpE1jO3NrEyLDVk6E1lIrvU4fgxFGkv/UsWSQnxHK5dhC/3QGqe/dHy1+a8AAwCKR08FSRIHxQAAAABJRU5ErkJggg==);
  background-size: contain;
}

.current .icon-ft {
  top: 2px;
  left: 0px;
  width: 22px;
  height: 15px;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAAA0CAYAAAAg5t6HAAAAGXRFWHRTb2Z0d2Fy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8ZWyJ9IbFICz4FVV9ZWyW9FiDwGfmmCnQIXQBuoBxvobxuVT2nqen57khbpPYNFRYBzoNtiPnXod3MKP0VqJxGRjmaQGQXVAf1VUz3VYOQkIbJLEdADkA3pM0v1OetKQuQ4E8gHUBXxEfDqzzC+x+MW2aL4b+eFRuu8wn9LGH9hN82dTNlrMCa02xgjf347GmdmoJ0puyu8rbrHlB2MU2QrUzYuLLJg2a6VyA7KbLsMi3Tdb9sVuwRJ+2TZrjF+b+4pTd2rkk/1hky4Z+vBapkz7lzW3Ri/ze3KpTqKTNlmYYG1TNlKmJRJpiSDxpkqq/aVKdsrLHIPU/ZFkwFUxu/dYk8M3c3ZNNjnKzsEXgmKPKxo12/G+MOOri+YslPCPXnSst2yTSEjTNkBkBcSmCd/Nu1aDF/hl15cDmdGYO26SXrtGuUs5AZT1kQrn2xIn1la6TQx1/rDT0TR9pMFxUL6fogeraJ6nBWS2k+uZQZUyauPtOO38dNNv1cltZqTzvH0WOZ49oMaqlND321yPCfSbF2ad5UXufaMFiIKLER9BqOK9Ea4m2CZEk61mrOQyYDiJjUpzFpqb5nad8olkjsfvG6RC7oIRsBsSY62SN9H6Lopd3MtyvmorcCM4gD0dkxnk7eiHARHEWg84RWkUXPinZEQeSXsCa8wOYXQqxIi31aAQN3R/rTEAv1lqCNs3taSTqoEmclmqf2FIFlCm3cGvBeBzoOt4I7vraqgJvW+awPF9B0MgJ9RRZYz+5a+75qKTEWmIstuFfm+q7RJve8ayH4LMACaxEJEaXs23AAAAABJRU5ErkJggg==);
  background-size: contain;
}

.icon-night {
  left: 4px;
  width: 16px;
  height: 16px;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6c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weEiMjDePTkhcKLPCApUV54GxTKcDM0JfL9QE0UGdcdEmb7L3edOq5zzz1nn332Pvdfv5e5Z9Zd666711577etIKYUGjQILwRwwDOwDfcKAamP873CwBawDrcABP8ACU87/FWUgIk3gKMjL/7VfwV4sojxcCw6AL9JfD0DGdABhv0KTwAUwO+CZvaBfGFaYAJaDyyAb8Mwt0CksKFPh9W3gWgXnSSeFJTkBZXQrOM3VJUi9oJErUGoysBKcCuE86YYt58sF0MILtiakjTvCojI+i/o876Zh9ThNARysUCr99NpmAN5FTAvxBRgS0QZlK5+GDLQrOC9sOu/NADVm70LU+9RmYJOi8yLigk8sgPUxbEy0HUATH0RUNdV2AG0hd9xyarMdwNyYNhaDOpsBTI5pYwRYYTMAHYtwh80ARmqws1ShBdEWwGAdGyI4HrMYKAegawFSMdhlo5XIK/ZAfvoO5oFukxn4oNHeID5DjzUZwCvNNsn5DjDOVADPErA7BdwF0xP2v4YCyCVknDJwjxe2k8AHT4O0VTSeawD9Mll1glZN48T5IMc+N7p/7JJm1AFWg4ERna4Da8F1j62cdzZKY5RZBtbcEuYzuAlugyfgOSjwyS7LJ8QJYJoojuuX+RycLnqPlPXgLZfBalCB11iveyL7CM6K6tEZURxp/jNWGc2pzFbBp98M3peOVXrA4Sr49I+4zpdmgDSA94UZKXX+ITeNP8sFIDg9XWBoypyni0O6THzqN1bx6iXYCH6nyHnyZXOp8+UCIF0Fe1LiPH1FdoMr/q8G74DbwS9pT/TeO+Nes64JuFpNUl+5fdByT9wMHhl0vhu06L7opobqEPiWoON9oJ0v1bXf1LuMAcdAQbPjJ6g9juqPE+PXKvVcbjeAmQqHFsmb5iVwzu1tVKYSOkpdA1jEU246To4XxZ/gZLlUU5v8CbzhI+x9bqV74r7xHwEGAPDRVwnecW5KAAAAAElFTkSuQmCC);
  background-size: contain;
}

.item-warp {
  width: 26px;
  margin: 0 auto;
  position: relative;
}

  微信小程序源码链接:

https://download.csdn.net/download/jinglell/11566840

你可能感兴趣的:(微信小程序,程序人生,微信小程序+.NET)