Commit 426b6eac authored by liumiss's avatar liumiss

3

parent 9c922aba
......@@ -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;
}
......
......@@ -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";
......
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