Skip to content

Commit

Permalink
fix: 奇遇 #129
Browse files Browse the repository at this point in the history
  • Loading branch information
zixuan1986 committed Dec 8, 2023
1 parent 2956588 commit 5dc23ec
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 15 deletions.
3 changes: 2 additions & 1 deletion src/assets/css/adventure/item.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
border: 6px solid #fff;
overflow: hidden;
background: #fff;
border: 1px solid #fff;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);

transition: 0.3s ease-out;
.u-default {
.full;
}
Expand Down
1 change: 1 addition & 0 deletions src/assets/css/adventure/single.less
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
.r(10px);
.clip;
.mb(20px);
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
}
.m-adventure-task {
// background: url("../../../img/adventure_bg.png") repeat 0 0;
Expand Down
2 changes: 2 additions & 0 deletions src/assets/css/common/tabs.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
overflow-x: auto;
gap: 10px;
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);

.m-common-card {
.flex;
flex-shrink: 0;
Expand All @@ -31,6 +32,7 @@
align-items: center;
background-color: #fff;
color: #949494;
transition: 0.3s ease-out;
&.active,
&:hover {
color: #fff;
Expand Down
19 changes: 6 additions & 13 deletions src/components/common/list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@mouseout="changeColor('#E1E1E1')"
@click="update"
>
<img svg-inline src="@/assets/img/replace.svg" :fill="fill"/>
<img svg-inline src="@/assets/img/replace.svg" :fill="fill" />
</div>
</div>
</template>
Expand Down Expand Up @@ -51,20 +51,21 @@ export default {
.flex;
gap: 10px;
align-items: center;
justify-content: space-between;
.m-replace {
.pointer;
.flex;
.w(110px);
justify-content: center;
align-items: center;
flex-shrink: 0;
&:hover {
animation: op 300ms ease-out;
svg {
transition: 0.3s ease-out;
}
}
.m-common-list{
.m-common-list {
.flex;
gap:20px;
gap: 20px;
}
&.search {
.m-replace {
Expand All @@ -85,12 +86,4 @@ export default {
}
}
}
@keyframes op{
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
</style>
2 changes: 1 addition & 1 deletion src/views/adventure/AdventureSingle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<task :id="id" :info="data" />
</div>
<!-- 包含攻略、评论、历史版本、点赞等 书籍,宠物等物品为item, 声望成就等为achievement -->
<pvx-user :id="achieve_id" name="奇遇" type="achievement">
<pvx-user :id="achieve_id" name="奇遇" type="achievement" v-if="achieve_id">
<template slot="serendipity">
<div class="m-adventure-serendipity">
<Serendipity :title="title" />
Expand Down

0 comments on commit 5dc23ec

Please sign in to comment.