Skip to content

Commit

Permalink
perf: 体型管理按钮&画风颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
leviathan233 committed Oct 30, 2023
1 parent 0bbb072 commit c55fcba
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 27 deletions.
3 changes: 3 additions & 0 deletions src/assets/css/face/item.less
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
}
.u-mark--type {
background-color: #53B27F;
&.u-new-face {
background-color: #23ABE5;
}
}
.u-icon-star:before {
width: 0px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/face/item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<img class="u-pic" :src="showThumb(imgLink)" loading="lazy" />
<div class="m-mark-left">
<template v-if="client === 'std'">
<i class="u-mark u-mark--type" v-if="item.is_new_face">写实</i>
<i class="u-mark u-mark--type u-new-face" v-if="item.is_new_face">写实</i>
<i class="u-mark u-mark--type" v-else>写意</i>
</template>
<i class="u-mark u-mark--new" v-if="!!item.is_unlimited">可新建</i>
Expand Down
35 changes: 9 additions & 26 deletions src/views/body/Single.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,18 @@
<el-button class="u-goback" size="medium" @click="goBack" plain>返回列表</el-button>
<!-- 操作tool -->
<div class="u-right-btn">
<div v-if="isSinglePage && isEditor" class="u-op m-face-btn-box">
<div class="m-face-btn-box">
<el-button
type="danger"
class="u-btn"
:class="isStar ? 'off' : 'on'"
:icon="!isStar ? 'el-icon-star-off' : 'el-icon-star-on'"
size="medium"
@click="starSet"
>
{{ starText }}
<div class="m-face-btn-box">
<a v-if="isSinglePage && isEditor" href="/os/#/omp/pvx/bodydata" target="_blank">
<el-button type="primary" size="medium" icon="el-icon-setting" class="u-manage">
管理
</el-button>
<el-button
type="danger"
class="u-btn"
:class="status !== 1 ? 'top' : 'bottom'"
:icon="status !== 1 ? 'el-icon-top' : 'el-icon-bottom'"
size="medium"
@click="statusSet"
</a>
<a :href="publish_link">
<el-button type="primary" size="medium" class="u-btn u-publish" icon="el-icon-edit"
>发布</el-button
>
{{ statusText }}
</el-button>
</div>
</a>
</div>
<a :href="publish_link" class="m-face-btn-box">
<el-button type="primary" size="medium" class="u-publish u-btn" icon="el-icon-edit">
发布
</el-button>
</a>
</div>
</div>
<!-- 基本信息 -->
Expand Down

0 comments on commit c55fcba

Please sign in to comment.