From 86dd9d453864fcccca8a582004f1d62e2c813d40 Mon Sep 17 00:00:00 2001 From: ovo Date: Wed, 18 Dec 2024 17:01:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miniprogram/pages/bookshelf/reader.ts | 18 ----- miniprogram/pages/bookshelf/reader.wxml | 5 -- miniprogram/pages/bookshelf/reader/index.js | 27 -------- miniprogram/pages/bookshelf/reader/index.json | 6 -- miniprogram/pages/bookshelf/reader/index.ts | 24 ------- miniprogram/pages/bookshelf/reader/read.json | 3 - miniprogram/pages/bookshelf/reader/read.ts | 66 ------------------- miniprogram/pages/bookshelf/reader/read.wxml | 2 - miniprogram/pages/bookshelf/reader/read.wxss | 1 - miniprogram/pages/bookshelf/reader/reader.ts | 1 - 10 files changed, 153 deletions(-) delete mode 100644 miniprogram/pages/bookshelf/reader.ts delete mode 100644 miniprogram/pages/bookshelf/reader.wxml delete mode 100644 miniprogram/pages/bookshelf/reader/index.js delete mode 100644 miniprogram/pages/bookshelf/reader/index.json delete mode 100644 miniprogram/pages/bookshelf/reader/index.ts delete mode 100644 miniprogram/pages/bookshelf/reader/read.json delete mode 100644 miniprogram/pages/bookshelf/reader/read.ts delete mode 100644 miniprogram/pages/bookshelf/reader/read.wxml delete mode 100644 miniprogram/pages/bookshelf/reader/read.wxss diff --git a/miniprogram/pages/bookshelf/reader.ts b/miniprogram/pages/bookshelf/reader.ts deleted file mode 100644 index e3cd8a7..0000000 --- a/miniprogram/pages/bookshelf/reader.ts +++ /dev/null @@ -1,18 +0,0 @@ -import request from '../../utils/request'; - -Page({ - data: { - bookId: '', - bookUrl: '', - title: '' - }, - - onLoad(options) { - const { id, bookUrl, title } = options; - this.setData({ - bookId: id, - bookUrl: decodeURIComponent(bookUrl), - title: decodeURIComponent(title) - }); - } -}); \ No newline at end of file diff --git a/miniprogram/pages/bookshelf/reader.wxml b/miniprogram/pages/bookshelf/reader.wxml deleted file mode 100644 index 2be887f..0000000 --- a/miniprogram/pages/bookshelf/reader.wxml +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/miniprogram/pages/bookshelf/reader/index.js b/miniprogram/pages/bookshelf/reader/index.js deleted file mode 100644 index 9e770ae..0000000 --- a/miniprogram/pages/bookshelf/reader/index.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; - -const request = require('../../../utils/request'); - -Page({ - data: { - bookId: '', - bookUrl: '', - title: '' - }, - onLoad(options) { - const { id, bookUrl, title } = options; - this.setData({ - bookId: id, - bookUrl: decodeURIComponent(bookUrl), - title: decodeURIComponent(title) - }); - } -}); \ No newline at end of file diff --git a/miniprogram/pages/bookshelf/reader/index.json b/miniprogram/pages/bookshelf/reader/index.json deleted file mode 100644 index 373d74a..0000000 --- a/miniprogram/pages/bookshelf/reader/index.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "navigationBarTitleText": "阅读", - "usingComponents": { - "reader-component": "./reader" - } -} \ No newline at end of file diff --git a/miniprogram/pages/bookshelf/reader/index.ts b/miniprogram/pages/bookshelf/reader/index.ts deleted file mode 100644 index 8ee714c..0000000 --- a/miniprogram/pages/bookshelf/reader/index.ts +++ /dev/null @@ -1,24 +0,0 @@ -import request from '../../../utils/request'; - -Page({ - data: { - bookId: '', - bookUrl: '', - title: '' - }, - - onLoad(options) { - const { id, bookUrl, title } = options; - console.log('Reader页面接收到的参数:', { - id, - bookUrl: decodeURIComponent(bookUrl), - title: decodeURIComponent(title) - }); - - this.setData({ - bookId: id, - bookUrl: decodeURIComponent(bookUrl), - title: decodeURIComponent(title) - }); - } -}); \ No newline at end of file diff --git a/miniprogram/pages/bookshelf/reader/read.json b/miniprogram/pages/bookshelf/reader/read.json deleted file mode 100644 index 8835af0..0000000 --- a/miniprogram/pages/bookshelf/reader/read.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "usingComponents": {} -} \ No newline at end of file diff --git a/miniprogram/pages/bookshelf/reader/read.ts b/miniprogram/pages/bookshelf/reader/read.ts deleted file mode 100644 index 2c59f22..0000000 --- a/miniprogram/pages/bookshelf/reader/read.ts +++ /dev/null @@ -1,66 +0,0 @@ -// pages/bookshelf/reader/read.ts -Page({ - - /** - * 页面的初始数据 - */ - data: { - - }, - - /** - * 生命周期函数--监听页面加载 - */ - onLoad() { - - }, - - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady() { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow() { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide() { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload() { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh() { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom() { - - }, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage() { - - } -}) \ No newline at end of file diff --git a/miniprogram/pages/bookshelf/reader/read.wxml b/miniprogram/pages/bookshelf/reader/read.wxml deleted file mode 100644 index a8821c3..0000000 --- a/miniprogram/pages/bookshelf/reader/read.wxml +++ /dev/null @@ -1,2 +0,0 @@ - -pages/bookshelf/reader/read.wxml \ No newline at end of file diff --git a/miniprogram/pages/bookshelf/reader/read.wxss b/miniprogram/pages/bookshelf/reader/read.wxss deleted file mode 100644 index c7b2fb9..0000000 --- a/miniprogram/pages/bookshelf/reader/read.wxss +++ /dev/null @@ -1 +0,0 @@ -/* pages/bookshelf/reader/read.wxss */ \ No newline at end of file diff --git a/miniprogram/pages/bookshelf/reader/reader.ts b/miniprogram/pages/bookshelf/reader/reader.ts index 5119881..ad96dbf 100644 --- a/miniprogram/pages/bookshelf/reader/reader.ts +++ b/miniprogram/pages/bookshelf/reader/reader.ts @@ -47,7 +47,6 @@ interface IComponentMethods { addNoteWithSelection: () => void; copySelectedText: () => void; hideTextMenu: () => void; - startReadingTimer: () => void; stopReadingTimer: () => void; saveReadingRecord: (duration: number) => void; }