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
4a7cf6a5
Commit
4a7cf6a5
authored
Jun 03, 2025
by
xiaoye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
布局适应移动端
parent
ac58828e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
17 deletions
+27
-17
src/pages/main.vue
src/pages/main.vue
+9
-3
src/pages/pics.vue
src/pages/pics.vue
+7
-4
src/style/page.scss
src/style/page.scss
+11
-10
No files found.
src/pages/main.vue
View file @
4a7cf6a5
...
...
@@ -23,7 +23,13 @@
</uni-list>
</view>
<view
class =
'click head'
><uni-list><uni-list-chat></uni-list-chat></uni-list></view>
<Pics></Pics>
<Pics
:style =
"
{
'--maxsize' : `${size.width > size.height ? size.width / 2 : size.width / 1.2}px`,
'--minsize' : `${size.width / 2}px`,
'--height' : `${size.width > size.height ? 10 : 25}%`,
}"
>
</Pics>
<transition
name =
'move_right'
>
<uni-card
class =
'click'
...
...
@@ -32,7 +38,7 @@
:title =
'Mycard.username'
:sub-title =
'Mycard.email'
:thumbnail =
'Mycard.avatar'
:style =
"
{ '--size' : `${size.width
/
2}px` }"
:style =
"
{ '--size' : `${size.width
> size.height ? size.width / 2 : size.width / 1.
2}px` }"
>
<view
v-show =
'Mycard.id >= 0'
><h2>
{{
Mycard
.
id
}}
</h2></view>
<hr
v-show =
'Mycard.id >= 0'
>
...
...
@@ -98,7 +104,7 @@
<transition
name =
'switch'
>
<view
id =
'body'
:style =
"
{ '--size' : `${size.width > size.height ? size.width / 2 : size.width
/ 1.2
}px` }"
:style =
"
{ '--size' : `${size.width > size.height ? size.width / 2 : size.width}px` }"
>
<transition
name =
'switch'
>
<uni-list
...
...
src/pages/pics.vue
View file @
4a7cf6a5
...
...
@@ -4,6 +4,9 @@
<uni-card
v-show =
'deck.participant'
:title =
"`$
{deck.participant?.name ?? '...'} 的卡组`"
id = 'main'
:spacing = '0'
:padding = '0'
>
<!--
<view
class =
'button'
...
...
@@ -12,11 +15,11 @@
>
<uni-icons
type =
'download'
></uni-icons>
</view>
-->
<uni-card
:title =
"deck.main.length > 0 ? '主卡组' : '暂无主卡组'"
>
<
image
class =
'deck_cards'
v-for =
'(i, v) in deck.main'
:src =
'getImg(i)'
mode =
'aspectFit'
@
error =
'changeImg.main(v)'
></
image>
<uni-card
class =
'deck'
:title =
"deck.main.length > 0 ? '主卡组' : '暂无主卡组'"
>
<
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
:title =
"deck.side.length > 0 ? '副卡组' : '暂无副卡组'"
>
<
image
class =
'deck_cards'
v-for =
'(i, v) in deck.side'
:src =
'getImg(i)'
mode =
'aspectFit'
@
error =
'changeImg.main(v)'
></
image>
<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>
</uni-card>
</uni-card>
</transition>
...
...
src/style/page.scss
View file @
4a7cf6a5
...
...
@@ -37,7 +37,6 @@
right
:
2%
;
z-index
:
2
;
max-width
:
var
(
--
size
);
width
:
20%
;
.user
{
&
:hover
{
cursor
:
pointer
;
...
...
@@ -94,16 +93,18 @@
top
:
70px
;
z-index
:
2
;
right
:
2%
;
width
:
50%
;
:deep
(
.uni-card
)
{
// display: flex;
max-width
:
var
(
--
maxsize
);
min-width
:
var
(
--
minsize
);
:deep
(
#main
)
{
overflow-y
:
auto
;
max-height
:
90vh
;
.deck
{
.deck_cards
{
width
:
10%
;
height
:
11
.52vh
;
aspect-ratio
:
1
/
1
.43
;
width
:
var
(
--
height
);
display
:
inline-block
;
vertical-align
:
top
;
}
}
}
}
}
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