From 21d723d2601094cdb80cbe063b39516ad69f6ea2 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 20:48:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E5=8E=9F=E6=96=87=E9=93=BE=E6=8E=A5=E3=80=81?= =?UTF-8?q?=E8=AE=BF=E9=97=AE=E5=AF=86=E7=A0=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/styles/app.base.scss | 19 + components/cache-image/cache-image.vue | 321 ++--- manifest.json | 432 +++--- pages.json | 4 +- pagesA/article-detail/article-detail.vue | 1636 ++++++++++++---------- 5 files changed, 1273 insertions(+), 1139 deletions(-) diff --git a/common/styles/app.base.scss b/common/styles/app.base.scss index 3bc9949..d5567bf 100644 --- a/common/styles/app.base.scss +++ b/common/styles/app.base.scss @@ -153,3 +153,22 @@ transform: scale(1); } } + +/* 文本省略样式 开始 */ +.text-sub-one { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +/* 多行文本省略 */ +@for $i from 2 through 30 { + .text-sub-more-#{$i} { + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: $i; + overflow: hidden; + } +} + +/* 文本省略样式 结束 */ diff --git a/components/cache-image/cache-image.vue b/components/cache-image/cache-image.vue index 7ef4429..de7314a 100644 --- a/components/cache-image/cache-image.vue +++ b/components/cache-image/cache-image.vue @@ -3,183 +3,192 @@ - + - - {{ loadErrText }} + + - + + + .img-load-icon { + font-size: 36rpx; + animation: xhRote 0.8s infinite linear; + } + + .img-load-text { + font-size: 28rpx; + margin-top: 8rpx; + color: inherit; + } + + .img-error { + font-size: 28rpx; + + &-img { + width: 100%; + border-radius: 12rpx; + } + } + + .img-err-icon { + font-size: 36rpx; + } + + @keyframes xhRote { + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } + } + \ No newline at end of file diff --git a/manifest.json b/manifest.json index 90c689f..21ed9cf 100644 --- a/manifest.json +++ b/manifest.json @@ -1,217 +1,217 @@ { - "name": "uni-halo", - "appid": "__UNI__5748B6E", - "description": "uni-halo博客:基于halo开源博客系统API开发的多端博客。", - "versionName": "1.0.0", - "versionCode": 100, - "transformPx": false, - /* 5+App特有相关 */ - "app-plus": { - "usingComponents": true, - "nvueStyleCompiler": "uni-app", - "compilerVersion": 3, - "splashscreen": { - "alwaysShowBeforeRender": true, - "waiting": true, - "autoclose": true, - "delay": 0 - }, - /* 模块配置 */ - "modules": { - "OAuth": {}, - "Share": {} - }, - /* 应用发布信息 */ - "distribute": { - /* android打包配置 */ - "android": { - "permissions": [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - /* ios打包配置 */ - "ios": { - "dSYMs": false, - "capabilities": { - "entitlements": { - "com.apple.developer.associated-domains": ["applinks:static-699a26a5-a6cd-4b54-b603-5155b312a5f5.bspapp.com"] - } - } - }, - /* SDK配置 */ - "sdkConfigs": { - "ad": { - "gdt": {}, - "csj": {}, - "360": {}, - "ks": {}, - "sigmob": {}, - "hw": {}, - "bd": {} - }, - "oauth": { - "weixin": { - "appid": "wxd971954762ec4744", - "UniversalLinks": "https://static-699a26a5-a6cd-4b54-b603-5155b312a5f5.bspapp.com/uni-universallinks/__UNI__5748B6E/" - } - }, - "share": { - "weixin": { - "appid": "wxd971954762ec4744", - "UniversalLinks": "https://static-699a26a5-a6cd-4b54-b603-5155b312a5f5.bspapp.com/uni-universallinks/__UNI__5748B6E/" - } - } - }, - "icons": { - "android": { - "hdpi": "unpackage/res/icons/72x72.png", - "xhdpi": "unpackage/res/icons/96x96.png", - "xxhdpi": "unpackage/res/icons/144x144.png", - "xxxhdpi": "unpackage/res/icons/192x192.png" - }, - "ios": { - "appstore": "unpackage/res/icons/1024x1024.png", - "ipad": { - "app": "unpackage/res/icons/76x76.png", - "app@2x": "unpackage/res/icons/152x152.png", - "notification": "unpackage/res/icons/20x20.png", - "notification@2x": "unpackage/res/icons/40x40.png", - "proapp@2x": "unpackage/res/icons/167x167.png", - "settings": "unpackage/res/icons/29x29.png", - "settings@2x": "unpackage/res/icons/58x58.png", - "spotlight": "unpackage/res/icons/40x40.png", - "spotlight@2x": "unpackage/res/icons/80x80.png" - }, - "iphone": { - "app@2x": "unpackage/res/icons/120x120.png", - "app@3x": "unpackage/res/icons/180x180.png", - "notification@2x": "unpackage/res/icons/40x40.png", - "notification@3x": "unpackage/res/icons/60x60.png", - "settings@2x": "unpackage/res/icons/58x58.png", - "settings@3x": "unpackage/res/icons/87x87.png", - "spotlight@2x": "unpackage/res/icons/80x80.png", - "spotlight@3x": "unpackage/res/icons/120x120.png" - } - } - } - }, - "uniStatistics": { - "enable": true - } - }, - /* 快应用特有相关 */ - "quickapp": {}, - /* 小程序特有相关 */ - "mp-weixin": { - "appid": "wx1bb161867082c72f", - "setting": { - "urlCheck": false, - "minified": true - }, - "usingComponents": true, - "uniStatistics": { - "enable": true - } - }, - "mp-alipay": { - "usingComponents": true, - "uniStatistics": { - "enable": true - } - }, - "mp-baidu": { - "usingComponents": true, - "uniStatistics": { - "enable": true - } - }, - "mp-toutiao": { - "usingComponents": true, - "uniStatistics": { - "enable": true - } - }, - "uniStatistics": { - "enable": true, - "version": "2" - }, - "vueVersion": "2", - "h5": { - "title": "uni-halo", - "devServer": { - "disableHostCheck": true, - "proxy": { - "/api": { - "target": "https://b.925i.cn", - "changeOrigin": true, - "secure": false, - "pathRewrite": { - "^/api": "/api" - } - } - } - }, - "optimization": { - "preload": true, - "treeShaking": { - "enable": true - } - }, - "uniStatistics": { - "enable": true - } - }, - "_spaceID": "699a26a5-a6cd-4b54-b603-5155b312a5f5", - "mp-qq": { - "appid": "1112285420", - "setting": { - "minified": true, - "postcss": true, - "es6": true - }, - "uniStatistics": { - "enable": true - } - }, - "mp-jd": { - "uniStatistics": { - "enable": true - } - }, - "mp-kuaishou": { - "uniStatistics": { - "enable": true - } - }, - "mp-lark": { - "uniStatistics": { - "enable": true - } - }, - "quickapp-webview-huawei": { - "uniStatistics": { - "enable": true - } - }, - "quickapp-webview-union": { - "uniStatistics": { - "enable": true - } - } -} \ No newline at end of file + "name" : "uni-halo", + "appid" : "__UNI__5748B6E", + "description" : "uni-halo博客:基于halo开源博客系统API开发的多端博客。", + "versionName" : "1.0.0", + "versionCode" : 100, + "transformPx" : false, + /* 5+App特有相关 */ + "app-plus" : { + "usingComponents" : true, + "nvueStyleCompiler" : "uni-app", + "compilerVersion" : 3, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 0 + }, + /* 模块配置 */ + "modules" : { + "OAuth" : {}, + "Share" : {} + }, + /* 应用发布信息 */ + "distribute" : { + /* android打包配置 */ + "android" : { + "permissions" : [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + /* ios打包配置 */ + "ios" : { + "dSYMs" : false, + "capabilities" : { + "entitlements" : { + "com.apple.developer.associated-domains" : [ "applinks:static-699a26a5-a6cd-4b54-b603-5155b312a5f5.bspapp.com" ] + } + } + }, + /* SDK配置 */ + "sdkConfigs" : { + "ad" : { + "gdt" : {}, + "csj" : {}, + "360" : {}, + "ks" : {}, + "sigmob" : {}, + "hw" : {}, + "bd" : {} + }, + "oauth" : { + "weixin" : { + "appid" : "wxd971954762ec4744", + "UniversalLinks" : "https://static-699a26a5-a6cd-4b54-b603-5155b312a5f5.bspapp.com/uni-universallinks/__UNI__5748B6E/" + } + }, + "share" : { + "weixin" : { + "appid" : "wxd971954762ec4744", + "UniversalLinks" : "https://static-699a26a5-a6cd-4b54-b603-5155b312a5f5.bspapp.com/uni-universallinks/__UNI__5748B6E/" + } + } + }, + "icons" : { + "android" : { + "hdpi" : "unpackage/res/icons/72x72.png", + "xhdpi" : "unpackage/res/icons/96x96.png", + "xxhdpi" : "unpackage/res/icons/144x144.png", + "xxxhdpi" : "unpackage/res/icons/192x192.png" + }, + "ios" : { + "appstore" : "unpackage/res/icons/1024x1024.png", + "ipad" : { + "app" : "unpackage/res/icons/76x76.png", + "app@2x" : "unpackage/res/icons/152x152.png", + "notification" : "unpackage/res/icons/20x20.png", + "notification@2x" : "unpackage/res/icons/40x40.png", + "proapp@2x" : "unpackage/res/icons/167x167.png", + "settings" : "unpackage/res/icons/29x29.png", + "settings@2x" : "unpackage/res/icons/58x58.png", + "spotlight" : "unpackage/res/icons/40x40.png", + "spotlight@2x" : "unpackage/res/icons/80x80.png" + }, + "iphone" : { + "app@2x" : "unpackage/res/icons/120x120.png", + "app@3x" : "unpackage/res/icons/180x180.png", + "notification@2x" : "unpackage/res/icons/40x40.png", + "notification@3x" : "unpackage/res/icons/60x60.png", + "settings@2x" : "unpackage/res/icons/58x58.png", + "settings@3x" : "unpackage/res/icons/87x87.png", + "spotlight@2x" : "unpackage/res/icons/80x80.png", + "spotlight@3x" : "unpackage/res/icons/120x120.png" + } + } + } + }, + "uniStatistics" : { + "enable" : true + } + }, + /* 快应用特有相关 */ + "quickapp" : {}, + /* 小程序特有相关 */ + "mp-weixin" : { + "appid" : "wx1bb161867082c72f", + "setting" : { + "urlCheck" : false, + "minified" : true + }, + "usingComponents" : true, + "uniStatistics" : { + "enable" : true + } + }, + "mp-alipay" : { + "usingComponents" : true, + "uniStatistics" : { + "enable" : true + } + }, + "mp-baidu" : { + "usingComponents" : true, + "uniStatistics" : { + "enable" : true + } + }, + "mp-toutiao" : { + "usingComponents" : true, + "uniStatistics" : { + "enable" : true + } + }, + "uniStatistics" : { + "enable" : true, + "version" : "2" + }, + "vueVersion" : "2", + "h5" : { + "title" : "uni-halo", + "devServer" : { + "disableHostCheck" : true, + "proxy" : { + "/api" : { + "target" : "https://b.925i.cn", + "changeOrigin" : true, + "secure" : false, + "pathRewrite" : { + "^/api" : "/api" + } + } + } + }, + "optimization" : { + "preload" : true, + "treeShaking" : { + "enable" : true + } + }, + "uniStatistics" : { + "enable" : true + } + }, + "_spaceID" : "699a26a5-a6cd-4b54-b603-5155b312a5f5", + "mp-qq" : { + "appid" : "1112285420", + "setting" : { + "minified" : true, + "postcss" : true, + "es6" : true + }, + "uniStatistics" : { + "enable" : true + } + }, + "mp-jd" : { + "uniStatistics" : { + "enable" : true + } + }, + "mp-kuaishou" : { + "uniStatistics" : { + "enable" : true + } + }, + "mp-lark" : { + "uniStatistics" : { + "enable" : true + } + }, + "quickapp-webview-huawei" : { + "uniStatistics" : { + "enable" : true + } + }, + "quickapp-webview-union" : { + "uniStatistics" : { + "enable" : true + } + } +} diff --git a/pages.json b/pages.json index 738a626..a03ed4f 100644 --- a/pages.json +++ b/pages.json @@ -550,7 +550,7 @@ }, "tabBar": { "backgroundColor": "#fff", - "borderStyle": "#fff", + "borderStyle": "white", "color": "#303133", "selectedColor": "#03a9f4", "list": [{ @@ -582,4 +582,4 @@ } ] } -} +} \ No newline at end of file diff --git a/pagesA/article-detail/article-detail.vue b/pagesA/article-detail/article-detail.vue index a288fe4..18825d3 100644 --- a/pagesA/article-detail/article-detail.vue +++ b/pagesA/article-detail/article-detail.vue @@ -46,12 +46,7 @@ 分类: 未选择分类 - + {{ item.name }} @@ -60,23 +55,21 @@ 标签: 未选择标签 - + {{ item.name }} + + 原文: + + {{ originalURL }} + 阅读原文 + + - + @@ -87,27 +80,19 @@ - - + + + + + + - + @@ -117,21 +102,13 @@ - + 广告 - + {{ haloAdConfig.articleDetail.custom.title }} {{ haloAdConfig.articleDetail.custom.content }} - + 立即查看 @@ -140,9 +117,7 @@ 版权声明 - + 版权归属:{{ copyright.author }} @@ -157,32 +132,15 @@ - + - - + + @@ -190,13 +148,7 @@ 评论详情 - + @@ -207,12 +159,7 @@ - + 刷新试试 @@ -224,16 +171,7 @@ - + @@ -263,711 +201,879 @@ + + + + + + .category { + margin: 0 24rpx; + padding: 24rpx; + background-color: #ffffff; + border-radius: 12rpx; + // box-shadow: 0rpx 0rpx 24rpx rgba(182, 223, 255, 0.3); + box-shadow: 0rpx 4rpx 24rpx rgba(0, 0, 0, 0.03); + // border: 2rpx solid #f8f8f8; + font-size: 28rpx; + + &-type { + line-height: 55rpx; + } + + &-tag { + background-color: #5bb8fa; + color: #fff; + padding: 6rpx 12rpx; + border-radius: 6rpx; + font-size: 24rpx; + + &.is-empty { + background-color: #607d8b; + } + } + } + + .category-tag+.category-tag { + margin-left: 12rpx; + } + + .content { + margin-top: 24rpx; + } + + .markdown-wrap, + .evan-markdown, + .ad-wrap, + .copyright-wrap, + .comment-wrap { + box-shadow: 0rpx 0rpx 24rpx rgba(0, 0, 0, 0.03); + } + + .markdown-wrap { + overflow: hidden; + border-radius: 12rpx; + } + + .copyright-title { + position: relative; + box-sizing: border-box; + padding-left: 24rpx; + font-size: 30rpx; + + &:before { + content: ''; + position: absolute; + left: 0rpx; + top: 8rpx; + width: 8rpx; + height: 26rpx; + background-color: rgb(3, 174, 252); + border-radius: 6rpx; + } + } + + .poup-head { + border-bottom: 2rpx solid #f5f5f5; + } + + .poup-body { + height: 50vh; + } + + .poup-empty { + width: 100%; + height: 40vh; + } + + .poup-loading-wrap { + width: 100%; + height: 40vh; + + .e-loading-icon { + font-size: 80rpx; + } + } + + .poster-content { + width: 100%; + min-height: 60vh; + overflow: hidden; + } + + .copyright-text { + line-height: 1.7; + } + + .poster-loading { + width: 100%; + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + // background-color: rgba(0, 0, 0, 0.1); + z-index: 666; + } + + .poster-save { + box-sizing: border-box; + border-top: 2rpx dashed #eee; + } + + .original-url { + display: flex; + + &_left { + flex-shrink: 0; + width: 84rpx; + } + + &_right { + flex-grow: 1; + display: inline-flex; + align-items: center; + + &__link { + width: 410rpx; + display: inline-block; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + + &__btn { + flex-grow: 1; + flex-shrink: 0; + display: block; + text-align: right; + } + } + } + \ No newline at end of file