From cde558b858b399db3bb54fb7845886680fd98d9c Mon Sep 17 00:00:00 2001 From: Carol Date: Wed, 29 May 2024 12:38:10 +0800 Subject: [PATCH] =?UTF-8?q?change:=20=E5=8F=98=E6=9B=B4README.md=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=E6=96=87=E6=A1=A3=20add:=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=A0=87=E8=AF=86=E9=87=91=E9=A2=9D=E8=AE=BE=E7=BD=AE=20add:?= =?UTF-8?q?=20=E6=96=B0=E5=A2=9E=E7=82=B9=E5=87=BB=E8=B5=9E=E5=8A=A9?= =?UTF-8?q?=E8=80=85=E8=B7=B3=E8=BD=AC=E5=AF=B9=E5=BA=94=E7=88=B1=E5=8F=91?= =?UTF-8?q?=E7=94=B5=E9=A1=B5=E9=9D=A2=20fix:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=B5=9E=E5=8A=A9=E8=80=85=E5=90=8D=E7=A7=B0=E8=B6=85=E9=95=BF?= =?UTF-8?q?=E5=90=8E=E9=BC=A0=E6=A0=87=E7=A7=BB=E5=8A=A8=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=AE=8C=E6=95=B4=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 216 +----------------- gradle.properties | 2 +- .../afdian/config/BaseSettingConfig.java | 5 + .../xindu/afdian/service/AfdianRouter.java | 5 + src/main/resources/extensions/settings.yaml | 11 +- src/main/resources/static/afdian.min.css | 4 +- src/main/resources/templates/afdian.html | 11 +- 7 files changed, 43 insertions(+), 211 deletions(-) diff --git a/README.md b/README.md index be73bae..d589faa 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,17 @@ # plugin-afdian + +| ![xindu](https://img.shields.io/badge/blog-%E6%96%B0%20%C2%B7%20%E9%83%BD%E5%9C%A8-blue?logo=data%3Aimage%2Fpng%3Bbase64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IiOT0AHm%2BzyclY5yDoRTqMUc7ekuJ1mCP6%2FSTDFgVJ1%2BOOUbo7fEPDH%2F9fhuVuVfGZbXZZ5dX2R21Oa3O%2FpBhjWmYiOtFfVYqR126%2FDaWTMzbm8b4tx7aeKd3gKaAALOk03SzxW7PuaXSzlnit2fdpxERG0ck2stIjZ6CUgAAAAAAAAAAAAAChqdHt82L7L43Wy4whqajSVy%2FNXqt7s29LY7cNo2lUurl1yA0AAAAAAexaY5S96S3i5Ad9Lf6vR702T6vRGBiTpsn1ejzpr%2FV6OAMd9Lfx9HM2me94AAAAAAAAAAAA6rWb22rG8g5XNNo%2BL5skdXh4ptPo4x%2FNfrt7LabU2vIjbk9BKQAAAAAAAAAAAAAAAAABxlxVy12tG7sBl59HfH11%2BavjyVm6r5tJTL1x8tvFUqp1%2FWUJsumyYucdXihUsAAAAAAAAAAAAAAAAAAAAEuLT5MvZjq8V%2FDo6Y%2Bufmt48may2RTwaS%2BXrnqr4tHFhpijakbJBNuot0AYwAAAAAAAAAAAAAAAAAAAAAAAAV8ukx5OvbafFYAZeXRZKdn5o8eSvMTE7S3HNqVvG1o3Vqp0xBp30OO3Z%2BX1V76HJHZni9G6ryioJbYMlO1XbzRing9GjwegPB6A8HoDwSVw5L9mu%2Fmnpock9r5ftLNZsVHsRMztDRpoKV7U8XosUx1xxtWNmanyjOx6PLfnHDHj1SuYtHjx9c%2FNPjyWBmpttAGMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHNqxbnDoBFOmxW509ZcTosPdXbzlYDW7VWdDj%2FwC3efwONbG6bVX%2BBx%2F9u6jRYe%2Bu%2FnKwGm1DGmw15U9ZSVrFeUOhjAAAAAAAAAAAAAAAAAAAAAAH%2F9k%3D&label=Blog&labelColor=blue&color=green&cacheSeconds=3600&link=https%3A%2F%2Fblog.xindu.site) | ![halo](https://img.shields.io/badge/Frame-halo.run-blue?style=flat&logo=data%3Aimage%2Fpng%3Bbase64%2CUklGRvIIAABXRUJQVlA4W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fxjsd1sGId8gAA&logoColor=d3e0ee&label=Frame&labelColor=orange&link=halo.run) | ![Static Badge](https://img.shields.io/badge/v1.3.0-7DF41D?style=flat&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAAC9FBMVEUAAACabOutif%2Bve%2F%2BFbLiVcuaQaOCWb%2BWYceiLYtuccOingvOYcOeRad6ZcuifeumXcOWhfO6jfPCmhPOUa%2BaLYtyac%2BiVbuSMZN2VbeWNZt6RaeGRauKhee2acumQauClfvGTa%2BOOZd6JYNqWb%2BSog%2FSSauGPaOCogvSNZN2NZN2ngfKogvSngPOfeu6bdemTauSlfvGYcOiohPSngfKQaOCXb%2BaifO%2BXcOaVbuWTbOOogfOlf%2FGmgPKTbOOYceaMZN2pg%2FWQaN%2Bhee2OZt6RaeCRauGKYtuSa9%2BbdOmog%2FSifO%2Bddumie%2B6Zcuelf%2FGSa%2BKed%2BuYcealf%2FGSauGJYdqpg%2FSQaOCJYduOZd6jffCJX9qNZN6mgfKMZN2SauKfeOyKYtuXcOWpg%2FSngfOdduuJYNqQaN%2BWbuWUbeWmgfOLY9yUbOWlf%2FGZceeKYNqOaN6mgvKpgvSZceiMZNyVb%2BWNZt2cdumSauOfee2Wb%2BWPaN%2Bgeu2ddeqMZNypg%2FWheu6lf%2FGZcueJYNmQaN%2BjffCTbOSphPWog%2FSWb%2BWmgPKWb%2BaYcuekf%2FGac%2BiKYtuVbuWWbuSogvSSa%2BKWb%2BSOZt6ifO%2BfeeyngfKRaeGpg%2FSYcOefeOujfe%2BVbeSMZd6ac%2BiJYdqVbeSog%2FOVbOWcdeqKYtungvObdOmfd%2BuSa%2BKNZNyeduuRaeGjfe%2BXcOWMY9ybdOmngvSOZt6UbuWacuiSbOKgee2bdOmMY9yVbuOmgvSUbeKviP6xif%2BUaueVa%2BmMY92ZcOyqhPaOZOKuh%2F2shPybcu2mf%2FWhePKcdO6ddeyYb%2BqZceirhPmpg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xhcgJgSBIDVVIFqydnslO0qIZYIuDlJjlcJHNhi0NiRkzdr1Ixrtn16Dq9f1HwD%2Fbga5HGuOPh1pkv9NPw3FDXHyukKgRIhTH1Q9%2FuM%2F%2Fnl8BYlod8WjsBdLAAAAAElFTkSuQmCC&logoSize=amg&label=plugin-afdian&labelColor=98E0F9&color=7DF41D&link=https%3A%2F%2Fgithub.com%2Fcarolcoral%2Fplugin-afdian) | ![]() | ![]() | +|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------|:------| + > Halo 2.0 爱发电插件 -> 提供API接口信息返回爱发电赞助信息 +> 预览效果: [新 · 都在](https://blog.xindu.site/zanzhu) -> 预览效果: [新 · 都在](https://blog.xindu.site/afdian) +> 代码仓库: [plugin-afdian](https://github.com/carolcoral/plugin-afdian) -## TODO -- [ ] 获取用户全部赞助方案并展示 -- [ ] 获取用户全部商品内容并展示 -- [x] 提供独立的爱发电赞助展示页面 +![afdian.webp](https://redirect.cnkj.site:8099/shudaosan/2024/66568d582726b.webp?type=blog) -## 使用 +## 使用方式 1. 启动插件 2. 在插件配置中填写自己的userId和token * user_id: 登录爱发电网站后访问[开发者页面](https://afdian.net/dashboard/dev),复制`开发者`下方的`user_id`值 @@ -19,6 +20,9 @@ * 主题开发者可以使用下面的接口完成定制化开发 * 使用地址 `/afdian` 可访问插件默认展示页面 +## 文档 +[https://blog.xindu.site/docs/plugin-afdian](https://blog.xindu.site/docs/plugin-afdian) + ## 开发环境 插件开发的详细文档请查阅: @@ -90,200 +94,4 @@ halo: - "/path/to/plugin-afdian" ``` -最后重启 Halo 项目即可。 - -## 接口信息 - -### 查询赞助者 -* api: `/apis/api.plugin.halo.run/v1alpha1/plugins/plugin-afdian/afdian/getSponsorList` - -### 分页查询赞助者 -* api: `/apis/api.plugin.halo.run/v1alpha1/plugins/plugin-afdian/afdian/getSponsorList/{pageNumber}` - -## Finder - -### 分页查询赞助者 -* afdianFinder.listSponsor(String pageNumber) - -示例: -```html -
-``` - -### 查询全部赞助者 -* afdianFinder.listAllSponsor() - -示例: -```html -
-``` - -## 返回报文JSON -```json -{ - "ec": 200, - "em": "sponsor", - "data": { - "total_count": 2, - "total_page": 1, - "list": [ - { - "sponsor_plans": [ - { - "can_ali_agreement": 0, - "plan_id": "fcb1d38cfad811eeb2f75254001e7c00", - "rank": 1, - "user_id": "333022d85d9f11eebef852540025c377", - "status": 1, - "name": "好看的个人主页", - "pic": "https://pic1.afdiancdn.com/user/333022d85d9f11eebef852540025c377/common/025ec22852ae79ab9eae9ccc248530cd_w3338_h1798_s7022.png", - "desc": "

好看的个人主页,支持PC、平板、移动端全部兼容。

通过配置文件简单配置即可完成使用。

本商品为代码类虚拟商品,一经售出,不退不换!

预览地址:https://xindu.site/

", - "price": "12.00", - "update_time": 1714101669, - "timing": { - "timing_on": 0, - "timing_off": 0 - }, - "pay_month": 1, - "show_price": "12.00", - "show_price_after_adjust": "", - "has_coupon": 0, - "coupon": [], - "favorable_price": -1, - "independent": 0, - "permanent": 0, - "can_buy_hide": 1, - "need_address": 0, - "product_type": 1, - "sale_limit_count": -1, - "need_invite_code": false, - "bundle_stock": 0, - "bundle_sku_select_count": 0, - "config": {}, - "has_plan_config": 0, - "shipping_fee_info": { - "id": 11, - "name": "全国包邮", - "user_id": "system", - "status": 1, - "template_type": 1, - "fee_type": 1, - "base_fee": "0.00", - "base_fee_count": 1, - "addup_fee": "0.00", - "addup_count": 1, - "create_time": 0, - "update_time": 0 - }, - "expire_time": 2114352000, - "sku_processed": [ - { - "sku_id": "fcbe5774fad811eeaaff5254001e7c00", - "price": "8.80", - "count": 1, - "name": "好看的个人主页", - "album_id": "", - "pic": "", - "stock": "", - "post_id": "" - } - ], - "rankType": 30 - } - ], - "current_plan": { - "can_ali_agreement": 0, - "plan_id": "fcb1d38cfad811eeb2f75254001e7c00", - "rank": 1, - "user_id": "333022d85d9f11eebef852540025c377", - "status": 1, - "name": "好看的个人主页", - "pic": "https://pic1.afdiancdn.com/user/333022d85d9f11eebef852540025c377/common/025ec22852ae79ab9eae9ccc248530cd_w3338_h1798_s7022.png", - "desc": "

好看的个人主页,支持PC、平板、移动端全部兼容。

通过配置文件简单配置即可完成使用。

本商品为代码类虚拟商品,一经售出,不退不换!

预览地址:https://xindu.site/

", - "price": "12.00", - "update_time": 1714101669, - "timing": { - "timing_on": 0, - "timing_off": 0 - }, - "pay_month": 1, - "show_price": "12.00", - "show_price_after_adjust": "", - "has_coupon": 0, - "coupon": [], - "favorable_price": -1, - "independent": 0, - "permanent": 0, - "can_buy_hide": 1, - "need_address": 0, - "product_type": 1, - "sale_limit_count": -1, - "need_invite_code": false, - "bundle_stock": 0, - "bundle_sku_select_count": 0, - "config": {}, - "has_plan_config": 0, - "shipping_fee_info": { - "id": 11, - "name": "全国包邮", - "user_id": "system", - "status": 1, - "template_type": 1, - "fee_type": 1, - "base_fee": "0.00", - "base_fee_count": 1, - "addup_fee": "0.00", - "addup_count": 1, - "create_time": 0, - "update_time": 0 - }, - "expire_time": 2114352000, - "sku_processed": [ - { - "sku_id": "fcbe5774fad811eeaaff5254001e7c00", - "price": "8.80", - "count": 1, - "name": "好看的个人主页", - "album_id": "", - "pic": "", - "stock": "", - "post_id": "" - } - ], - "rankType": 30 - }, - "all_sum_amount": "8.80", - "first_pay_time": 1714030286, - "last_pay_time": 1714030286, - "user": { - "user_id": "e3a0606cb37411e9b8e752540025c377", - "name": "Halo", - "avatar": "https://pic1.afdiancdn.com/user/e3a0606cb37411e9b8e752540025c377/avatar/dce7df712c32c8b607c44478c3c68144_w1024_h1024_s422.png", - "user_private_id": "deca1b527e21bfd92b9081d09fa713b78854277a" - } - }, - { - "sponsor_plans": [], - "current_plan": { - "name": "" - }, - "all_sum_amount": "10.00", - "first_pay_time": 1701407849, - "last_pay_time": 1704104176, - "user": { - "user_id": "e0739c7c900811ee94155254001e7c00", - "name": "GIS带师", - "avatar": "https://pic1.afdiancdn.com/user/e0739c7c900811ee94155254001e7c00/avatar/63ce5844edaf3da235ccad307f3d9f80_w2560_h1808_s2448.png", - "user_private_id": "4009ea5dded9e19212ead26ca4d90d3ef9ca5672" - } - } - ], - "request": { - "user_id": "333022d85d9f11eebef852540025c377", - "params": "{\"page\":1}", - "ts": 1714360707, - "sign": "918a2561b165b18cd3c98294a57e4d82" - } - } -} -``` \ No newline at end of file +最后重启 Halo 项目即可。 \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 2d48fba..78d97e4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=1.2.1 +version=1.3.0 diff --git a/src/main/java/site/xindu/afdian/config/BaseSettingConfig.java b/src/main/java/site/xindu/afdian/config/BaseSettingConfig.java index 23e485c..2afdbb7 100644 --- a/src/main/java/site/xindu/afdian/config/BaseSettingConfig.java +++ b/src/main/java/site/xindu/afdian/config/BaseSettingConfig.java @@ -25,4 +25,9 @@ public class BaseSettingConfig { */ private String sponsorUrl = ""; + /** + * 切换赞助金额显示颜色值 + */ + private Double sponsorNumber = 66.00; + } diff --git a/src/main/java/site/xindu/afdian/service/AfdianRouter.java b/src/main/java/site/xindu/afdian/service/AfdianRouter.java index 77ad505..27cfc65 100644 --- a/src/main/java/site/xindu/afdian/service/AfdianRouter.java +++ b/src/main/java/site/xindu/afdian/service/AfdianRouter.java @@ -40,6 +40,11 @@ Mono renderPage(ServerRequest request) { ) .defaultIfEmpty("https://afdian.net/a/carolcoral"); model.put("sponsorUrl", sponsorUrl); + Mono sponsorNumber = this.settingFetcher.get("basic").map(setting -> + setting.get("sponsorNumber").asDouble(66.0) + ) + .defaultIfEmpty(66.0); + model.put("sponsorNumber", sponsorNumber); log.info(model.toString()); return templateNameResolver.resolveTemplateNameOrDefault(request.exchange(), "afdian") .flatMap(templateName -> ServerResponse.ok().render(templateName, model)); diff --git a/src/main/resources/extensions/settings.yaml b/src/main/resources/extensions/settings.yaml index faa8c35..b19cbf0 100644 --- a/src/main/resources/extensions/settings.yaml +++ b/src/main/resources/extensions/settings.yaml @@ -11,14 +11,23 @@ spec: name: token label: 用户token placeholder: 请输入用户TOKEN + validation: required help: 启用后必填,在 https://afdian.net/dashboard/dev 中 API TOKEN 获取 - $formkit: text name: userId label: 用户ID placeholder: 请输入用户ID + validation: required help: 启用后必填,在 https://afdian.net/dashboard/dev 中 user_id 获取 - $formkit: text name: sponsorUrl label: 赞助地址 placeholder: 请输入跳转赞助地址 - help: 启用后必填,否则爱发电页面可能会报错 \ No newline at end of file + validation: required + help: 启用后必填,否则爱发电页面可能会报错 + - $formkit: text + name: sponsorNumber + label: 切换赞助金额显示颜色值 + value: 66 + placeholder: 请输入需要切换颜色的赞助金额限制 + help: 非必填,默认切换赞助金额颜色的金额值为 66 \ No newline at end of file diff --git a/src/main/resources/static/afdian.min.css b/src/main/resources/static/afdian.min.css index 0b27299..55afb74 100644 --- a/src/main/resources/static/afdian.min.css +++ b/src/main/resources/static/afdian.min.css @@ -4,6 +4,7 @@ --style-border: 1px solid var(--heo-card-border); --style-border-always: 1px solid var(--heo-card-border); --heo-radius-full: 50px; + --heo-vip: #e5a80d; } @@ -11,6 +12,7 @@ --heo-fontcolor: #363636; --heo-card-bg: #fff; --heo-card-border: #e3e8f7; + --heo-vip: #e5a80d; } @@ -164,6 +166,7 @@ html { position: relative; padding: 1rem 2rem; overflow: hidden; + opacity: 0.9; } .author-content-item.single { @@ -537,4 +540,3 @@ html { color: #FFFFFF; white-space: nowrap; } - diff --git a/src/main/resources/templates/afdian.html b/src/main/resources/templates/afdian.html index 5db7ca2..6399410 100644 --- a/src/main/resources/templates/afdian.html +++ b/src/main/resources/templates/afdian.html @@ -85,8 +85,7 @@
-
+
@@ -95,11 +94,15 @@ data-ll-status="loading">
-
+
-
+
+ ¥ +
+
¥