Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
axiaoxin committed Jul 16, 2021
1 parent e9f2a78 commit 0ba651d
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions routes/stock.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ func StockChecker(c *gin.Context) {
data["StockNames"] = stockNames
data["FinaReportNames"] = finaReportNames
data["FinaAppointPublishDates"] = finaAppointPublishDates
data["Line"] = gin.H{}
c.JSON(http.StatusOK, data)
return
}
1 change: 1 addition & 0 deletions statics/html/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ <h5 class="white-text">工具</h5>
<script type="text/javascript" src="http://cdn.axiaoxin.com/js/materialize.min.js" ></script>
<script type="text/javascript" src="http://cdn.axiaoxin.com/js/tableExport.js" ></script>
<script type="text/javascript" src="http://cdn.axiaoxin.com/js/clipboard.min.js" ></script>
<script type="text/javascript" src="http://cdn.axiaoxin.com/js/chart.xkcd.min.js" ></script>

<script type="text/javascript" src={{ if eq .Env "prod" }}"http://cdn.axiaoxin.com/x-stock/js/app.min.20210715-104645.js"{{ else }}"/statics/js/app.js"{{ end }} ></script>
<script data-ad-client="ca-pub-3022214826355647" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
Expand Down
2 changes: 2 additions & 0 deletions statics/html/fund_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ <h4 class="center"><span onclick="$('#desc_4433').tapTarget('open')">4433<i clas
</div>
</form>
</div>
</div>
<!-- 持仓相似度 end -->
</div>

<div id="fund_check_results" class="row hide">
Expand Down
1 change: 1 addition & 0 deletions statics/html/stock_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -397,4 +397,5 @@ <h4 class="center">筛选结果</h4>
<div id="checker_results" class="row hide">
<h4 class="center">检测结果</h4>
</div>
<svg class="line-chart hide"></svg>
{{ template "footer" . }}
22 changes: 21 additions & 1 deletion statics/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,27 @@ $(document).ready(function () {
"</td></tr>"
);
});
const svg = document.querySelector(".line-chart");
// new chartXkcd.Line(svg, {
// title: "历史数据",
// xLabel: "年",
// yLabel: "",
// data: {
// labels: ["", "2", "3", "4", "5", "6", "7", "8", "9", "10"],
// datasets: [
// {
// label: "Plan",
// data: [30, 70, 200, 300, 500, 800, 1500, 2900, 5000, 8000],
// },
// {
// label: "Reality",
// data: [0, 1, 30, 70, 80, 100, 50, 80, 40, 150],
// },
// ],
// },
// options: {},
// });
// $(".line-chart").removeClass("hide");
});
}
$("title").text(data.PageTitle);
Expand Down Expand Up @@ -395,7 +416,6 @@ $(document).ready(function () {
// 基金字段
for (let i = 1; i <= 23; i++) {
$(`#f${i}`).change(function () {
checkboxCountCheck();
$(`.t${i}`).toggleClass("hide");
if (this.checked) {
localStorage.setItem(`t${i}`, 1);
Expand Down
1 change: 1 addition & 0 deletions statics/js/chart.xkcd.min.js

Large diffs are not rendered by default.

0 comments on commit 0ba651d

Please sign in to comment.