Commit 426b6eac authored by liumiss's avatar liumiss

3

parent 9c922aba
...@@ -20,9 +20,14 @@ ...@@ -20,9 +20,14 @@
:labels="labels" :labels="labels"
:current="active" :current="active"
> >
<span slot-scope="props">
<span slot-scope="props">{{props.txt}} {{props.txt}}
<van-tag v-if="categoryNum[props.index]" type="danger" round style="position: absolute;">{{categoryNum[props.index]}}</van-tag> <van-tag
v-if="categoryNum[props.index]"
type="danger"
round
style="position: absolute;"
>{{categoryNum[props.index]}}</van-tag>
</span> </span>
</cube-scroll-nav-bar> </cube-scroll-nav-bar>
</slot> </slot>
...@@ -83,8 +88,8 @@ export default { ...@@ -83,8 +88,8 @@ export default {
type: [String, Number], type: [String, Number],
default: "" default: ""
}, },
categoryNum:{ categoryNum: {
default:[] default: []
} }
}, },
data() { data() {
...@@ -123,8 +128,8 @@ export default { ...@@ -123,8 +128,8 @@ export default {
this.enableFn(); this.enableFn();
} }
}, },
categoryNum(newVal){ categoryNum(newVal) {
console.log(newVal) console.log(newVal);
} }
}, },
created() { created() {
...@@ -222,9 +227,9 @@ export default { ...@@ -222,9 +227,9 @@ export default {
}, },
scrollHandler(pos) { scrollHandler(pos) {
this.scrollY = -pos.y; this.scrollY = -pos.y;
if(this.scrollY==0){ if (this.scrollY == 0) {
this.$emit('scroll0') this.$emit("scroll0");
} }
if (!this._jumping) { if (!this._jumping) {
this.active = this.stickyCurrent; this.active = this.stickyCurrent;
...@@ -288,6 +293,10 @@ export default { ...@@ -288,6 +293,10 @@ export default {
float: left; float: left;
} }
.cube-scroll-nav-panels {
padding-bottom: 100px;
}
> .cube-sticky { > .cube-sticky {
overflow: hidden; overflow: hidden;
} }
......
...@@ -31,24 +31,11 @@ ...@@ -31,24 +31,11 @@
</transition> </transition>
</div> </div>
</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> </div>
</template> </template>
<script> <script>
import { setTimeout } from "timers"; import { setTimeout } from "timers";
// import Bubble from 'components/bubble/bubble'
const BALL_LEN = 10; const BALL_LEN = 10;
const innerClsHook = "inner-hook"; 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