Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
029b61cc
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
5995
Star
90
Fork
162
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
18
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
18
Issue
18
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
029b61cc
编写于
2月 27, 2024
作者:
M
mahaifeng
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of
https://gitcode.net/dcloud/hello-uni-app-x
into dev-payment
上级
d7fa1f57
e0701664
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
29 addition
and
12 deletion
+29
-12
pages.json
pages.json
+10
-4
pages/component/list-view/list-view-multiplex-input.uvue
pages/component/list-view/list-view-multiplex-input.uvue
+2
-2
pages/component/list-view/list-view-multiplex.uvue
pages/component/list-view/list-view-multiplex.uvue
+1
-1
pages/template/long-list/long-list-page.uvue
pages/template/long-list/long-list-page.uvue
+4
-1
pages/template/long-list/long-list.uvue
pages/template/long-list/long-list.uvue
+6
-2
pages/template/long-list2/long-list2.uvue
pages/template/long-list2/long-list2.uvue
+6
-2
未找到文件。
pages.json
浏览文件 @
029b61cc
...
...
@@ -1107,15 +1107,21 @@
{
"path"
:
"pages/template/long-list/long-list"
,
"style"
:
{
"navigationBarTitleText"
:
"顶部搜索框随时下移长列表"
,
"navigationBarTitleText"
:
"顶部搜索框随时下移长列表"
//
#ifdef
APP
,
"enablePullDownRefresh"
:
true
//
#endif
}
},
{
"path"
:
"pages/template/long-list2/long-list2"
,
"style"
:
{
"navigationBarTitleText"
:
"顶部banner长列表"
,
"navigationBarTitleText"
:
"顶部banner长列表"
//
#ifdef
APP
,
"enablePullDownRefresh"
:
true
//
#endif
}
},
{
...
...
pages/component/list-view/list-view-multiplex-input.uvue
浏览文件 @
029b61cc
...
...
@@ -5,7 +5,7 @@
<list-view v-show="list_show" id="listview" style="flex: 1;" show-scrollbar=false @scrolltolower="onScrollTolower">
<list-item v-for="index in item_count" class="item" @click="itemClick(index)">
<text >item-------<text>{{index}}</text></text>
<input style="border-width: 1px; border-style: solid;" :placeholder="index" :value= "index ==1 ? `第一个` :index "/>
<input style="border-width: 1px; border-style: solid;" :placeholder="index
+ ''
" :value= "index ==1 ? `第一个` :index "/>
</list-item>
</list-view>
</template>
...
...
@@ -46,7 +46,7 @@
<style>
.item {
padding: 15px;
margin: 5px 0;
margin:
0 0
5px 0;
background-color: #fff;
border-radius: 5px;
}
...
...
pages/component/list-view/list-view-multiplex.uvue
浏览文件 @
029b61cc
...
...
@@ -55,7 +55,7 @@
<style>
.item {
padding: 15px;
margin: 5px 0;
margin:
0 0
5px 0;
background-color: #fff;
border-radius: 5px;
}
...
...
pages/template/long-list/long-list-page.uvue
浏览文件 @
029b61cc
...
...
@@ -30,7 +30,7 @@
</template>
<script>
const SERVER_URL = "https://
ext
.dcloud.net.cn/plugin/uniappx-plugin-list"
const SERVER_URL = "https://
unidemo
.dcloud.net.cn/plugin/uniappx-plugin-list"
const PAGE_SIZE = 10; // 最大值 10
type ListItem = {
...
...
@@ -241,4 +241,7 @@
align-items: center;
}
.flex-row {
flex-direction: row;
}
</style>
pages/template/long-list/long-list.uvue
浏览文件 @
029b61cc
...
...
@@ -78,7 +78,7 @@
preload: false
} as SwiperViewItem
] as SwiperViewItem[],
swiperIndex:
-1
,
swiperIndex:
0
,
pageScrollView: null as null | UniElement,
headerHeight: 0,
animationFinishIndex: 0,
...
...
@@ -95,7 +95,7 @@
this.tabScrollView = this.$refs['tabScroll'] as UniElement
this.indicatorNode = this.$refs['indicator'] as UniElement
this.cacheTabItemsSize()
this.
setSwiperIndex(0, true
)
this.
updateTabIndicator(this.swiperIndex, this.swiperIndex, 1
)
},
onPullDownRefresh() {
(this.$refs["longPage"]! as ComponentPublicInstance[])[this.swiperIndex].$callMethod('refreshData', () => {
...
...
@@ -261,6 +261,10 @@
background-color: #007AFF;
}
.swiper-list {
flex: 1;
}
.swiper-view {
flex: 1;
}
...
...
pages/template/long-list2/long-list2.uvue
浏览文件 @
029b61cc
...
...
@@ -88,7 +88,7 @@
preload: false
} as SwiperViewItem
] as SwiperViewItem[],
swiperIndex:
-1
,
swiperIndex:
0
,
pageScrollView: null as null | UniElement,
headerHeight: 0,
animationFinishIndex: 0,
...
...
@@ -106,7 +106,7 @@
this.tabScrollView = this.$refs['tabScroll'] as UniElement
this.indicatorNode = this.$refs['indicator'] as UniElement
this.cacheTabItemsSize()
this.
setSwiperIndex(0, true
)
this.
updateTabIndicator(this.swiperIndex, this.swiperIndex, 1
)
},
onPullDownRefresh() {
(this.$refs["longPage"]! as ComponentPublicInstance[])[this.swiperIndex].$callMethod('refreshData', () => {
...
...
@@ -265,6 +265,10 @@
background-color: #007AFF;
}
.swiper-list {
flex: 1;
}
.swiper-view {
flex: 1;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录