使用本地g2plot.min.js
This commit is contained in:
parent
15b78f1370
commit
89560029d8
|
@ -395,6 +395,8 @@ export default class MysInfo {
|
|||
if (res.api === 'detail') res.retcode = 0
|
||||
break
|
||||
case 5003:
|
||||
if (!isTask) this.e.reply('米游社账号异常,暂时无法查询')
|
||||
break
|
||||
case 1034:
|
||||
let handler = this.e.runtime?.handler || {}
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
.head_box .id_text {
|
||||
color: #f5e7f4;
|
||||
color: #000;
|
||||
padding: 5px 0;
|
||||
font-size: 26px;
|
||||
}
|
||||
.head_box .day_text {
|
||||
color: #f5e7f4;
|
||||
color: #000;
|
||||
padding: 5px 0;
|
||||
font-size: 22px;
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
{{if game === 'gs'}}
|
||||
<img class="genshin_logo" src="{{_res_path}}img/other/原神.png"/>
|
||||
{{else}}
|
||||
<img class="starrail_logo" src="{{pluResPath}}img/other/logo.png"/>
|
||||
<img class="starrail_logo" src="{{pluResPath}}StarRail/img/other/logo.png"/>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="data_box">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{block '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 'main'}}
|
||||
|
@ -67,7 +67,7 @@
|
|||
{{/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>
|
||||
const { Column, Pie } = G2Plot
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{block '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 'main'}}
|
||||
|
@ -67,7 +67,7 @@
|
|||
<div class="hasMore">*该数据只显示最近12个月</div>
|
||||
{{/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>
|
||||
const { Column, Pie } = G2Plot
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{block '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/chart.png" as="image">
|
||||
{{/block}}
|
||||
|
@ -55,7 +55,7 @@
|
|||
</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>
|
||||
const { Pie } = G2Plot
|
||||
const data = JSON.parse(`{{@ group_by}}`)
|
||||
|
|
|
@ -27,7 +27,7 @@ body {
|
|||
width: 1200px;
|
||||
height: 1835px;
|
||||
background-color: #f5f6fb;
|
||||
background-image: url("../../img/note/bg.png");
|
||||
background-image: url("../../StarRail/img/note/bg.png");
|
||||
}
|
||||
|
||||
.uid {
|
||||
|
@ -39,7 +39,7 @@ body {
|
|||
flex-direction: column;
|
||||
margin-top: 195px;
|
||||
margin-left: 50px;
|
||||
background-image: url('../../img/note/uidbg.png');
|
||||
background-image: url('../../StarRail/img/note/uidbg.png');
|
||||
}
|
||||
|
||||
.uid_item {
|
||||
|
@ -197,7 +197,7 @@ img {
|
|||
width: 80px;
|
||||
height: 80px;
|
||||
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 {
|
||||
|
@ -259,7 +259,7 @@ img {
|
|||
#chartContainer {
|
||||
width: 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;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{block '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 'main'}}
|
||||
|
@ -16,7 +16,7 @@
|
|||
</div>
|
||||
<div class="title_date">
|
||||
<div class="icon">
|
||||
<img src="{{_res_path}}/StarRail/img/role/{{icon}}"/>
|
||||
<img src="{{_res_path}}StarRail/img/role/{{icon}}"/>
|
||||
</div>
|
||||
<div class="title_date_text">
|
||||
<div>{{nowDay}}</div>
|
||||
|
@ -72,7 +72,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>
|
||||
const { Pie } = G2Plot
|
||||
const data = JSON.parse(`{{@ group_by}}`)
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue