feat: 优化
This commit is contained in:
@@ -17,6 +17,15 @@
|
||||
|
||||
</view>
|
||||
|
||||
<view class="tab-view">
|
||||
<view class="tab-list" @click="onTab(index)" v-for="(item, index) in tabList" :key="index">
|
||||
<text class="text-28 text-space" :style="{
|
||||
color: curTab == index ? '#7A35F6' : '#666',
|
||||
}">{{ item.name }}</text>
|
||||
<view class="line" v-if="curTab == index"></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<mescroll-uni ref="mescrollRef" top="660rpx" @down="downCallback" @up="upCallback" :up="upOption"
|
||||
:down="downOption" @init="mescrollInit">
|
||||
<view class="setting-view">
|
||||
@@ -52,7 +61,8 @@ export default {
|
||||
swiperList: [],
|
||||
currentNum: 0,
|
||||
dataList: [],
|
||||
tabList: [{ name: "推荐" }],
|
||||
tabList: [],
|
||||
// tabList: [{ name: "推荐" }],
|
||||
curTab: 0,
|
||||
upOption: {
|
||||
auto: false,
|
||||
@@ -75,7 +85,7 @@ export default {
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.cascadeCategory();
|
||||
// this.cascadeCategory();
|
||||
this.getCarouselImage()
|
||||
this.upCallback({ num: 1, size: 10 });
|
||||
},
|
||||
@@ -274,6 +284,7 @@ export default {
|
||||
position: absolute;
|
||||
top: 600rpx;
|
||||
left: 0;
|
||||
z-index: 99;
|
||||
|
||||
.tab-list {
|
||||
margin-right: 24rpx;
|
||||
|
||||
Reference in New Issue
Block a user