From f838da43d881aea2fce909a64821eef4e107e5ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=8E=AB=E5=94=90=E5=B0=BC?= <1431128779@qq.com> Date: Thu, 8 Jun 2023 21:23:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=8A=A8=E7=94=BB=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/mixins/index.js | 28 +- components/cache-image/cache-image.vue | 1 - pages/tabbar/category/category.vue | 388 +++--- pages/tabbar/gallery/gallery.vue | 404 +++---- pages/tabbar/home/home.vue | 705 +++++------ pages/tabbar/links/links.vue | 524 ++++---- pagesA/archives/archives.vue | 515 ++++---- pagesA/articles/articles.vue | 279 ++--- pagesA/category-detail/category-detail.vue | 234 ++-- pagesA/journal/journal.vue | 193 +-- pagesA/leaving/leaving.vue | 372 +++--- pagesA/tag-detail/tag-detail.vue | 234 ++-- pagesB/articles/articles.vue | 548 ++++----- pagesB/attachment/attachment.vue | 1256 ++++++++++---------- pagesB/category/category.vue | 591 +++++---- pagesB/comments/comments.vue | 665 ++++++----- pagesB/journal/journal.vue | 259 ++-- pagesB/links/links.vue | 603 +++++----- pagesB/logs/logs.vue | 462 +++---- pagesB/photos/photos.vue | 787 ++++++------ pagesB/tags/tags.vue | 542 ++++----- 21 files changed, 4725 insertions(+), 4865 deletions(-) diff --git a/common/mixins/index.js b/common/mixins/index.js index e08b55c..e9ec592 100644 --- a/common/mixins/index.js +++ b/common/mixins/index.js @@ -18,15 +18,31 @@ export default { return { author: HaloConfig.author, _isWechat: true, - haloAdConfig: HaloAdConfig + haloAdConfig: HaloAdConfig, + _aniWaitIndex: 0, // 动画索引 }; }, computed: { // 获取全局应用设置 globalAppSettings() { return uni.$tm.vx.getters().getSettings; + }, + // 计算动画索引 + calcAniWait() { + return (index) => { + if ((index + 1) % 10 == 0) { + this._aniWaitIndex = 1; + } else { + this._aniWaitIndex += 1; + } + console.log('this._aniWaitIndex', this._aniWaitIndex); + return this._aniWaitIndex * 50 + } } }, + onLoad() { + this.fnResetSetAniWaitIndex() + }, created() { // #ifdef MP-WEIXIN this._isWechat = true; @@ -36,7 +52,9 @@ export default { this._isWechat = false; // #endif }, - + onShow() { + this.fnResetSetAniWaitIndex() + }, methods: { /** * 设置页面标题 @@ -60,8 +78,12 @@ export default { console.log('err:', err); }, }); + }, + // 初始化动画索引值(需要在每个页面调用) + fnResetSetAniWaitIndex() { + this._aniWaitIndex = 0 } }, }); }, -}; +}; \ No newline at end of file diff --git a/components/cache-image/cache-image.vue b/components/cache-image/cache-image.vue index de7314a..75a9f18 100644 --- a/components/cache-image/cache-image.vue +++ b/components/cache-image/cache-image.vue @@ -106,7 +106,6 @@ } }, created() { - console.log('cache-image', this.url); this.imgStyle = { width: this.width, height: this.height, diff --git a/pages/tabbar/category/category.vue b/pages/tabbar/category/category.vue index 274d5d8..78ba610 100644 --- a/pages/tabbar/category/category.vue +++ b/pages/tabbar/category/category.vue @@ -12,23 +12,7 @@ - + @@ -36,7 +20,7 @@ - + @@ -50,195 +34,201 @@ + .app-page { + width: 100vw; + min-height: 100vh; + display: flex; + flex-direction: column; + background-color: #fff; + } + + .content { + height: 100vh; + background-color: #fafafa; + } + + .category-empty { + width: 100%; + height: 70vh; + } + + .article-empty { + width: 100%; + height: 70vh; + } + + .right-content { + // width: calc(100vw - 144rpx); + width: calc(100vw - 190rpx); + height: 100vh; + background-color: #fff; + white-space: nowrap; + background-color: #fafafa; + } + + .loading-wrap { + padding: 24rpx; + } + \ No newline at end of file diff --git a/pages/tabbar/gallery/gallery.vue b/pages/tabbar/gallery/gallery.vue index a5f9afc..bfa7ef5 100644 --- a/pages/tabbar/gallery/gallery.vue +++ b/pages/tabbar/gallery/gallery.vue @@ -74,7 +74,7 @@ - + @@ -107,221 +107,225 @@ + + .content { + box-sizing: border-box; + padding: 0 24rpx; + padding-top: 24rpx; + + .content-empty { + height: 60vh; + display: flex; + align-items: center; + justify-content: center; + } + } + + .loading-wrap { + box-sizing: border-box; + padding: 24rpx; + } + + .card { + box-shadow: 0rpx 4rpx 24rpx rgba(0, 0, 0, 0.03); + } + \ No newline at end of file diff --git a/pages/tabbar/home/home.vue b/pages/tabbar/home/home.vue index 163d276..8fc7c35 100644 --- a/pages/tabbar/home/home.vue +++ b/pages/tabbar/home/home.vue @@ -22,13 +22,7 @@ @@ -96,367 +90,380 @@ + + .page-item { + &_title { + position: relative; + padding-left: 24rpx; + font-size: 32rpx; + z-index: 1; + color: var(--main-text-color); + + &:before { + content: ''; + position: absolute; + left: 0rpx; + top: 8rpx; + width: 8rpx; + height: 30rpx; + background-color: rgba(33, 150, 243, 1); + border-radius: 6rpx; + z-index: 0; + } + } + } + + .h_row_col2 { + display: flex; + flex-wrap: wrap; + box-sizing: border-box; + padding: 0 12rpx; + + .ani-item { + width: 50%; + } + } + \ No newline at end of file diff --git a/pages/tabbar/links/links.vue b/pages/tabbar/links/links.vue index 864d714..9ae2ec6 100644 --- a/pages/tabbar/links/links.vue +++ b/pages/tabbar/links/links.vue @@ -16,22 +16,11 @@ - + - + {{ link.name }} @@ -67,28 +56,17 @@ - + {{ team.title }} - + - + }" @click="fnOnLinkEvent(link)"> @@ -98,12 +76,7 @@ ID:{{ link.id }} - + {{ link.team || '暂未分组' }} @@ -113,11 +86,7 @@ - + {{ link.name }} @@ -137,13 +106,7 @@ - + @@ -175,12 +138,7 @@ - + @@ -189,243 +147,259 @@ + \ No newline at end of file diff --git a/pagesA/archives/archives.vue b/pagesA/archives/archives.vue index fc0d10d..96de057 100644 --- a/pagesA/archives/archives.vue +++ b/pagesA/archives/archives.vue @@ -18,16 +18,8 @@ - - + + @@ -38,7 +30,7 @@ - + - + - + @@ -59,15 +50,7 @@ - + @@ -77,194 +60,197 @@ + .app-page { + width: 100vw; + display: flex; + flex-direction: column; + background-color: #fafafd; + } + + .app-page-content { + box-sizing: border-box; + // box-shadow: 0rpx 0rpx 24rpx rgba(0, 0, 0, 0.05); + } + + .content-empty { + width: 100%; + height: 60vh; + } + + .loading-wrap { + box-sizing: border-box; + padding: 24rpx; + } + \ No newline at end of file diff --git a/pagesA/tag-detail/tag-detail.vue b/pagesA/tag-detail/tag-detail.vue index 9df2731..90b33c3 100644 --- a/pagesA/tag-detail/tag-detail.vue +++ b/pagesA/tag-detail/tag-detail.vue @@ -11,7 +11,7 @@ - + {{ loadMoreText }} @@ -22,123 +22,125 @@ + .app-page { + width: 100vw; + min-height: 100vh; + display: flex; + flex-direction: column; + padding: 24rpx 0; + background-color: #fafafd; + } + + .loading-wrap { + padding: 0 24rpx; + min-height: 100vh; + } + + .empty { + height: 60vh; + display: flex; + align-items: center; + justify-content: center; + } + \ No newline at end of file diff --git a/pagesB/articles/articles.vue b/pagesB/articles/articles.vue index 460b32a..d11ddb2 100644 --- a/pagesB/articles/articles.vue +++ b/pagesB/articles/articles.vue @@ -29,7 +29,7 @@ - + @@ -110,295 +110,305 @@ + + .article-card { + box-sizing: border-box; + box-shadow: 0rpx 2rpx 24rpx rgba(0, 0, 0, 0.05); + + .thumbnail { + width: 100%; + height: 280rpx; + + &-img { + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.03); + } + + &-not { + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.03); + } + } + + .title { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + word-wrap: break-word; + word-break: break-all; + } + + .summary { + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; + overflow: hidden; + word-wrap: break-word; + word-break: break-all; + } + + .foot { + box-sizing: border-box; + border-top: 2rpx solid rgba(0, 0, 0, 0.03); + } + } + \ No newline at end of file diff --git a/pagesB/attachment/attachment.vue b/pagesB/attachment/attachment.vue index 8c46bf6..9f981e7 100644 --- a/pagesB/attachment/attachment.vue +++ b/pagesB/attachment/attachment.vue @@ -25,7 +25,7 @@ - + {{ item.suffix }} @@ -52,22 +52,9 @@ - + - + 该文件暂不支持预览 @@ -78,17 +65,7 @@ - + + .poup-content { + width: 100%; + overflow: hidden; + } + + .btn-wrap { + width: 100%; + } + + .file-name { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + word-wrap: break-word; + word-break: break-all; + } + \ No newline at end of file diff --git a/pagesB/category/category.vue b/pagesB/category/category.vue index cb223da..429cea1 100644 --- a/pagesB/category/category.vue +++ b/pagesB/category/category.vue @@ -16,7 +16,7 @@ - + × @@ -52,49 +52,13 @@ {{ form.id != undefined ? '编辑分类' : '新增分类' }} - + 填写提示:页面上所显示的名称 - + 填写提示:一般为单个分类页面的标识,最好为英文 - + 填写提示:分类的访问密码 - + 填写提示:分类的描述信息 @@ -122,207 +86,163 @@ + \ No newline at end of file diff --git a/pagesB/comments/comments.vue b/pagesB/comments/comments.vue index 9404b9f..cc6bdac 100644 --- a/pagesB/comments/comments.vue +++ b/pagesB/comments/comments.vue @@ -19,7 +19,7 @@ - + @@ -96,17 +96,7 @@ 评论内容 {{ reply.data.content }} - + @@ -129,347 +119,354 @@ + + .poup-body { + height: 60vh; + box-sizing: border-box; + } + \ No newline at end of file diff --git a/pagesB/journal/journal.vue b/pagesB/journal/journal.vue index 0f85365..fd43787 100644 --- a/pagesB/journal/journal.vue +++ b/pagesB/journal/journal.vue @@ -17,16 +17,8 @@ - - + + @@ -38,139 +30,142 @@ + + .loading-wrap { + padding: 24rpx; + + .loading-error { + height: 40vh; + } + } + + .edit-wrap { + box-sizing: border-box; + box-shadow: 0rpx 4rpx 24rpx rgba(0, 0, 0, 0.05); + } + \ No newline at end of file diff --git a/pagesB/links/links.vue b/pagesB/links/links.vue index c29a568..0fd5dc2 100644 --- a/pagesB/links/links.vue +++ b/pagesB/links/links.vue @@ -23,10 +23,12 @@ - + - + + + @@ -71,27 +73,9 @@ {{ form.id != undefined ? '编辑友链' : '新增友链' }} - + - + 填写提示:需要加上 http:// @@ -101,38 +85,10 @@ - - + + - + @@ -153,215 +109,172 @@ + .poup-body { + height: 71vh; + box-sizing: border-box; + touch-action: none; + } + + .thumbnail { + width: 100%; + height: 260rpx; + } + + .update-btn { + background-color: rgba(240, 250, 255, 1); + } + + .del-btn { + background-color: rgba(254, 241, 240, 1) !important; + } + \ No newline at end of file diff --git a/pagesB/logs/logs.vue b/pagesB/logs/logs.vue index 2de9ae9..6c294c7 100644 --- a/pagesB/logs/logs.vue +++ b/pagesB/logs/logs.vue @@ -12,7 +12,7 @@ - + ID:{{ item.id }} @@ -59,245 +59,251 @@ + \ No newline at end of file diff --git a/pagesB/photos/photos.vue b/pagesB/photos/photos.vue index d139c88..9a40ba1 100644 --- a/pagesB/photos/photos.vue +++ b/pagesB/photos/photos.vue @@ -1,17 +1,7 @@ + .loading-wrap { + padding: 24rpx; + + .loading-error { + height: 65vh; + } + } + + .btn-wrap { + box-sizing: border-box; + padding-top: 12rpx; + padding-bottom: 12rpx; + box-shadow: 0rpx -4rpx 24rpx rgba(0, 0, 0, 0.05); + } + + .card { + box-shadow: 0rpx 4rpx 24rpx rgba(0, 0, 0, 0.05); + } + + .thumbnail { + width: 100%; + + &-img { + width: 100%; + height: 300rpx; + } + } + + .poup-content { + overflow: hidden; + } + + .poup-body { + height: 69vh; + box-sizing: border-box; + touch-action: none; + } + \ No newline at end of file diff --git a/pagesB/tags/tags.vue b/pagesB/tags/tags.vue index c4c8352..a244d33 100644 --- a/pagesB/tags/tags.vue +++ b/pagesB/tags/tags.vue @@ -14,7 +14,7 @@ - + × @@ -46,36 +46,11 @@ {{ form.id != undefined ? '编辑标签' : '新增标签' }} - + 填写提示:页面上所显示的名称 - + 填写提示:一般为单个标签页面的标识,最好为英文 - + + \ No newline at end of file