Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
de03f3dc
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6006
Star
91
Fork
164
代码
文件
提交
分支
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看板
提交
de03f3dc
编写于
12月 08, 2023
作者:
shutao-dc
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'remotes/origin/dev' into alpha
上级
1c544af2
93f83985
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
126 addition
and
6 deletion
+126
-6
pages.json
pages.json
+8
-2
pages/API/get-file-manager/get-file-manager.js
pages/API/get-file-manager/get-file-manager.js
+0
-0
pages/API/get-file-manager/get-file-manager.uvue
pages/API/get-file-manager/get-file-manager.uvue
+3
-2
pages/API/get-univerify-manager/get-univerify-manager.uvue
pages/API/get-univerify-manager/get-univerify-manager.uvue
+0
-0
pages/component/mixin-datacom/datacom.uvue
pages/component/mixin-datacom/datacom.uvue
+67
-0
pages/component/mixin-datacom/mixin-datacom.test.js
pages/component/mixin-datacom/mixin-datacom.test.js
+14
-0
pages/component/mixin-datacom/mixin-datacom.uvue
pages/component/mixin-datacom/mixin-datacom.uvue
+27
-0
pages/tabBar/API.uvue
pages/tabBar/API.uvue
+2
-2
pages/tabBar/component.uvue
pages/tabBar/component.uvue
+5
-0
未找到文件。
pages.json
浏览文件 @
de03f3dc
...
...
@@ -238,6 +238,12 @@
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/component/mixin-datacom/mixin-datacom"
,
"style"
:
{
"navigationBarTitleText"
:
"mixinDatacom"
}
},
//
#endif
{
"path"
:
"pages/tabBar/API"
,
...
...
@@ -345,7 +351,7 @@
}
},
{
"path"
:
"pages/API/
filemanager/file
manager"
,
"path"
:
"pages/API/
get-file-manager/get-file-
manager"
,
"style"
:
{
"navigationBarTitleText"
:
"沙盒文件管理"
}
...
...
@@ -579,7 +585,7 @@
}
},
{
"path"
:
"pages/API/
uni-verify/uni-verify
"
,
"path"
:
"pages/API/
get-univerify-manager/get-univerify-manager
"
,
"style"
:
{
"navigationBarTitleText"
:
"uni-verify"
,
"enablePullDownRefresh"
:
false
...
...
pages/API/
filemanager/filemanager.test
.js
→
pages/API/
get-file-manager/get-file-manager
.js
浏览文件 @
de03f3dc
文件已移动
pages/API/
filemanager/file
manager.uvue
→
pages/API/
get-file-manager/get-file-
manager.uvue
浏览文件 @
de03f3dc
...
...
@@ -52,8 +52,9 @@
*/
basePath: uni.env.USER_DATA_PATH,
copyToBasePath: uni.env.USER_DATA_PATH,
globalTempPath:uni.env.TEMP_PATH,
globalRootPath:uni.env.ROOT_PATH,
globalTempPath:uni.env.CACHE_PATH,
globalRootPath:uni.env.SANDBOX_PATH,
globalInnerRootPath:uni.env.ANDROID_INTERNAL_SANDBOX_PATH,
globalAppResourcePath:uni.env.APP_RESOURCE_PATH,
globalUserDataPath:uni.env.USER_DATA_PATH
...
...
pages/API/
uni-verify/uni-verify
.uvue
→
pages/API/
get-univerify-manager/get-univerify-manager
.uvue
浏览文件 @
de03f3dc
文件已移动
pages/component/mixin-datacom/datacom.uvue
0 → 100644
浏览文件 @
de03f3dc
<template>
<view>
<view v-if="mixinDatacomLoading">Loading...</view>
<view v-else-if="mixinDatacomError">
请求错误:{{mixinDatacomError}}
</view>
<view v-else="mixinDatacomResData.length>0">
<!-- 需要自行处理数据及相关UI展现 -->
<!-- {{mixinDatacomResData}} -->
<list-view class="list-view" :scroll-y="true">
<list-item class="list-item" v-for="(item, _) in mixinDatacomResData">
<text>{{item}}</text>
</list-item>
</list-view>
</view>
</view>
</template>
<script lang="uts">
export default {
mixins: [uniCloud.mixinDatacom],
data() {
return {
}
},
created() {
this.load()
},
methods: {
load() {
if (this.mixinDatacomLoading == true) {
return
}
this.mixinDatacomLoading = true
this.mixinDatacomGet(null).then((res: UniCloudDBGetResult) => {
const data = res.data
// const count = res.count
this.mixinDatacomResData = data
}).catch((err) => {
this.mixinDatacomError = err as UniCloudError
}).finally(() => {
this.mixinDatacomLoading = false
})
},
// 当组件属性发生变化时
onMixinDatacomPropsChange(needReset: boolean, changed: Array<string>) {
console.log(needReset, changed);
// needReset=true 需要重置已加载数据和分页信息,例如 collection,orderby
// changed,变化的属性名,类型为 Array,例如 ['collection', 'orderby']
// if (needReset) {
// // 清空已加载的数据
// this.mixinDatacomResData = []
// // 重置分页数据,如果没有分页不需要处理
// this.mixinDatacomPage.size = this.pageSize // 重置分页大小
// this.mixinDatacomPage.current = 0 // 重置当前分页
// this.mixinDatacomPage.count = 0 // 重置数据总数
// }
}
}
}
</script>
<style>
</style>
pages/component/mixin-datacom/mixin-datacom.test.js
0 → 100644
浏览文件 @
de03f3dc
const
PAGE_PATH
=
'
/pages/component/mixin-datacom/mixin-datacom
'
describe
(
'
mixin-datacom
'
,
()
=>
{
let
page
beforeAll
(
async
()
=>
{
page
=
await
program
.
reLaunch
(
PAGE_PATH
)
await
page
.
waitFor
(
500
)
})
it
(
'
mixinDatacomGet
'
,
async
()
=>
{
const
datacom
=
await
page
.
$
(
'
.datacom
'
)
const
childCount
=
await
datacom
.
$$
(
'
.list-item
'
)
expect
(
childCount
>
0
).
toBe
(
true
)
})
})
pages/component/mixin-datacom/mixin-datacom.uvue
0 → 100644
浏览文件 @
de03f3dc
<template>
<view class="content">
<datacom class="datacom" collection="unicloud-db-test"></datacom>
</view>
</template>
<script>
import datacom from './datacom.uvue';
export default {
components: {
datacom
},
data() {
return {
}
},
methods: {
}
}
</script>
<style>
.content {
flex: 1;
}
</style>
pages/tabBar/API.uvue
浏览文件 @
de03f3dc
...
...
@@ -405,7 +405,7 @@
pages: [
{
name: 'fileSystemManager沙盒文件管理',
url: '
file
manager'
url: '
get-file-
manager'
},
] as Page[],
},
...
...
@@ -438,7 +438,7 @@
pages: [
{
name: '一键登录',
url: '
uni-verify
',
url: '
get-univerify-manager
',
},
{
name: '实人认证',
...
...
pages/tabBar/component.uvue
浏览文件 @
de03f3dc
...
...
@@ -240,6 +240,11 @@ export default {
name: '联系人',
enable: true,
url: '/pages/component/unicloud-db-contacts/list'
},
{
name: 'mixinDatacom',
enable: true,
url: '/pages/component/mixin-datacom/mixin-datacom'
}
] as Page[],
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录