From cfc64c69e5522d7c9449e65115226386b04a75b5 Mon Sep 17 00:00:00 2001 From: rain Date: Fri, 12 Jun 2026 11:42:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E7=8E=B0=E5=B7=B2=E6=B5=8B=E8=AF=95=E6=B3=A8=E5=86=8C=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E5=BF=98=E8=AE=B0=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/appdown.html | 59 ++++ html/chongzhi.html | 447 ++++++------------------------- html/fabumianfeiwenzhang.html | 133 ++++++--- html/fenxiao.html | 105 ++++++++ html/gonggao.html | 2 +- html/gonggaolist.html | 11 +- html/kaijiang.html | 10 +- html/login.html | 29 +- html/mianfei.html | 50 ++++ html/mianfeilist.html | 66 ++++- html/reg.html | 370 ++++++++++++++++++++----- html/repwd.html | 156 +++++++++-- html/social-callback.html | 225 +--------------- html/tixianlist.html | 150 +++++++++-- html/yinsixieyi.html | 4 +- html/yonghuxieyi.html | 4 +- public/css/auth.css | 98 +++++++ public/css/chongzhi.css | 405 ++++++++++++++++++++++++++++ public/css/distribution.css | 52 +++- public/css/mianfei.css | 66 +++++ public/css/social-callback.css | 219 +++++++++++++++ public/css/tixianlist.css | 59 ++++ public/js/fufei-3dyjs-publish.js | 29 +- utils/ApiClient.js | 164 +++++++++++- utils/CommonUtil.js | 42 +++ utils/DateUtil.js | 181 ++++++------- 26 files changed, 2238 insertions(+), 898 deletions(-) create mode 100644 public/css/chongzhi.css create mode 100644 public/css/social-callback.css diff --git a/html/appdown.html b/html/appdown.html index d5f4188..577cc04 100644 --- a/html/appdown.html +++ b/html/appdown.html @@ -228,7 +228,66 @@ colorLight: "#ffffff", }); + var DEFAULT_DOWNLOAD_INFO = { + appName: "彩先知", + version: "1.0.0", + intro: "随时随地查看预测分析,不错过任何精彩推荐", + downloadUrl: downloadUrl, + }; + + function normalizeDownloadInfo(response) { + var data = response && (response.data || response.result || response); + if (!data || typeof data !== "object") return DEFAULT_DOWNLOAD_INFO; + return { + appName: data.appName || data.name || DEFAULT_DOWNLOAD_INFO.appName, + version: data.version || data.versionName || DEFAULT_DOWNLOAD_INFO.version, + intro: + data.intro || + data.description || + data.remark || + DEFAULT_DOWNLOAD_INFO.intro, + downloadUrl: + data.downloadUrl || + data.apkUrl || + data.androidUrl || + data.url || + DEFAULT_DOWNLOAD_INFO.downloadUrl, + iosUrl: data.iosUrl || data.iphoneUrl || data.appStoreUrl || "", + }; + } + + function applyDownloadInfo(info) { + var nextInfo = $.extend({}, DEFAULT_DOWNLOAD_INFO, info || {}); + if (nextInfo.appName) { + $(".hero-text h1").html("下载" + CommonUtil.escapeHtml(nextInfo.appName) + "APP"); + } + if (nextInfo.intro) { + $(".hero-text p").first().text(nextInfo.intro); + } + if (nextInfo.downloadUrl) { + $("#androidBtn").attr("href", nextInfo.downloadUrl); + CommonUtil.generateQRCode(nextInfo.downloadUrl, "downloadQrImg", { + width: 180, + height: 180, + colorDark: "#102b6a", + colorLight: "#ffffff", + }); + } + if (nextInfo.iosUrl) $("#iosBtn").attr("href", nextInfo.iosUrl); + } + + function loadDownloadInfo() { + return ApiClient.post(ApiClient.API.appDownloadInfo, {}, { publicRequest: true }) + .then(function (response) { + if (ApiClient.isSuccess(response) || response.data || response.result) { + applyDownloadInfo(normalizeDownloadInfo(response)); + } + }) + .catch(function () {}); + } + // Load download links from page config + loadDownloadInfo(); ApiClient.post("/api/web/index", {}) .then(function (result) { if (result.data && result.data.webConfigs) { diff --git a/html/chongzhi.html b/html/chongzhi.html index 07c1009..8cf4b35 100644 --- a/html/chongzhi.html +++ b/html/chongzhi.html @@ -13,6 +13,7 @@ + @@ -33,7 +34,7 @@ >免费注册 -