Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
吴良建
/
JinQiu
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c9634611
由
sunneyouyang
编写于
2023-07-17 14:19:36 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
update
1 个父辈
44b22a3b
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
16 行增加
和
20 行删除
pages/index/index.vue
pages/index/index.vue
查看文件 @
c963461
...
...
@@ -13,25 +13,21 @@
<v-tabs
class=
"tab_c"
v-model=
"current"
:tabs=
"tabs"
@
change=
"changeTab"
:fixed=
"true"
line-height=
"8rpx"
line-color=
"#04764E"
color=
"#AAAAAA"
activeColor=
"#04764E"
height=
"88rpx"
></v-tabs>
<z-swiper
ref=
"zSwiper"
v-model=
"tabs"
@
slideChange=
"onSwiperChange"
:options=
"options"
>
<z-swiper-item
v-for=
"(item, index) in tabs"
:key=
"item"
style=
"min-height: 90vh;"
>
<view
v-if=
"match_map.get(item) && match_map.get(item).length > 0 "
style=
"width: 100vw;"
>
<MatchList
:data_info=
"match_map.get(item)"
ref=
"MatchListRef"
:key=
"index"
@
updateItem=
"updateItem"
></MatchList>
</view>
<view
style=
"width: 100vw; height: 80vh; align-items: center; display: flex; justify-content: center; flex-direction: column;"
v-else
>
<image
style=
"height: 400rpx; width: 400rpx;"
src=
"../../static/pic_zanwushuju@2x.png"
></image>
<text>
暂无内容
</text>
</view>
</z-swiper-item>
</z-swiper>
<view
v-for=
"(item, index) in tabs"
v-if=
"index==current"
:key=
"item"
style=
"min-height: 90vh;"
>
<view
v-if=
"match_map.get(item) && match_map.get(item).length > 0 "
style=
"width: 100vw;"
>
<MatchList
:data_info=
"match_map.get(item)"
ref=
"MatchListRef"
:key=
"index"
@
updateItem=
"updateItem"
></MatchList>
</view>
<view
style=
"width: 100vw; height: 80vh; align-items: center; display: flex; justify-content: center; flex-direction: column;"
v-else
>
<image
style=
"height: 400rpx; width: 400rpx;"
src=
"../../static/pic_zanwushuju@2x.png"
></image>
<text>
暂无内容
</text>
</view>
</view>
</view>
</view>
</
template
>
...
...
@@ -304,7 +300,7 @@
},
changeTab
(
index
)
{
console
.
log
(
'当前选中的项:'
+
index
)
this
.
$refs
.
zSwiper
.
swiper
.
slideTo
(
index
);
//切换到第一个slide,速度为1秒
//
this.$refs.zSwiper.swiper.slideTo(index); //切换到第一个slide,速度为1秒
}
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论