Skip to content

Commit

Permalink
fix: face——list
Browse files Browse the repository at this point in the history
  • Loading branch information
TiAmo-code committed Jun 21, 2024
1 parent b864a24 commit b585b38
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/assets/css/face/item.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.flex;
.pointer;
.r(10px);
.pr();
height: 280px;
flex-shrink: 0;
flex-direction: column;
Expand All @@ -28,6 +29,11 @@
.size(auto,160px);
.r(10px);
}
.u-pinch__marker {
.pa();
.rt(25px);
.size(20px);
}
.m-tags {
.flex;
.h(20px);
Expand Down
6 changes: 6 additions & 0 deletions src/assets/img/face/bxs_barcode.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/face/item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
v-reporter="{ data: { href: '/face/' + item.id, ...reporter }, caller: 'face_index' }"
>
<el-image class="u-img" :src="showThumb(imgLink)" fit="cover"></el-image>
<img v-if="item.code_mode" class="u-pinch__marker" src="@/assets/img/face/bxs_barcode.svg" alt="" />
<div class="m-tags">
<div class="m-tag-left">
<template v-if="client === 'std'">
Expand Down
12 changes: 10 additions & 2 deletions src/components/face/tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,15 @@
<el-checkbox-button v-model="price_type" class="u-filter">免费</el-checkbox-button>
<el-checkbox-button v-model="is_unlimited" class="u-filter">可新建</el-checkbox-button>
</p>
<el-radio-group v-model="filter_empty_images">
<p style="margin-top: 0;">
<el-radio-group v-model="filter_empty_images">
<el-radio-button class="u-filter" :label="0">全部</el-radio-button>
<el-radio-button class="u-filter" :label="1">有图</el-radio-button>
</el-radio-group>
</p>
<el-radio-group v-model="code_mode">
<el-radio-button class="u-filter" :label="0">全部</el-radio-button>
<el-radio-button class="u-filter" :label="1">有图</el-radio-button>
<el-radio-button class="u-filter" :label="1">捏脸码</el-radio-button>
</el-radio-group>
</div>
<img svg-inline src="@/assets/img/filter.svg" slot="reference" />
Expand Down Expand Up @@ -79,6 +85,7 @@ export default {
price_type: false,
filter_empty_images: -1,
is_new_face: -1,
code_mode: -1,
title: "",
filterOpen: false,
screenWidth: window.innerWidth,
Expand All @@ -94,6 +101,7 @@ export default {
if (this.filter_empty_images) _params.filter_empty_images = true;
_params.is_new_face = this.is_new_face;
_params.body_type = this.active;
_params.code_mode = this.code_mode;
return _params;
},
client() {
Expand Down

0 comments on commit b585b38

Please sign in to comment.