优化模板

Signed-off-by: 帮帮 <3102509561@qq.com>
This commit is contained in:
帮帮 2023-08-19 10:45:38 +00:00 committed by Gitee
parent 5efa128a62
commit 6bf584ac9d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 17 additions and 5 deletions

View File

@ -133,11 +133,22 @@ export default class Ledger extends base {
let files = fs.readdirSync('./plugins/genshin/resources/StarRail/img/role').filter(file => file.endsWith('.webp')) let files = fs.readdirSync('./plugins/genshin/resources/StarRail/img/role').filter(file => file.endsWith('.webp'))
let icon = lodash.sample(files) let icon = lodash.sample(files)
let week = [
'星期日',
'星期一',
'星期二',
'星期三',
'星期四',
'星期五',
'星期六'
]
let srday = `${week[moment().day()]}`
return { return {
saveId: this.e.uid, saveId: this.e.uid,
uid: this.e.uid, uid: this.e.uid,
day, day, icon, srday,
icon, nowDay: moment(new Date()).format('YYYY年MM月DD日'),
...ledgerInfo, ...ledgerInfo,
...this.screenData ...this.screenData
} }

View File

@ -95,7 +95,7 @@ body {
.title_date { .title_date {
width: 370px; width: 370px;
height: 450px; height: 470px;
position: absolute; position: absolute;
right: 83px; right: 83px;
top: 27px; top: 27px;
@ -118,7 +118,7 @@ body {
flex-direction: column; flex-direction: column;
font-size: 36px; font-size: 36px;
color: #808080; color: #808080;
height: 80px; height: 100px;
} }
img { img {

View File

@ -23,7 +23,8 @@
<img src="{{pluResPath}}img/role/{{icon}}" /> <img src="{{pluResPath}}img/role/{{icon}}" />
</div> </div>
<div class="title_date_text"> <div class="title_date_text">
<div>{{day}}</div> <div>{{nowDay}}</div>
<div>{{srday}}</div>
</div> </div>
</div> </div>
<div class="subject"> <div class="subject">