Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tabulator-another-web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
tabulator-another-web
Commits
ff25a005
Commit
ff25a005
authored
Jul 09, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改图片加载顺序
parent
d5a8baba
Pipeline
#38752
passed with stages
in 3 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
src/pages/pics.vue
src/pages/pics.vue
+8
-9
src/script/const.ts
src/script/const.ts
+3
-3
No files found.
src/pages/pics.vue
View file @
ff25a005
...
...
@@ -21,7 +21,7 @@
<cover-image
class =
'deck_cards'
v-for =
'(i, v) in deck.main'
:src =
'getImg(i)'
@
error =
'changeImg.main(v)'
></cover-image>
</uni-card>
<uni-card
class =
'deck'
:title =
"deck.side.length > 0 ? '副卡组' : '暂无副卡组'"
>
<cover-image
class =
'deck_cards'
v-for =
'(i, v) in deck.side'
:src =
'getImg(i)'
@
error =
'changeImg.
main
(v)'
></cover-image>
<cover-image
class =
'deck_cards'
v-for =
'(i, v) in deck.side'
:src =
'getImg(i)'
@
error =
'changeImg.
side
(v)'
></cover-image>
</uni-card>
</uni-card>
</transition>
...
...
@@ -40,18 +40,17 @@
}
let
url
=
reactive
({
diy222
:
'
https://cdn02.moecube.com:444/ygopro-222DIY/contents/expansions/pics/
'
,
custom
:
''
});
const
getImg
=
(
i
:
CardPic
)
:
string
=>
{
switch
(
i
.
ot
)
{
case
(
Const
.
ot
.
Basic
)
:
return
Math
.
floor
(
Math
.
log10
(
Math
.
abs
(
i
.
code
)))
<
8
?
`https://cdn.233.momobako.com/ygopro/pics/
${
i
.
code
}
.jpg!half`
:
`https://cdn02.moecube.com:444/ygopro-super-pre/data/pics/
${
i
.
code
}
.jpg`
;
case
(
Const
.
ot
.
CustomJpg
)
:
return
`
${
url
.
custom
.
length
>
0
?
`
${
url
.
custom
}${
url
.
custom
.
endsWith
(
'
/
'
)
?
''
:
'
/
'
}
`
:
url
.
diy222
}${
i
.
code
}
.jpg`
;
return
`
${
url
.
custom
}${
url
.
custom
.
endsWith
(
'
/
'
)
?
''
:
'
/
'
}${
i
.
code
}
.jpg`
;
case
(
Const
.
ot
.
CustomPng
)
:
return
`
${
url
.
custom
.
length
>
0
?
`
${
url
.
custom
}${
url
.
custom
.
endsWith
(
'
/
'
)
?
''
:
'
/
'
}
`
:
url
.
diy222
}${
i
.
code
}
.png`
;
return
`
${
url
.
custom
}${
url
.
custom
.
endsWith
(
'
/
'
)
?
''
:
'
/
'
}${
i
.
code
}
.png`
;
case
(
Const
.
ot
.
Basic
)
:
return
Math
.
floor
(
Math
.
log10
(
Math
.
abs
(
i
.
code
)))
<
8
?
`https://cdn.233.momobako.com/ygopro/pics/
${
i
.
code
}
.jpg!half`
:
`https://cdn02.moecube.com:444/ygopro-super-pre/data/pics/
${
i
.
code
}
.jpg`
;
default
:
return
'
https://cdn.233.momobako.com/ygopro/pics/0.jpg!half
'
;
}
...
...
@@ -89,11 +88,11 @@
deck
.
participant
=
undefined
;
await
(
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
500
)));
}
deck
.
main
.
push
(...
i
.
main
.
map
(
code
=>
({
code
,
ot
:
Const
.
ot
.
Basic
})));
deck
.
side
.
push
(...
i
.
side
.
map
(
code
=>
({
code
,
ot
:
Const
.
ot
.
Basic
})));
url
.
custom
=
i
.
url
;
deck
.
blob
=
i
.
blob
;
deck
.
main
.
push
(...
i
.
main
.
map
(
code
=>
({
code
,
ot
:
url
.
custom
?
Const
.
ot
.
CustomJpg
:
Const
.
ot
.
Basic
})));
deck
.
side
.
push
(...
i
.
side
.
map
(
code
=>
({
code
,
ot
:
url
.
custom
?
Const
.
ot
.
CustomJpg
:
Const
.
ot
.
Basic
})));
deck
.
participant
=
participant
;
url
.
custom
=
i
.
url
;
},
off
:
async
()
:
Promise
<
void
>
=>
{
deck
.
chk
=
true
;
...
...
src/script/const.ts
View file @
ff25a005
...
...
@@ -13,9 +13,9 @@ class ConstData {
updateRounds
=
'
updateRounds
'
;
newTournament
=
'
newTournament
'
;
ot
=
{
Basic
:
0
,
Custom
Jp
g
:
1
,
CustomPng
:
2
,
CustomJpg
:
0
,
Custom
Pn
g
:
1
,
Basic
:
2
,
None
:
3
}
pic
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment