Commit 9c922aba authored by liumiss's avatar liumiss

2

parent aac4ced6
<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"
......
<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
<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");
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment