Zhengxiaowei 5 年之前
父節點
當前提交
ba1dfdb232
共有 1 個文件被更改,包括 8 次插入3 次删除
  1. 8 3
      src/views/Reader/index.ux

+ 8 - 3
src/views/Reader/index.ux

@@ -36,7 +36,8 @@ export default {
   public: {
     bid: '',
     chapter_id: '',
-    send_order_id: ""
+    send_order_id: "",
+    canReadecid: ""
   },
   private: {
     bookinfo: {},
@@ -85,6 +86,7 @@ export default {
           console.log('f code')
           console.log(f.data)
           if (f.data.code == '10014' || f.data.code == '10015') {
+            this.getChapters(bid, this.canReadecid)
             router.push({
               uri: "/views/Pay",
               params: {
@@ -96,6 +98,7 @@ export default {
           }
         })
       } else if (e.data.code == '10014' || e.data.code == '10015') {
+        this.getChapters(bid, this.canReadecid)
         router.push({
           uri: "/views/Pay",
           params: {
@@ -123,7 +126,8 @@ export default {
       uri: "/views/Reader",
       params: {
         bid: this.bookinfo.bid,
-        chapter_id: this.bookinfo.prev_cid
+        chapter_id: this.bookinfo.prev_cid,
+        canReadecid: this.bookinfo.chapter_id
       }
     })
   },
@@ -143,7 +147,8 @@ export default {
       uri: "/views/Reader",
       params: {
         bid: this.bookinfo.bid,
-        chapter_id: this.bookinfo.next_cid
+        chapter_id: this.bookinfo.next_cid,
+        canReadecid: this.bookinfo.chapter_id
       }
     })
   }