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
46f8709b
Commit
46f8709b
authored
Feb 24, 2021
by
程智春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'nativehome_tst' of
http://code.mayi888.com/chengmo/mayi-mp-shop
into nativehome_tst
parents
99109679
44ea6e4b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
16 deletions
+21
-16
custom-tab-bar/index.js
+13
-12
custom-tab-bar/index.wxss
+2
-2
src/pages/home/index.vue
+1
-1
static/nativeComponents/TimeLimitedDiscount/index.wxss
+5
-1
No files found.
custom-tab-bar/index.js
View file @
46f8709b
...
...
@@ -64,26 +64,27 @@ Component({
visible
:
1
}
],
mm
:
false
,
mm
:
false
,
componentData
:
{},
show
:
true
,
mmm
:
false
,
mainColor
:
''
mmm
:
false
,
mainColor
:
""
,
showFlag
:
"up"
},
ready
(){
if
(
app
.
themeColor
[
'--main-color'
]
!=
'#ffffff'
)
{
ready
()
{
if
(
app
.
themeColor
[
"--main-color"
]
!=
"#ffffff"
)
{
this
.
setData
({
mainColor
:
app
.
themeColor
[
'--main-color'
]
})
mainColor
:
app
.
themeColor
[
"--main-color"
]
})
;
}
else
{
app
.
themeColorCallBack
=
(
res
)
=>
{
app
.
themeColorCallBack
=
res
=>
{
this
.
setData
({
mainColor
:
res
[
'--main-color'
]
})
}
mainColor
:
res
[
"--main-color"
]
})
;
}
;
}
console
.
log
(
this
.
data
.
themeColor
,
'themeColor'
)
console
.
log
(
this
.
data
.
themeColor
,
"themeColor"
);
if
(
typeof
this
.
getTabBar
===
"function"
&&
this
.
getTabBar
())
{
this
.
getTabBar
().
setData
({
selected
:
1
...
...
custom-tab-bar/index.wxss
View file @
46f8709b
...
...
@@ -1389,7 +1389,7 @@
/* border-top: 1px solid #e2e2e2; */
}
.tab-bar-border {
/*
.tab-bar-border {
background-color: rgba(0, 0, 0, 0.33);
position: absolute;
left: 0;
...
...
@@ -1397,7 +1397,7 @@
width: 100%;
height: 1px;
transform: scaleY(0.5);
}
}
*/
.tab-bar-item {
flex: 1;
...
...
src/pages/home/index.vue
View file @
46f8709b
...
...
@@ -277,10 +277,10 @@ export default {
(
delta
>
0
&&
showFlag
==
'down'
)
||
(
delta
<
0
&&
showFlag
==
'up'
)
){
this
.
beforeScrollTop
=
afterScrollTop
;
return
;
}
this
.
$mp
.
page
.
getTabBar
().
setData
({
'showFlag'
:
delta
>
0
?
'down'
:
'up'
})
this
.
beforeScrollTop
=
afterScrollTop
;
},
scrolltolower
(){
console
.
log
(
"scrolltolower"
)
...
...
static/nativeComponents/TimeLimitedDiscount/index.wxss
View file @
46f8709b
...
...
@@ -22,6 +22,9 @@
color: #333;
font-weight: bold;
text-align: left;
flex: 1;
margin-right: 4rpx;
}
.topInfo .subheading {
position: relative;
...
...
@@ -53,6 +56,7 @@
.goodsList {
display: flex;
align-items: flex-start;
flex-wrap: wrap;
}
.goodsItem {
box-sizing: border-box;
...
...
@@ -61,7 +65,7 @@
border-radius: 5px;
overflow: hidden;
background: #fff;
margin:
0 10rpx
;
margin:
20rpx 10rpx 0
;
}
.goods-item-child .info {
...
...
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