使用本地g2plot.min.js

This commit is contained in:
bbaban 2023-12-16 17:23:14 +08:00 committed by 时雨◎星空
parent 15b78f1370
commit 89560029d8
9 changed files with 35 additions and 16 deletions

View File

@ -395,6 +395,8 @@ export default class MysInfo {
if (res.api === 'detail') res.retcode = 0 if (res.api === 'detail') res.retcode = 0
break break
case 5003: case 5003:
if (!isTask) this.e.reply('米游社账号异常,暂时无法查询')
break
case 1034: case 1034:
let handler = this.e.runtime?.handler || {} let handler = this.e.runtime?.handler || {}

View File

@ -1,10 +1,10 @@
.head_box .id_text { .head_box .id_text {
color: #f5e7f4; color: #000;
padding: 5px 0; padding: 5px 0;
font-size: 26px; font-size: 26px;
} }
.head_box .day_text { .head_box .day_text {
color: #f5e7f4; color: #000;
padding: 5px 0; padding: 5px 0;
font-size: 22px; font-size: 22px;
} }

View File

@ -20,7 +20,7 @@
{{if game === 'gs'}} {{if game === 'gs'}}
<img class="genshin_logo" src="{{_res_path}}img/other/原神.png"/> <img class="genshin_logo" src="{{_res_path}}img/other/原神.png"/>
{{else}} {{else}}
<img class="starrail_logo" src="{{pluResPath}}img/other/logo.png"/> <img class="starrail_logo" src="{{pluResPath}}StarRail/img/other/logo.png"/>
{{/if}} {{/if}}
</div> </div>
<div class="data_box"> <div class="data_box">

View File

@ -2,7 +2,7 @@
{{block 'css'}} {{block 'css'}}
<link rel="stylesheet" type="text/css" href="{{_res_path}}html/ledger/ledger-count-gs.css"/> <link rel="stylesheet" type="text/css" href="{{_res_path}}html/ledger/ledger-count-gs.css"/>
<link rel="preload" href="https://unpkg.com/@antv/g2plot@latest/dist/g2plot.min.js" as="script"/> <link rel="preload" href="{{_res_path}}script/g2plot.min.js" as="script"/>
{{/block}} {{/block}}
{{block 'main'}} {{block 'main'}}
@ -67,7 +67,7 @@
{{/if}} {{/if}}
<script type="text/javascript" src="https://unpkg.com/@antv/g2plot@latest/dist/g2plot.min.js"></script> <script type="text/javascript" src="{{_res_path}}script/g2plot.min.js"></script>
<script> <script>
const { Column, Pie } = G2Plot const { Column, Pie } = G2Plot

View File

@ -2,7 +2,7 @@
{{block 'css'}} {{block 'css'}}
<link rel="stylesheet" type="text/css" href="{{_res_path}}html/ledger/ledger-count-sr.css"/> <link rel="stylesheet" type="text/css" href="{{_res_path}}html/ledger/ledger-count-sr.css"/>
<link rel="preload" href="https://unpkg.com/@antv/g2plot@latest/dist/g2plot.min.js" as="script"/> <link rel="preload" href="{{_res_path}}script/g2plot.min.js" as="script"/>
{{/block}} {{/block}}
{{block 'main'}} {{block 'main'}}
@ -67,7 +67,7 @@
<div class="hasMore">*该数据只显示最近12个月</div> <div class="hasMore">*该数据只显示最近12个月</div>
{{/if}} {{/if}}
<script type="text/javascript" src="https://unpkg.com/@antv/g2plot@latest/dist/g2plot.min.js"></script> <script type="text/javascript" src="{{_res_path}}script/g2plot.min.js"></script>
<script> <script>
const { Column, Pie } = G2Plot const { Column, Pie } = G2Plot

View File

@ -2,7 +2,7 @@
{{block 'css'}} {{block 'css'}}
<link rel="stylesheet" type="text/css" href="{{_res_path}}html/ledger/ledger-gs.css"/> <link rel="stylesheet" type="text/css" href="{{_res_path}}html/ledger/ledger-gs.css"/>
<link rel="preload" href="https://unpkg.com/@antv/g2plot@latest/dist/g2plot.min.js" as="script"/> <link rel="preload" href="{{_res_path}}script/g2plot.min.js" as="script"/>
<link rel="preload" href="{{_res_path}}img/other/bg.webp" as="image"> <link rel="preload" href="{{_res_path}}img/other/bg.webp" as="image">
<link rel="preload" href="{{_res_path}}img/other/chart.png" as="image"> <link rel="preload" href="{{_res_path}}img/other/chart.png" as="image">
{{/block}} {{/block}}
@ -55,7 +55,7 @@
</div> </div>
<script type="text/javascript" src="https://unpkg.com/@antv/g2plot@latest/dist/g2plot.min.js"></script> <script type="text/javascript" src="{{_res_path}}script/g2plot.min.js"></script>
<script> <script>
const { Pie } = G2Plot const { Pie } = G2Plot
const data = JSON.parse(`{{@ group_by}}`) const data = JSON.parse(`{{@ group_by}}`)

View File

@ -27,7 +27,7 @@ body {
width: 1200px; width: 1200px;
height: 1835px; height: 1835px;
background-color: #f5f6fb; background-color: #f5f6fb;
background-image: url("../../img/note/bg.png"); background-image: url("../../StarRail/img/note/bg.png");
} }
.uid { .uid {
@ -39,7 +39,7 @@ body {
flex-direction: column; flex-direction: column;
margin-top: 195px; margin-top: 195px;
margin-left: 50px; margin-left: 50px;
background-image: url('../../img/note/uidbg.png'); background-image: url('../../StarRail/img/note/uidbg.png');
} }
.uid_item { .uid_item {
@ -197,7 +197,7 @@ img {
width: 80px; width: 80px;
height: 80px; height: 80px;
margin-left: 20px; margin-left: 20px;
background: url(../../img/other/rails_pass.png) no-repeat 50% / cover; background: url(../../StarRail/img/other/rails_pass.png) no-repeat 50% / cover;
} }
.primogems .text { .primogems .text {
@ -259,7 +259,7 @@ img {
#chartContainer { #chartContainer {
width: 440px; width: 440px;
height: 440px; height: 440px;
background: url(../../img/other/chart.png) no-repeat 50% / cover; background: url(../../StarRail/img/other/chart.png) no-repeat 50% / cover;
margin-left: 70px; margin-left: 70px;
} }

View File

@ -2,7 +2,7 @@
{{block 'css'}} {{block 'css'}}
<link rel="stylesheet" type="text/css" href="{{_res_path}}html/ledger/ledger-sr.css"/> <link rel="stylesheet" type="text/css" href="{{_res_path}}html/ledger/ledger-sr.css"/>
<link rel="preload" href="https://unpkg.com/@antv/g2plot@latest/dist/g2plot.min.js" as="script"/> <link rel="preload" href="{{_res_path}}script/g2plot.min.js" as="script"/>
{{/block}} {{/block}}
{{block 'main'}} {{block 'main'}}
@ -16,7 +16,7 @@
</div> </div>
<div class="title_date"> <div class="title_date">
<div class="icon"> <div class="icon">
<img src="{{_res_path}}/StarRail/img/role/{{icon}}"/> <img src="{{_res_path}}StarRail/img/role/{{icon}}"/>
</div> </div>
<div class="title_date_text"> <div class="title_date_text">
<div>{{nowDay}}</div> <div>{{nowDay}}</div>
@ -72,7 +72,7 @@
</div> </div>
</div> </div>
<script type="text/javascript" src="https://unpkg.com/@antv/g2plot@latest/dist/g2plot.min.js"></script> <script type="text/javascript" src="{{_res_path}}script/g2plot.min.js"></script>
<script> <script>
const { Pie } = G2Plot const { Pie } = G2Plot
const data = JSON.parse(`{{@ group_by}}`) const data = JSON.parse(`{{@ group_by}}`)

File diff suppressed because one or more lines are too long