|
|
|
@ -9,11 +9,14 @@
|
|
|
|
|
<!-- 主体 -->
|
|
|
|
|
<div class="main" :style="{height:mainHeight}">
|
|
|
|
|
<!-- 主体左侧 -->
|
|
|
|
|
<div class="mainLeft">
|
|
|
|
|
<div class="mainLeft wrapper" ref="wrapper">
|
|
|
|
|
<div class="content">
|
|
|
|
|
<div class="item" :class="currentIndex == index ? 'item_on' : ''" v-for="(item,index) in menuTitle" :key="item.id" @click="menuClick(index)">{{item.name}}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 主体右侧 -->
|
|
|
|
|
<div class="mainRight">
|
|
|
|
|
<div class="mainRight wrapper" ref="wrapper">
|
|
|
|
|
<div class="content">
|
|
|
|
|
<!-- 顶部图 -->
|
|
|
|
|
<div class="display_img">
|
|
|
|
|
<img :src="menuDetail.topImg" />
|
|
|
|
@ -31,10 +34,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import axios from "axios";
|
|
|
|
|
import BScroll from "better-scroll";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "classify",
|
|
|
|
@ -54,6 +59,12 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.getClassify();
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
this.scroll = new BScroll(this.$refs.wrapper, {
|
|
|
|
|
bounce: false,
|
|
|
|
|
click: true
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
watch: {},
|
|
|
|
|
computed: {},
|
|
|
|
|