From f709ef5204f3825abc2e0669ca50fa07f1b77b90 Mon Sep 17 00:00:00 2001 From: lipnggao Date: Mon, 25 Sep 2023 14:53:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bookshelf/bookshelf/bookshelfListBody.vue | 20 +- pages/classification/classification/index.vue | 27 +- .../novelReading/novelReading - 副本 (5).vue | 1014 +++++++++++++++++ pages/novelReading/novelReading.vue | 294 +++-- .../yingbing-ReadPage/yingbing-ReadPage.vue | 12 +- .../yingbing-flip/components/modules/flip.wxs | 194 ++-- .../yingbing-flip/yingbing-flip.vue | 6 + unpackage/dist/dev/app-plus/app-service.js | 9 +- unpackage/dist/dev/app-plus/app-view.js | 9 +- 9 files changed, 1350 insertions(+), 235 deletions(-) create mode 100644 pages/novelReading/novelReading - 副本 (5).vue diff --git a/pages/bookshelf/bookshelf/bookshelfListBody.vue b/pages/bookshelf/bookshelf/bookshelfListBody.vue index 9439be2..9a7348b 100644 --- a/pages/bookshelf/bookshelf/bookshelfListBody.vue +++ b/pages/bookshelf/bookshelf/bookshelfListBody.vue @@ -176,12 +176,20 @@ // 长安删除多个 swipeActionLongpress(row) { if (!this.swipeActionBatch) { - const swipeActionList = [...this.swipeActionList]; - if (swipeActionList.indexOf(row.id) != -1) { - this.swipeActionList = swipeActionList.filter((m) => m != row.id);; - } else { - this.swipeActionList = [...swipeActionList, row.id]; - } + // setTimeout(() => { + // uni.hideTabBar({ + // animation: true + // }) + // this.swipeActionBatch = true; + // this.swipeActionList = []; + // this.$emit('bookshelfContentBodyZindexFn', 999); + // }, 1000) + // const swipeActionList = [...this.swipeActionList]; + // if (swipeActionList.indexOf(row.id) != -1) { + // this.swipeActionList = swipeActionList.filter((m) => m != row.id);; + // } else { + // this.swipeActionList = [...swipeActionList, row.id]; + // } } }, diff --git a/pages/classification/classification/index.vue b/pages/classification/classification/index.vue index fd1d597..a016b78 100644 --- a/pages/classification/classification/index.vue +++ b/pages/classification/classification/index.vue @@ -2,11 +2,11 @@ - + {{m.title}} + v-for="m in oneTitleList" :key="m.id" :data-id="m.id" @tap="handelOneTitle">{{m.name}} @@ -33,6 +33,12 @@ import { baseUrlImage } from '@/utils/utils'; + + const inactiveStyle = { + color: '#222222', + fontSize:'32rpx' + } + export default { components: { CommNavBar, @@ -47,7 +53,8 @@ navBarActive: '1', searchBooksList: [], oneTitleActive: 0, - oneTitleList: [] + oneTitleList: [], + inactiveStyle: inactiveStyle } }, onShow() { @@ -58,11 +65,16 @@ const data = {} uni.$u.http.post('/getCategory', data).then((res) => { uni.hideLoading(); - if (res.status == 1) { - const list = res.data.list; + if (res.status == 1 && Array.isArray(res.data.list)) { + const list = res.data.list.map((m) => { + return { + ...m, + name: m.title, + } + }); this.oneTitleList = [{ id: '0', - title: '全部' + name: '全部', }, ...list]; } this.getBooks(0, 0); @@ -137,8 +149,6 @@ position: relative; z-index: 2; - - .classification_body_btn_list { width: 100%; padding: 0 32rpx 32rpx; @@ -190,7 +200,6 @@ .scroll_y_item { - ._book_list_box { width: 100%; // display: flex; diff --git a/pages/novelReading/novelReading - 副本 (5).vue b/pages/novelReading/novelReading - 副本 (5).vue new file mode 100644 index 0000000..031fe39 --- /dev/null +++ b/pages/novelReading/novelReading - 副本 (5).vue @@ -0,0 +1,1014 @@ + + + + + \ No newline at end of file diff --git a/pages/novelReading/novelReading.vue b/pages/novelReading/novelReading.vue index b949fd2..28ebcc1 100644 --- a/pages/novelReading/novelReading.vue +++ b/pages/novelReading/novelReading.vue @@ -10,12 +10,12 @@ :line-height="defaultCharactersLineHeight" :color="novelContentColor" :bg-color="bodyReadingBg" :slide="20" :enablePreload="false" @loadmore="loadmoreContent" @clickTo="handelShowStepUp" :clickOption="{width:200,height: 400,left:'auto',top:'auto'}" :topGap="0" :bottomGap="20" - @change="currentChange"> + @change="currentChange" :readChapterFlag="readChapterFlag">