优化筛选框
This commit is contained in:
@@ -211,6 +211,8 @@ export default {
|
|||||||
right: -600rpx;
|
right: -600rpx;
|
||||||
width: 600rpx;
|
width: 600rpx;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
/* 内联 paddingTop(状态栏高度)计入总高,否则 100% + padding 会把底部按钮顶出屏幕 */
|
||||||
|
box-sizing: border-box;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -208,7 +208,11 @@ export default {
|
|||||||
|
|
||||||
// 标签组
|
// 标签组
|
||||||
const tagGroupsData = (tagGroupsRes.data && tagGroupsRes.data.data) || []
|
const tagGroupsData = (tagGroupsRes.data && tagGroupsRes.data.data) || []
|
||||||
const filterGroups = tagGroupsData.map((g) => ({
|
// 需求:前端注释物流渠道、印刷工艺两组;恢复时删除该过滤即可
|
||||||
|
const hiddenGroupNames = ['物流渠道', '印刷工艺']
|
||||||
|
const filterGroups = tagGroupsData
|
||||||
|
.filter((g) => hiddenGroupNames.indexOf(g.groupName) === -1)
|
||||||
|
.map((g) => ({
|
||||||
id: g.id,
|
id: g.id,
|
||||||
title: g.groupName,
|
title: g.groupName,
|
||||||
tags: (g.tags || []).map((t) => ({
|
tags: (g.tags || []).map((t) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user