Commit 3fae8e4b authored by 刘帅阳's avatar 刘帅阳

修改

parent 85d3782a
...@@ -7,22 +7,22 @@ ...@@ -7,22 +7,22 @@
</view> </view>
</view> --> </view> -->
<view class="u-menu-wrap"> <view class="u-menu-wrap">
<scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view" :scroll-top="scrollTop" <scroll-view :scroll-into-view="itemId" :scroll-top="scrollTop" class="u-tab-view menu-scroll-view" scroll-with-animation
:scroll-into-view="itemId"> scroll-y>
<view v-for="(item,index) in tabbar" :key="index" class="u-tab-item" :class="[current == index ? 'u-tab-item-active' : '']" <view v-for="(item,index) in tabbar" :key="index" :class="[current == index ? 'u-tab-item-active' : '']" class="u-tab-item"
@tap.stop="swichMenu(index)"> @tap.stop="swichMenu(index)">
<text class="u-line-1">{{item.name}}</text> <text class="u-line-1">{{item.name}}</text>
</view> </view>
</scroll-view> </scroll-view>
<scroll-view :scroll-top="scrollRightTop" scroll-y scroll-with-animation class="right-box" @scroll="rightScroll"> <scroll-view :scroll-top="scrollRightTop" class="right-box" scroll-with-animation scroll-y @scroll="rightScroll">
<view class="page-view"> <view class="page-view">
<view class="class-item" :id="'item' + index" v-for="(item , index) in tabbar" :key="index"> <view v-for="(item , index) in tabbar" :id="'item' + index" :key="index" class="class-item">
<view class="item-title"> <view class="item-title">
<text>{{item.name}}</text> <text>{{item.name}}</text>
</view> </view>
<view class="item-container"> <view class="item-container">
<view class="thumb-box" v-for="(item1, index1) in item.children" :key="index1" @click="toCategory(item1)"> <view v-for="(item1, index1) in item.children" :key="index1" class="thumb-box" @click="toCategory(item1)">
<image class="item-menu-image" :src="item1.path" mode=""></image> <image :src="item1.path" class="item-menu-image" mode=""></image>
<view class="item-menu-name">{{item1.title || item1.videoTitle}}</view> <view class="item-menu-name">{{item1.title || item1.videoTitle}}</view>
</view> </view>
</view> </view>
...@@ -33,12 +33,12 @@ ...@@ -33,12 +33,12 @@
</view> </view>
</template> </template>
<script> <script>
import pic2 from "../../static/image/pic2.png"; // import pic2 from "../../static/image/pic2.png";
export default { export default {
data() { data() {
return { return {
pic2, // pic2,
scrollTop: 0, //tab标题的滚动条位置 scrollTop: 0, //tab标题的滚动条位置
oldScrollTop: 0, oldScrollTop: 0,
current: 0, // 预设当前项的值 current: 0, // 预设当前项的值
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
}) })
this.getMenuItemTop() this.getMenuItemTop()
} }
}, },
toSearch() { toSearch() {
this.$u.route({ this.$u.route({
......
...@@ -91,8 +91,8 @@ ...@@ -91,8 +91,8 @@
</template> </template>
<script> <script>
import projectName from "../../common/projectName"; import projectName from "../../common/projectName";
import pic1 from '../../static/image/pic1.png' // import pic1 from '../../static/image/pic1.png'
import pic2 from '../../static/image/pic2.png' // import pic2 from '../../static/image/pic2.png'
import UCol from "../../uview-ui/components/u-col/u-col.vue"; import UCol from "../../uview-ui/components/u-col/u-col.vue";
import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue"; import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue";
export default { export default {
...@@ -101,8 +101,8 @@ import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue"; ...@@ -101,8 +101,8 @@ import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue";
return { return {
linkUrl: '', linkUrl: '',
unitId: '', unitId: '',
pic1, // pic1,
pic2, // pic2,
navList: [], navList: [],
activeNav: 0, activeNav: 0,
newList: [], newList: [],
......
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