Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liumiss
sell
Commits
426b6eac
Commit
426b6eac
authored
Sep 02, 2019
by
liumiss
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3
parent
9c922aba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
23 deletions
+19
-23
scroll-nav.vue
src/components/scroll/scroll-nav.vue
+19
-10
shop-cart.vue
src/components/shopCart/shop-cart.vue
+0
-13
No files found.
src/components/scroll/scroll-nav.vue
View file @
426b6eac
...
...
@@ -20,9 +20,14 @@
:labels=
"labels"
:current=
"active"
>
<span
slot-scope=
"props"
>
{{
props
.
txt
}}
<van-tag
v-if=
"categoryNum[props.index]"
type=
"danger"
round
style=
"position: absolute;"
>
{{
categoryNum
[
props
.
index
]
}}
</van-tag>
<span
slot-scope=
"props"
>
{{
props
.
txt
}}
<van-tag
v-if=
"categoryNum[props.index]"
type=
"danger"
round
style=
"position: absolute;"
>
{{
categoryNum
[
props
.
index
]
}}
</van-tag>
</span>
</cube-scroll-nav-bar>
</slot>
...
...
@@ -83,8 +88,8 @@ export default {
type
:
[
String
,
Number
],
default
:
""
},
categoryNum
:{
default
:[]
categoryNum
:
{
default
:
[]
}
},
data
()
{
...
...
@@ -123,8 +128,8 @@ export default {
this
.
enableFn
();
}
},
categoryNum
(
newVal
){
console
.
log
(
newVal
)
categoryNum
(
newVal
)
{
console
.
log
(
newVal
)
;
}
},
created
()
{
...
...
@@ -222,9 +227,9 @@ export default {
},
scrollHandler
(
pos
)
{
this
.
scrollY
=
-
pos
.
y
;
if
(
this
.
scrollY
==
0
)
{
this
.
$emit
(
'
scroll0
'
)
if
(
this
.
scrollY
==
0
)
{
this
.
$emit
(
"
scroll0
"
);
}
if
(
!
this
.
_jumping
)
{
this
.
active
=
this
.
stickyCurrent
;
...
...
@@ -288,6 +293,10 @@ export default {
float: left;
}
.cube-scroll-nav-panels {
padding-bottom: 100px;
}
> .cube-sticky {
overflow: hidden;
}
...
...
src/components/shopCart/shop-cart.vue
View file @
426b6eac
...
...
@@ -31,24 +31,11 @@
</transition>
</div>
</div>
<!--
<div
class=
"shopcart"
>
<div
class=
"ball-container"
>
<div
v-for=
"(ball,index) in balls"
:key=
"index"
>
<transition
@
before-enter=
"beforeDrop"
@
enter=
"dropping"
@
after-enter=
"afterDrop"
>
<div
class=
"ball"
v-show=
"ball.show"
>
<div
class=
"inner inner-hook"
></div>
</div>
</transition>
</div>
</div>
</div>
-->
</div>
</
template
>
<
script
>
import
{
setTimeout
}
from
"
timers
"
;
// import Bubble from 'components/bubble/bubble'
const
BALL_LEN
=
10
;
const
innerClsHook
=
"
inner-hook
"
;
...
...
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