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
9c922aba
Commit
9c922aba
authored
Sep 02, 2019
by
liumiss
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
aac4ced6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
6 deletions
+19
-6
scroll-nav.vue
src/components/scroll/scroll-nav.vue
+1
-1
index.vue
src/views/shopItem/children/rating/index.vue
+15
-2
shopInfo.vue
src/views/shopItem/children/shopInfo.vue
+3
-3
No files found.
src/components/scroll/scroll-nav.vue
View file @
9c922aba
<
template
>
<div
class=
"cube-scroll-nav"
:class=
"
{'cube-scroll-nav_side': side}">
{{
disable
}}
<!--
{{
disable
}}
-->
<cube-sticky
ref=
"sticky"
:pos=
"scrollY"
@
change=
"stickyChangeHandler"
>
<cube-scroll
ref=
"scroll"
...
...
src/views/shopItem/children/rating/index.vue
View file @
9c922aba
<
template
>
<cube-scroll
class=
"seller"
:scroll-events=
"['scroll']"
@
scroll=
"onScrollHandle"
:options=
"sellerScrollOptions"
>
<div
class=
"container section"
>
<!--
<div
style=
"height:500px;"
></div>
-->
<rating-select
@
select=
"onSelect"
@
toggle=
"onToggle"
...
...
@@ -12,6 +15,7 @@
<div
class=
"empty_tips"
v-show=
"!ratings || !ratings.length"
>
暂无评价
</div>
</div>
</div>
</cube-scroll>
</
template
>
<
script
>
...
...
@@ -25,7 +29,11 @@ export default {
positive
:
"
推荐
"
,
negative
:
"
吐槽
"
},
selectType
:
0
selectType
:
0
,
sellerScrollOptions
:
{
directionLockThreshold
:
0
,
click
:
false
},
};
},
mixins
:
[
ratingMixin
],
...
...
@@ -40,7 +48,12 @@ export default {
methods
:
{
onSelect
(
type
)
{
this
.
selectType
=
type
;
}
},
onScrollHandle
(
e
)
{
console
.
log
(
123
);
// 内层滚动到顶部时,禁止滚动
this
.
$emit
(
"
scroll0
"
);
},
}
};
</
script
>
\ No newline at end of file
src/views/shopItem/children/shopInfo.vue
View file @
9c922aba
<
template
>
<cube-scroll
class=
"seller"
@
scroll=
"onScrollHandle"
:options=
"sellerScrollOptions"
>
<cube-scroll
class=
"seller"
:scroll-events=
"['scroll']"
@
scroll=
"onScrollHandle"
:options=
"sellerScrollOptions"
>
<div
class=
"seller-content"
>
<div
class=
"overview bg-white"
>
<h1
class=
"title"
>
{{
seller
.
name
}}
</h1>
...
...
@@ -16,7 +16,7 @@
<span
class=
"text"
>
(
{{
seller
.
ratingCount
}}
)
</span>
<span
class=
"text"
>
月售
{{
seller
.
sellCount
}}
单
</span>
</div>
<!--
<div
style=
"height:500px;"
></div>
-->
<ul
class=
"remark"
>
<li
class=
"block"
>
<h2>
起送价
</h2>
...
...
@@ -118,7 +118,7 @@ export default {
// saveToLocal(this.seller.id, "favorite", this.favorite);
},
onScrollHandle
(
e
)
{
console
.
log
(
e
);
console
.
log
(
123
);
// 内层滚动到顶部时,禁止滚动
this
.
$emit
(
"
scroll0
"
);
},
...
...
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