-
福彩3D走势图
-
-
10期
-
20期
-
30期
-
60期
+
+
福彩3D走势图
+
+
10期
+
20期
+
30期
+
60期
+
@@ -214,7 +215,12 @@
? '
'
: "
";
html += '| ' + item.issue + " | ";
- html += '' + CommonUtil.renderTrendOpenCode(item.openCode, { mode: "position" }) + " | ";
+ html +=
+ '' +
+ CommonUtil.renderTrendOpenCode(item.openCode, {
+ mode: "position",
+ }) +
+ " | ";
// Type columns
var typeNames = ["baozi", "zu3", "zu6"];
@@ -399,13 +405,22 @@
}
function loadData() {
- ApiClient.requestLegacyLotteryResultCompat({ suoxie: "fc3d" }).then(function (res) {
+ ApiClient.requestLegacyLotteryResultCompat({ suoxie: "fc3d" }).then(
+ function (res) {
if (res && res.data) {
- allData = Array.isArray(res.data) ? res.data : (res.data && (res.data.records || res.data.rows || res.data.list || res.data.data)) || [];
+ allData = Array.isArray(res.data)
+ ? res.data
+ : (res.data &&
+ (res.data.records ||
+ res.data.rows ||
+ res.data.list ||
+ res.data.data)) ||
+ [];
if (!Array.isArray(allData)) allData = [];
renderData(currentCount);
}
- });
+ },
+ );
}
$(document).on("click", ".qishu-but", function () {
diff --git a/html/index.html b/html/index.html
index de7cad6..0e19c08 100644
--- a/html/index.html
+++ b/html/index.html
@@ -319,7 +319,7 @@
七星彩: {
icon: "../images/icon-qxc.png",
color: "violet",
- blueColor: "violet",
+ blueColor: "blue",
code: "qxc",
accent: "#b06dff",
},
@@ -401,8 +401,38 @@
? item.lotteryResult.expect || item.lotteryResult.name || ""
: "";
}
- function buildBallHtml(openCode, cfg, compact) {
+ function buildBallHtml(result, cfg, compact) {
+ result = result || {};
+ var openCode = result.openCode || "";
if (!openCode) return '--';
+
+ if (
+ cfg.code === "qxc" &&
+ Array.isArray(result.redNumbers) &&
+ Array.isArray(result.blueNumbers)
+ ) {
+ var qxcHtml = "";
+ $.each(result.redNumbers, function (_, ball) {
+ qxcHtml +=
+ '' +
+ escapeHtml($.trim(ball)) +
+ "";
+ });
+ $.each(result.blueNumbers, function (_, ball) {
+ qxcHtml +=
+ '' +
+ escapeHtml($.trim(ball)) +
+ "";
+ });
+ return qxcHtml || '--';
+ }
+
var html = "";
var parts = String(openCode).split("+");
$.each(parts[0] ? parts[0].split(",") : [], function (_, ball) {
@@ -569,7 +599,7 @@
'">历史开奖' +
- buildBallHtml(result.openCode || "", cfg, compact) +
+ buildBallHtml(result, cfg, compact) +
'