     var currentPage:Int = 0
     var currentChapter:Int = 0
     
+    var sideNum = 1
+    
     var curlPageStyle:QSTextCurlPageStyle = .forwards
 
     // 拟真阅读

        let pageVC = getLastPage(chapter: currentChapter, page: currentPage)

        return pageVC
    }
    
    func pageViewController(_ pageViewController: UIPageViewController, viewControllerAfter viewController: UIViewController) -> UIViewController?{
        if viewController.isKind(of: PageViewController.self) {
            let backgroundVC = QSReaderBackgroundViewController()
            backgroundVC.setBackground(viewController: self.currentReaderVC!)

    func pageViewController(_ pageViewController: UIPageViewController, didFinishAnimating finished: Bool, previousViewControllers: [UIViewController], transitionCompleted completed: Bool){
        //如果翻页完成，则completed=true，否则为false
        isAnimatedFinished = completed//请求数据时根据此字段更新当前页
        
        if !completed {
            currentReaderVC = previousViewControllers.first as! PageViewController
        } else {
            currentReaderVC = pageViewController.viewControllers?.first as! PageViewController
        }
        /*
        currentReaderVC = pageViewController.viewControllers?.first as! PageViewController
        if  completed == true {
            
        }else{
            // 翻页未完成，回到原来的页面,原来的页面是肯定存在的
            // 分为两种情况，1.前（下一页） 2.后（上一页）
