Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
a6675cb4
Commit
a6675cb4
authored
Jun 02, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
横向标签优化
parent
20be9870
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
6 deletions
+31
-6
src/components/basicTool/transverse-label/index.vue
+30
-5
static/nativeComponents/GoodsSearch/index.wxml
+1
-1
No files found.
src/components/basicTool/transverse-label/index.vue
View file @
a6675cb4
...
...
@@ -37,9 +37,9 @@
</div>
<van-tabs
v-if=
"showVanTabs"
:tab-class=
"['vanTab','defaultFontSize',
tabStyle==1?'defTabAfter':'defaultTabUnderlineAfter'
]"
:tab-active-class=
"['activeTab','selectFontSize',tabStyle
==1
?'selTabAfter':'selTabUnderLineAfter']"
:custom-class=
"['customClass',tabStyle
==1?'selectTabBackgroundColor':'selectTabUnderlineColor',tabShadow == 1 && tabStyle == 1
? 'tabShadow' : '']"
:tab-class=
"['vanTab','defaultFontSize',
['defTabAfter','defaultTabUnderlineAfter','defTabAfter2'][tabStyle2 - 1]
]"
:tab-active-class=
"['activeTab','selectFontSize',tabStyle
!=2
?'selTabAfter':'selTabUnderLineAfter']"
:custom-class=
"['customClass',tabStyle
!=2?'selectTabBackgroundColor':'selectTabUnderlineColor',tabShadow == 1 && tabStyle != 2
? 'tabShadow' : '']"
ref=
"vanTabs"
v-model=
"active"
@
change=
"changeTab"
...
...
@@ -308,7 +308,7 @@ export default {
},
defaultTabTextColor
()
{
if
(
this
.
defaultTabText
==
1
){
if
(
this
.
tabStyle
==
1
){
if
(
this
.
tabStyle
!=
2
){
return
"var(--main-color)"
}
else
{
return
"rgba(0,0,0,0.4)"
...
...
@@ -351,7 +351,7 @@ export default {
},
selectTabTextColor
()
{
if
(
this
.
selectTabText
==
1
){
if
(
this
.
tabStyle
==
1
){
if
(
this
.
tabStyle
!=
2
){
return
"#fff"
}
else
{
return
"#333"
...
...
@@ -720,6 +720,31 @@ $wrapWidth: 50px;
z-index
:
-1
;
}
}
.defTabAfter2
{
.mainLabel2{
position
:
relative
;
&::after{
content
:
""
;
position
:
absolute
;
width
:
100%
;
height
:
100%
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
border-radius
:
34px
;
background
:
var
(
--default-tab-background-bolor
);
z-index
:
-1
;
}
}
}
.activeTab
{
.mainLabel2{
&::after{
background
:
transparent
;
}
}
}
.selTabAfter
{
&::after{
transition
:
background
0.1s
;
...
...
static/nativeComponents/GoodsSearch/index.wxml
View file @
a6675cb4
...
...
@@ -9,7 +9,7 @@
<block wx:else>
<input class="search-input" type="text" placeholder="{{placeholderValue}}" bindinput="onInput" value="{{searchValue}}"></input>
</block>
<view class="svg-wrapper" catchtap="handleScan">
<view class="svg-wrapper" catchtap="handleScan"
wx:if="{{datas.componentData['searchModel'] == 1}}"
>
<image class="scan-svg" src="/static/svg/scanCode.svg" />
</view>
</view>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment