Commit be0d84ad authored by xiaoye's avatar xiaoye

fix

parent ce473cfd
...@@ -113,6 +113,7 @@ ...@@ -113,6 +113,7 @@
<transition name = 'switch'> <transition name = 'switch'>
<uni-list <uni-list
v-show = 'search.result.total > 0 && page.menu' v-show = 'search.result.total > 0 && page.menu'
:class = "{ vertical : size.width <= size.height}"
> >
<uni-list-item <uni-list-item
id = 'list' id = 'list'
...@@ -181,7 +182,7 @@ ...@@ -181,7 +182,7 @@
}, },
tournament : (v : number = 0): void => { tournament : (v : number = 0): void => {
const url = window.location.href.split('/?'); const url = window.location.href.split('/?');
emitter.emit(Const.changeUrl, `${url[0]}/${search.result.tournaments[v].id}${url[1] ? `/?${url[1]}` : ''}`); emitter.emit(Const.changeUrl, `${url[0].endsWith('/') ? url[0] : `${url[0]}/`}${search.result.tournaments[v].id}${url[1] ? `/?${url[1]}` : ''}`);
}, },
menu : async(): Promise<void> => { menu : async(): Promise<void> => {
page.tournament = false; page.tournament = false;
......
...@@ -59,7 +59,7 @@ class MyCard { ...@@ -59,7 +59,7 @@ class MyCard {
this.email = ''; this.email = '';
this.avatar = 'https://cdn02.moecube.com:444/accounts/default_avatar.jpg'; this.avatar = 'https://cdn02.moecube.com:444/accounts/default_avatar.jpg';
const url = window.location.href.split('/?'); const url = window.location.href.split('/?');
emitter.emit(Const.changeUrl, `${url[0]}/`); emitter.emit(Const.changeUrl, url[0].endsWith('/') ? url[0] : `${url[0]}/`);
} }
} }
......
...@@ -102,4 +102,10 @@ ...@@ -102,4 +102,10 @@
} }
} }
} }
.vertical {
:deep(.uni-list-item) {
background: linear-gradient(to right, rgb(255, 228, 230), white, white, white, rgb(204, 251, 241)) !important;
}
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment